From 1030dc837b10a03a02a85d5504cbeec168ce49e2 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 03 May 2010 21:53:47 +0000 Subject: Import XaoS r489 (trunk after version 3.5) --- (limited to 'src/ui/ui-drv/qt/mainwindow.h') 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 + +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 -- cgit v0.9.1