Mercurial > hg > svgui
diff widgets/PluginPathConfigurator.h @ 1290:050eca637c19 plugin-path-config
More work on plugin path configuration layout &c
author | Chris Cannam |
---|---|
date | Wed, 23 May 2018 11:52:19 +0100 |
parents | ed04d3666d33 |
children | b5c71304286e |
line wrap: on
line diff
--- a/widgets/PluginPathConfigurator.h Mon May 21 16:15:36 2018 +0100 +++ b/widgets/PluginPathConfigurator.h Wed May 23 11:52:19 2018 +0100 @@ -24,6 +24,7 @@ class QPushButton; class QGridLayout; class QComboBox; +class QCheckBox; class PluginPathConfigurator : public QFrame { @@ -40,6 +41,7 @@ struct PathConfig { QStringList directories; QString envVariable; // e.g. "LADSPA_PATH" etc + bool useEnvVariable; // true if env variable overrides directories list }; typedef std::map<PluginTypeLabel, PathConfig> Paths; @@ -54,8 +56,10 @@ void upClicked(); void downClicked(); void deleteClicked(); + void resetClicked(); void currentTypeChanged(QString); void currentLocationChanged(int); + void envOverrideChanged(int); private: QGridLayout *m_layout; @@ -65,8 +69,11 @@ QPushButton *m_up; QPushButton *m_down; QPushButton *m_delete; + QPushButton *m_reset; + QCheckBox *m_envOverride; Paths m_paths; + Paths m_originalPaths; void populate(); void populateFor(QString type, int makeCurrent);