summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/main.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /libksirtet/base/main.h
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/base/main.h')
-rw-r--r--libksirtet/base/main.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/libksirtet/base/main.h b/libksirtet/base/main.h
new file mode 100644
index 00000000..d2e108aa
--- /dev/null
+++ b/libksirtet/base/main.h
@@ -0,0 +1,49 @@
+#ifndef BASE_MAIN_H
+#define BASE_MAIN_H
+
+#include "kzoommainwindow.h"
+
+#include <kdemacros.h>
+
+class BaseInterface;
+class KToggleAction;
+class KKeyDialog;
+class KConfigDialog;
+
+class KDE_EXPORT BaseMainWindow : public KZoomMainWindow
+{
+ Q_OBJECT
+public:
+ BaseMainWindow();
+ virtual ~BaseMainWindow();
+
+signals:
+ void settingsChanged();
+
+private slots:
+ void start();
+ void pause();
+ void showHighscores();
+ void configureSettings();
+ void configureKeys();
+ void configureHighscores();
+ void configureNotifications();
+
+protected:
+ BaseInterface *_inter;
+
+ void buildGUI(QWidget *widget);
+ virtual void addConfig(KConfigDialog *) {}
+ virtual void addKeys(KKeyDialog &) {}
+ virtual void saveKeys() {}
+
+ virtual void writeZoomSetting(uint zoom);
+ virtual uint readZoomSetting() const;
+ virtual void writeMenubarVisibleSetting(bool visible);
+ virtual bool menubarVisibleSetting() const;
+
+private:
+ KToggleAction *_pause;
+};
+
+#endif