annotate widgets/PluginPathConfigurator.h @ 1287:2dd7f764c3a6 plugin-path-config

Better editing mechanism
author Chris Cannam
date Tue, 15 May 2018 13:56:26 +0100
parents e327bbf4bf57
children 4683b6ffb76a
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@1287 24 class QListWidget;
Chris@1286 25
Chris@1285 26 class PluginPathConfigurator : public QFrame
Chris@1285 27 {
Chris@1285 28 Q_OBJECT
Chris@1285 29
Chris@1285 30 public:
Chris@1285 31 PluginPathConfigurator(QWidget *parent = 0);
Chris@1285 32 ~PluginPathConfigurator();
Chris@1285 33
Chris@1285 34 void setPath(QStringList directories, QString envVariable);
Chris@1285 35 QStringList getPath() const;
Chris@1285 36
Chris@1285 37 signals:
Chris@1285 38 void pathChanged(QStringList);
Chris@1285 39
Chris@1285 40 private slots:
Chris@1285 41 void upClicked();
Chris@1285 42 void downClicked();
Chris@1285 43 void deleteClicked();
Chris@1285 44
Chris@1285 45 private:
Chris@1285 46 QGridLayout *m_layout;
Chris@1287 47 QListWidget *m_list;
Chris@1285 48
Chris@1285 49 QStringList m_path;
Chris@1285 50 QString m_var;
Chris@1285 51
Chris@1287 52 void populate(int makeCurrent = 0);
Chris@1285 53 };
Chris@1285 54
Chris@1285 55 #endif
Chris@1285 56
Chris@1285 57