Enable panels mechanism
This commit is contained in:
@@ -28,6 +28,7 @@ class ImportEngine;
|
||||
#include <QVBoxLayout>
|
||||
#include <QScrollArea>
|
||||
#include <QPushButton>
|
||||
#include <QSignalMapper>
|
||||
|
||||
#include <controller/KissCount.hpp>
|
||||
|
||||
@@ -71,13 +72,14 @@ public:
|
||||
int _language;
|
||||
|
||||
private slots:
|
||||
void OnButtonClicked();
|
||||
void OnButtonClicked(int id);
|
||||
void OnButtonChangeUser();
|
||||
void OnButtonAbout();
|
||||
void OnButtonQuit();
|
||||
|
||||
private:
|
||||
KissCount *_kiss;
|
||||
QSignalMapper _signalMapper;
|
||||
QVBoxLayout *_vbox;
|
||||
QHBoxLayout *_buttonsBox;
|
||||
KissPanel *_curPanel;
|
||||
@@ -100,9 +102,9 @@ public:
|
||||
_KissButton(0)
|
||||
{hide();}
|
||||
|
||||
virtual void OnShow(QShowEvent * event)=0;
|
||||
virtual void OnShow()=0;
|
||||
virtual KissPanel* CreatePanel()=0;
|
||||
virtual QPushButton* GetButton(int id) {return 0;}
|
||||
virtual QPushButton* GetButton() {return 0;}
|
||||
virtual QString GetToolTip() {return "";}
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user