You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#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(TQWidget *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
|