1 /***************************************************************************
2 *                                                                         *
3 *   This program is free software; you can redistribute it and/or modify  *
4 *   it under the terms of the GNU General Public License as published by  *
5 *   the Free Software Foundation; either version 3 of the License, or     *
6 *   (at your option) any later version.                                   *
7 *                                                                         *
8 ***************************************************************************/
9 
10 #pragma once
11 
12 #include <QWidget>
13 #include "ui_UISettingsUC.h"
14 
15 class UCModel;
16 
17 class SettingsUC :
18         public QWidget,
19         private Ui::UISettingsUC
20 {
21 Q_OBJECT
22 public:
23     explicit SettingsUC(QWidget *parent = 0);
24     virtual ~SettingsUC();
25 
26 signals:
27     void remUC(const QModelIndex&);
28     void changeUC(const QModelIndex&);
29     void upUC(const QModelIndex&);
30     void downUC(const QModelIndex&);
31 
32 public slots:
33     void ok();
34 
35 private slots:
36     void slotRemClicked();
37     void slotChangeClicked();
38     void slotDownClicked();
39     void slotUpClicked();
40     void slotSelect(const QModelIndex&);
41 
42 private:
43     QModelIndex selectedIndex();
44 
45     UCModel *model;
46 };
47