annotate widgets/PluginPathConfigurator.h @ 1286:e327bbf4bf57 plugin-path-config

Up/down
author Chris Cannam
date Tue, 15 May 2018 11:18:07 +0100
parents abd52bd8d435
children 2dd7f764c3a6
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 <QGridLayout>
Chris@1285 20 #include <QStringList>
Chris@1285 21
Chris@1286 22 class QLabel;
Chris@1286 23 class QWidget;
Chris@1286 24
Chris@1285 25 class PluginPathConfigurator : public QFrame
Chris@1285 26 {
Chris@1285 27 Q_OBJECT
Chris@1285 28
Chris@1285 29 public:
Chris@1285 30 PluginPathConfigurator(QWidget *parent = 0);
Chris@1285 31 ~PluginPathConfigurator();
Chris@1285 32
Chris@1285 33 void setPath(QStringList directories, QString envVariable);
Chris@1285 34 QStringList getPath() const;
Chris@1285 35
Chris@1285 36 signals:
Chris@1285 37 void pathChanged(QStringList);
Chris@1285 38
Chris@1285 39 private slots:
Chris@1285 40 void upClicked();
Chris@1285 41 void downClicked();
Chris@1285 42 void deleteClicked();
Chris@1285 43
Chris@1285 44 private:
Chris@1285 45 QGridLayout *m_layout;
Chris@1285 46
Chris@1285 47 QStringList m_path;
Chris@1285 48 QString m_var;
Chris@1286 49
Chris@1286 50 QWidget *m_innerFrame;
Chris@1286 51 std::vector<QLabel *> m_labels;
Chris@1285 52
Chris@1285 53 void populate();
Chris@1285 54 };
Chris@1285 55
Chris@1285 56 #endif
Chris@1285 57
Chris@1285 58