summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/main.h
blob: 33b5f9d9cdc06126ad1d8eed5256e44275bc8d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef BASE_MAIN_H
#define BASE_MAIN_H

#include "kzoommainwindow.h"

#include <kdemacros.h>

class BaseInterface;
class KToggleAction;
class KKeyDialog;
class TDEConfigDialog;

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(TDEConfigDialog *) {}
    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