annotate widgets/PluginPathConfigurator.h @ 1285:abd52bd8d435 plugin-path-config

Toward allowing the user to see (at least, and maybe change) the plugin path
author Chris Cannam
date Fri, 11 May 2018 16:59:14 +0100
parents
children e327bbf4bf57
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@1285 22 class PluginPathConfigurator : public QFrame
Chris@1285 23 {
Chris@1285 24 Q_OBJECT
Chris@1285 25
Chris@1285 26 public:
Chris@1285 27 PluginPathConfigurator(QWidget *parent = 0);
Chris@1285 28 ~PluginPathConfigurator();
Chris@1285 29
Chris@1285 30 void setPath(QStringList directories, QString envVariable);
Chris@1285 31 QStringList getPath() const;
Chris@1285 32
Chris@1285 33 signals:
Chris@1285 34 void pathChanged(QStringList);
Chris@1285 35
Chris@1285 36 private slots:
Chris@1285 37 void upClicked();
Chris@1285 38 void downClicked();
Chris@1285 39 void deleteClicked();
Chris@1285 40
Chris@1285 41 private:
Chris@1285 42 QGridLayout *m_layout;
Chris@1285 43
Chris@1285 44 QStringList m_path;
Chris@1285 45 QString m_var;
Chris@1285 46
Chris@1285 47 void populate();
Chris@1285 48
Chris@1285 49 };
Chris@1285 50
Chris@1285 51 #endif
Chris@1285 52
Chris@1285 53