mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Moved the ConfigPage class to a separated, dedicated header file.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1878 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
28
sources/configpage.h
Normal file
28
sources/configpage.h
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#ifndef CONFIGPAGE_H
|
||||||
|
#define CONFIGPAGE_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
|
/**
|
||||||
|
This abstract class specify methods all derived classes should should
|
||||||
|
implement.
|
||||||
|
*/
|
||||||
|
class ConfigPage : public QWidget {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
Constructor
|
||||||
|
@param parent Parent QWidget
|
||||||
|
*/
|
||||||
|
ConfigPage(QWidget *parent) : QWidget(parent) {};
|
||||||
|
/// Destructor
|
||||||
|
virtual ~ConfigPage() {};
|
||||||
|
/// Apply the configuration after user input
|
||||||
|
virtual void applyConf() = 0;
|
||||||
|
/// @return the configuration page title
|
||||||
|
virtual QString title() const = 0;
|
||||||
|
/// @return the configuration page icon
|
||||||
|
virtual QIcon icon() const = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -18,31 +18,11 @@
|
|||||||
#ifndef CONFIG_PAGES_H
|
#ifndef CONFIG_PAGES_H
|
||||||
#define CONFIG_PAGES_H
|
#define CONFIG_PAGES_H
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
#include "configpage.h"
|
||||||
class BorderPropertiesWidget;
|
class BorderPropertiesWidget;
|
||||||
class ConductorPropertiesWidget;
|
class ConductorPropertiesWidget;
|
||||||
class TitleBlockPropertiesWidget;
|
class TitleBlockPropertiesWidget;
|
||||||
class ExportPropertiesWidget;
|
class ExportPropertiesWidget;
|
||||||
/**
|
|
||||||
Cette classe abstraite contient les methodes que toutes les pages de
|
|
||||||
configuration doivent implementer.
|
|
||||||
*/
|
|
||||||
class ConfigPage : public QWidget {
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
/**
|
|
||||||
Constructeur
|
|
||||||
@param parent QWidget parent
|
|
||||||
*/
|
|
||||||
ConfigPage(QWidget *parent) : QWidget(parent) {};
|
|
||||||
/// Destructeur
|
|
||||||
virtual ~ConfigPage() {};
|
|
||||||
/// Applique la configuration saisie par l'utilisateur dans la page de configuration
|
|
||||||
virtual void applyConf() = 0;
|
|
||||||
/// @return le titre de la page de configuration
|
|
||||||
virtual QString title() const = 0;
|
|
||||||
/// @return l'icone de la page de configuration
|
|
||||||
virtual QIcon icon() const = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cette classe represente la page de configuration des nouveaux schemas.
|
Cette classe represente la page de configuration des nouveaux schemas.
|
||||||
|
|||||||
Reference in New Issue
Block a user