summaryrefslogtreecommitdiff
path: root/src/frontend/profile/cprofile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/profile/cprofile.h')
-rw-r--r--src/frontend/profile/cprofile.h174
1 files changed, 87 insertions, 87 deletions
diff --git a/src/frontend/profile/cprofile.h b/src/frontend/profile/cprofile.h
index 6e375f9..49f241a 100644
--- a/src/frontend/profile/cprofile.h
+++ b/src/frontend/profile/cprofile.h
@@ -23,96 +23,96 @@ namespace Profile {
* @author The BibleTime team
*/
class CProfile {
-public:
- CProfile(const QString& fileName, const QString& name = QString::null);
- ~CProfile();
+ public:
+ CProfile(const QString& fileName, const QString& name = QString::null);
+ ~CProfile();
- /**
- * Saves the profile to the file given in the constructor.
- * @param windows The list of windows available in the profile.
- */
- bool save( QList<CProfileWindow*> windows );
- /**
- * Saves the profile to the file given in the constructor.
- */
- bool save();
- /**
- * Loads the profile from the file given in the constructor.
- * @return The list of profiled window which exist in the profile.
- */
- QList<CProfileWindow*> load();
- /**
- * Returns the name of this profile.
- */
- const QString& name();
- /**
- * Returns the filename used for this profile.
- */
- const QString& filename();
- /**
- * Initializes the XML for the first time (use to create a new profile)
- */
- void init(const QString);
- /**
- * Chnages the name of this profile.
- */
- void setName( const QString& );
- /**
- * Returns true if the main window was in fullscreen mode as the profile was saved.
- */
- bool fullscreen() const;
- /**
- * Set the parameter to true if the main window coveres the full screen size.
- */
- void setFullscreen( const bool fullscreen );
- /**
- * Returns true if the main window was maximized as the profile was saved.
- */
- bool maximized() const;
- /**
- * Set the parameter to true if the main window is maximized.
- */
- void setMaximized( const bool maximized );
- /**
- * Sets the geoemtry of the main window
- */
- void setGeometry( const QRect rect );
- /**
- * Returns the geometry of the main window
- */
- const QRect geometry();
- /**
- * Sets the MDI arrangement mode
- */
- void setMDIArrangementMode(const CMDIArea::MDIArrangementMode);
- /**
- * Returns mdi arrangement mode
- */
- CMDIArea::MDIArrangementMode getMDIArrangementMode(void);
- /**
- * set mainwindow saveState - position of docking windows and toolbar
- */
- void setMainwindowState(const QByteArray& state);
- /**
- * Return mainwindow saveState - position of docking windows and toolbar
- */
- QByteArray getMainwindowState();
+ /**
+ * Saves the profile to the file given in the constructor.
+ * @param windows The list of windows available in the profile.
+ */
+ bool save( QList<CProfileWindow*> windows );
+ /**
+ * Saves the profile to the file given in the constructor.
+ */
+ bool save();
+ /**
+ * Loads the profile from the file given in the constructor.
+ * @return The list of profiled window which exist in the profile.
+ */
+ QList<CProfileWindow*> load();
+ /**
+ * Returns the name of this profile.
+ */
+ const QString& name();
+ /**
+ * Returns the filename used for this profile.
+ */
+ const QString& filename();
+ /**
+ * Initializes the XML for the first time (use to create a new profile)
+ */
+ void init(const QString);
+ /**
+ * Chnages the name of this profile.
+ */
+ void setName( const QString& );
+ /**
+ * Returns true if the main window was in fullscreen mode as the profile was saved.
+ */
+ bool fullscreen() const;
+ /**
+ * Set the parameter to true if the main window coveres the full screen size.
+ */
+ void setFullscreen( const bool fullscreen );
+ /**
+ * Returns true if the main window was maximized as the profile was saved.
+ */
+ bool maximized() const;
+ /**
+ * Set the parameter to true if the main window is maximized.
+ */
+ void setMaximized( const bool maximized );
+ /**
+ * Sets the geoemtry of the main window
+ */
+ void setGeometry( const QRect rect );
+ /**
+ * Returns the geometry of the main window
+ */
+ const QRect geometry();
+ /**
+ * Sets the MDI arrangement mode
+ */
+ void setMDIArrangementMode(const CMDIArea::MDIArrangementMode);
+ /**
+ * Returns mdi arrangement mode
+ */
+ CMDIArea::MDIArrangementMode getMDIArrangementMode(void);
+ /**
+ * set mainwindow saveState - position of docking windows and toolbar
+ */
+ void setMainwindowState(const QByteArray& state);
+ /**
+ * Return mainwindow saveState - position of docking windows and toolbar
+ */
+ QByteArray getMainwindowState();
-private:
- /**
- * Loads the basic settings requires for proper operation.
- */
- void loadBasics();
- void saveBasics();
+ private:
+ /**
+ * Loads the basic settings requires for proper operation.
+ */
+ void loadBasics();
+ void saveBasics();
- QList<CProfileWindow*> m_profileWindows;
- QString m_name;
- QString m_filename;
- bool m_fullscreen;
- bool m_maximized;
- QRect m_geometry;
- CMDIArea::MDIArrangementMode m_mdiArrangementMode;
- QByteArray m_mainwindowState;
+ QList<CProfileWindow*> m_profileWindows;
+ QString m_name;
+ QString m_filename;
+ bool m_fullscreen;
+ bool m_maximized;
+ QRect m_geometry;
+ CMDIArea::MDIArrangementMode m_mdiArrangementMode;
+ QByteArray m_mainwindowState;
};
} //end of namespace Profile