summaryrefslogtreecommitdiff
path: root/muse2/muse/plugin.h
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-12-06 03:14:50 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-12-06 03:14:50 +0000
commit45f13100f9b5d0fd5a9f4950e135c2ed6de0429c (patch)
treed6ae3298e910174e37869ab51cdefa9325aa160b /muse2/muse/plugin.h
parentbbe8aea131a3bb0bb307c743eb00ec0ef18e39d7 (diff)
Qt4 ports. Please see the ChangeLog.
Diffstat (limited to 'muse2/muse/plugin.h')
-rw-r--r--muse2/muse/plugin.h39
1 files changed, 18 insertions, 21 deletions
diff --git a/muse2/muse/plugin.h b/muse2/muse/plugin.h
index 8c69058e..f5ac9031 100644
--- a/muse2/muse/plugin.h
+++ b/muse2/muse/plugin.h
@@ -12,13 +12,9 @@
#include <list>
#include <vector>
-#include <q3mainwindow.h>
-#include <qstring.h>
-#include <qwidget.h>
-//#include <qwidgetfactory.h>
-#include <qdialog.h>
-#include <qfileinfo.h>
-#include <qcombobox.h>
+#include <QDialog>
+#include <QUiLoader>
+
#include "ladspa.h"
#include "globals.h"
@@ -38,27 +34,28 @@
#include <dssi.h>
#endif
+class QComboBox;
+class QFileInfo;
+class QScrollArea;
+class QToolButton;
+
class Xml;
-class QWidget;
-// class QLabel;
class Slider;
-class Q3ListView;
-class Q3ScrollView;
-class QToolButton;
class DoubleLabel;
class AudioTrack;
class MidiController;
//---------------------------------------------------------
-// PluginWidgetFactory
+// PluginLoader
//---------------------------------------------------------
-#if 0
-class PluginWidgetFactory : public QWidgetFactory
+
+class PluginLoader : public QUiLoader
{
- public:
- virtual QWidget* createWidget(const QString& className, QWidget* parent, const char* name) const;
+ public:
+ virtual QWidget* createWidget(const QString & className, QWidget * parent = 0, const QString & name = QString());
+ PluginLoader(QObject * parent = 0) : QUiLoader(parent) {}
};
-#endif
+
//---------------------------------------------------------
// Plugin
//---------------------------------------------------------
@@ -308,7 +305,7 @@ class PluginIBase
// PluginGui
//---------------------------------------------------------
-class PluginGui : public Q3MainWindow {
+class PluginGui : public QMainWindow {
Q_OBJECT
//PluginI* plugin; // plugin instance
@@ -318,9 +315,9 @@ class PluginGui : public Q3MainWindow {
int nobj; // number of widgets in gw
GuiWidgets* gw;
- QToolButton* onOff;
+ QAction* onOff;
QWidget* mw; // main widget
- Q3ScrollView* view;
+ QScrollArea* view;
void updateControls();