annotate 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
rev   line source
Chris@1285 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1285 2
Chris@1285 3 /*
Chris@1285 4 Sonic Visualiser
Chris@1285 5 An audio file viewer and annotation editor.
Chris@1285 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1285 7
Chris@1285 8 This program is free software; you can redistribute it and/or
Chris@1285 9 modify it under the terms of the GNU General Public License as
Chris@1285 10 published by the Free Software Foundation; either version 2 of the
Chris@1285 11 License, or (at your option) any later version. See the file
Chris@1285 12 COPYING included with this distribution for more information.
Chris@1285 13 */
Chris@1285 14
Chris@1285 15 #ifndef SV_PLUGIN_PATH_CONFIGURATOR_H
Chris@1285 16 #define SV_PLUGIN_PATH_CONFIGURATOR_H
Chris@1285 17
Chris@1285 18 #include <QFrame>
Chris@1285 19 #include <QStringList>
Chris@1285 20
Chris@1286 21 class QLabel;
Chris@1286 22 class QWidget;
Chris@1287 23 class QListWidget;
Chris@1288 24 class QPushButton;
Chris@1288 25 class QGridLayout;
Chris@1286 26
Chris@1285 27 class PluginPathConfigurator : public QFrame
Chris@1285 28 {
Chris@1285 29 Q_OBJECT
Chris@1285 30
Chris@1285 31 public:
Chris@1285 32 PluginPathConfigurator(QWidget *parent = 0);
Chris@1285 33 ~PluginPathConfigurator();
Chris@1285 34
Chris@1285 35 void setPath(QStringList directories, QString envVariable);
Chris@1285 36 QStringList getPath() const;
Chris@1285 37
Chris@1285 38 signals:
Chris@1285 39 void pathChanged(QStringList);
Chris@1285 40
Chris@1285 41 private slots:
Chris@1285 42 void upClicked();
Chris@1285 43 void downClicked();
Chris@1285 44 void deleteClicked();
Chris@1288 45 void currentLocationChanged(int);
Chris@1285 46
Chris@1285 47 private:
Chris@1285 48 QGridLayout *m_layout;
Chris@1287 49 QListWidget *m_list;
Chris@1288 50 QPushButton *m_up;
Chris@1288 51 QPushButton *m_down;
Chris@1288 52 QPushButton *m_delete;
Chris@1285 53
Chris@1285 54 QStringList m_path;
Chris@1285 55 QString m_var;
Chris@1285 56
Chris@1287 57 void populate(int makeCurrent = 0);
Chris@1285 58 };
Chris@1285 59
Chris@1285 60 #endif
Chris@1285 61
Chris@1285 62