Mercurial > hg > svgui
comparison widgets/PluginPathConfigurator.h @ 1288:4683b6ffb76a plugin-path-config
Grey-out meaningless buttons
author | Chris Cannam |
---|---|
date | Tue, 15 May 2018 15:25:04 +0100 |
parents | 2dd7f764c3a6 |
children | ed04d3666d33 |
comparison
equal
deleted
inserted
replaced
1287:2dd7f764c3a6 | 1288:4683b6ffb76a |
---|---|
14 | 14 |
15 #ifndef SV_PLUGIN_PATH_CONFIGURATOR_H | 15 #ifndef SV_PLUGIN_PATH_CONFIGURATOR_H |
16 #define SV_PLUGIN_PATH_CONFIGURATOR_H | 16 #define SV_PLUGIN_PATH_CONFIGURATOR_H |
17 | 17 |
18 #include <QFrame> | 18 #include <QFrame> |
19 #include <QGridLayout> | |
20 #include <QStringList> | 19 #include <QStringList> |
21 | 20 |
22 class QLabel; | 21 class QLabel; |
23 class QWidget; | 22 class QWidget; |
24 class QListWidget; | 23 class QListWidget; |
24 class QPushButton; | |
25 class QGridLayout; | |
25 | 26 |
26 class PluginPathConfigurator : public QFrame | 27 class PluginPathConfigurator : public QFrame |
27 { | 28 { |
28 Q_OBJECT | 29 Q_OBJECT |
29 | 30 |
39 | 40 |
40 private slots: | 41 private slots: |
41 void upClicked(); | 42 void upClicked(); |
42 void downClicked(); | 43 void downClicked(); |
43 void deleteClicked(); | 44 void deleteClicked(); |
45 void currentLocationChanged(int); | |
44 | 46 |
45 private: | 47 private: |
46 QGridLayout *m_layout; | 48 QGridLayout *m_layout; |
47 QListWidget *m_list; | 49 QListWidget *m_list; |
50 QPushButton *m_up; | |
51 QPushButton *m_down; | |
52 QPushButton *m_delete; | |
48 | 53 |
49 QStringList m_path; | 54 QStringList m_path; |
50 QString m_var; | 55 QString m_var; |
51 | 56 |
52 void populate(int makeCurrent = 0); | 57 void populate(int makeCurrent = 0); |