2010-06-15 06:54:58 +00:00
|
|
|
#ifndef TABCONTENT_H
|
|
|
|
#define TABCONTENT_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2010-08-15 01:50:27 +00:00
|
|
|
class PreferencesDialog;
|
|
|
|
|
2010-06-15 06:54:58 +00:00
|
|
|
class TabContent : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum TabType
|
|
|
|
{
|
|
|
|
Skin,
|
|
|
|
Config
|
|
|
|
};
|
|
|
|
|
|
|
|
TabContent(QWidget *parent = 0): QWidget(parent){ }
|
|
|
|
|
|
|
|
virtual TabType type() const = 0;
|
|
|
|
virtual QString title() const = 0;
|
|
|
|
virtual QString file() const = 0;
|
|
|
|
|
|
|
|
virtual void save() = 0;
|
|
|
|
virtual void saveAs() = 0;
|
|
|
|
|
|
|
|
virtual bool requestClose() = 0;
|
|
|
|
|
2010-08-15 01:50:27 +00:00
|
|
|
virtual void connectPrefs(PreferencesDialog* prefs) = 0;
|
|
|
|
|
2010-06-15 06:54:58 +00:00
|
|
|
signals:
|
|
|
|
void titleChanged(QString);
|
|
|
|
void lineChanged(int);
|
|
|
|
|
|
|
|
public slots:
|
2010-08-15 01:50:27 +00:00
|
|
|
virtual void settingsChanged() = 0;
|
2010-06-15 06:54:58 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TABCONTENT_H
|