Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/ui/ui-drv/qt/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui-drv/qt/mainwindow.h')
-rw-r--r--src/ui/ui-drv/qt/mainwindow.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ui/ui-drv/qt/mainwindow.h b/src/ui/ui-drv/qt/mainwindow.h
new file mode 100644
index 0000000..ffead6d
--- /dev/null
+++ b/src/ui/ui-drv/qt/mainwindow.h
@@ -0,0 +1,43 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QtGui/QMainWindow>
+
+class QImage;
+class FractalWidget;
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+private:
+ FractalWidget *m_fractalWidget;
+
+ void readSettings();
+ void writeSettings();
+
+ static QKeySequence::StandardKey keyForItem(const QString &name);
+
+protected:
+ void closeEvent(QCloseEvent *event);
+
+private slots:
+ void activateMenuItem();
+
+ public:
+ MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+ FractalWidget *fractalWidget();
+
+ void showMessage(const QString &message);
+
+ void buildMenu(struct uih_context *uih, const char *name);
+ void buildMenu(struct uih_context *uih, const char *name, QMenu *parent);
+ void popupMenu(struct uih_context *uih, const char *name);
+ void toggleMenu(struct uih_context *uih, const char *name);
+
+ void showDialog(struct uih_context *uih, const char *name);
+};
+
+#endif // MAINWINDOW_H