[qet] [1878] Moved the ConfigPage class to a separated, dedicated header file.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1878
Author:   xavier
Date:     2012-06-29 07:21:34 +0200 (Fri, 29 Jun 2012)
Log Message:
-----------
Moved the ConfigPage class to a separated, dedicated header file.

Modified Paths:
--------------
    trunk/sources/configpages.h

Added Paths:
-----------
    trunk/sources/configpage.h

Added: trunk/sources/configpage.h
===================================================================
--- trunk/sources/configpage.h	                        (rev 0)
+++ trunk/sources/configpage.h	2012-06-29 05:21:34 UTC (rev 1878)
@@ -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

Modified: trunk/sources/configpages.h
===================================================================
--- trunk/sources/configpages.h	2012-06-29 05:21:32 UTC (rev 1877)
+++ trunk/sources/configpages.h	2012-06-29 05:21:34 UTC (rev 1878)
@@ -18,31 +18,11 @@
 #ifndef CONFIG_PAGES_H
 #define CONFIG_PAGES_H
 #include <QtGui>
+#include "configpage.h"
 class BorderPropertiesWidget;
 class ConductorPropertiesWidget;
 class TitleBlockPropertiesWidget;
 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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/