summaryrefslogtreecommitdiff
path: root/src/frontend/profile/cprofilewindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/profile/cprofilewindow.h')
-rw-r--r--src/frontend/profile/cprofilewindow.h178
1 files changed, 89 insertions, 89 deletions
diff --git a/src/frontend/profile/cprofilewindow.h b/src/frontend/profile/cprofilewindow.h
index 090d991..4b3a700 100644
--- a/src/frontend/profile/cprofilewindow.h
+++ b/src/frontend/profile/cprofilewindow.h
@@ -27,97 +27,97 @@ namespace Profile {
* @author The BibleTime team
*/
class CProfileWindow {
-public:
- struct ScrollbarPos {
- int horizontal; //the position of the horizontal scrollbar
- int vertical; //the position of the vertical scrollbar
- };
+ public:
+ struct ScrollbarPos {
+ int horizontal; //the position of the horizontal scrollbar
+ int vertical; //the position of the vertical scrollbar
+ };
- CProfileWindow(CSwordModuleInfo::ModuleType type = CSwordModuleInfo::Unknown);
- ~CProfileWindow();
- /**
- * Sets the modules.
- */
- void setModules( const QStringList& modules );
- /**
- * Returns the type of the managed window (bible window, commentary window or lexicon window).
- */
- CSwordModuleInfo::ModuleType type() const;
- /**
- * Sets the type of the used modules.
- */
- void setType(const CSwordModuleInfo::ModuleType& type);
- /**
- * Sets the size of the window.
- */
- void setGeometry( const QRect& s );
- /**
- * Returns the size of the window including the x,y coordinates.
- */
- const QRect& geometry() const;
- /**
- * Returns a list of module names which are chosen in the managed window profile.
- */
- const QStringList& modules() const;
- /**
- * Set the key used in the modules.
- */
- void setKey( const QString& );
- /**
- * Returns the current key set in the modules.
- */
- const QString& key() const;
- /**
- * Sets the current position of the scrollbars.
- */
- void setScrollbarPositions(const int& x, const int& y);
- /**
- * Sets the windows maximized state to true or false.
- */
- void setMaximized( const bool& maximized );
- /**
- * Sets the windows hasFocus state to true or false.
- */
- void setFocus( const bool& hasFocus );
- /**
- * Sets the window specific settings.
- */
- void setWindowSettings( const int& settings );
- /**
- * Returns an integer with the window specific settings
- */
- const int& windowSettings() const;
- /**
- * Returns true if the window is maximized.
- */
- const bool& maximized() const;
- /**
- * Returns true if the window has the focus in the MDI area.
- */
- const bool& hasFocus() const;
- /**
- * Returns tghe position of the scrollbars
- */
- const CProfileWindow::ScrollbarPos& scrollbarPositions() const;
- /**
- * Returns whether this profile window represents a write window.
- */
- const int& writeWindowType() const;
- /**
- * Tells this profile window to represent a write window.
- */
- void setWriteWindowType( const int& writeWindowType );
+ CProfileWindow(CSwordModuleInfo::ModuleType type = CSwordModuleInfo::Unknown);
+ ~CProfileWindow();
+ /**
+ * Sets the modules.
+ */
+ void setModules( const QStringList& modules );
+ /**
+ * Returns the type of the managed window (bible window, commentary window or lexicon window).
+ */
+ CSwordModuleInfo::ModuleType type() const;
+ /**
+ * Sets the type of the used modules.
+ */
+ void setType(const CSwordModuleInfo::ModuleType& type);
+ /**
+ * Sets the size of the window.
+ */
+ void setGeometry( const QRect& s );
+ /**
+ * Returns the size of the window including the x,y coordinates.
+ */
+ const QRect& geometry() const;
+ /**
+ * Returns a list of module names which are chosen in the managed window profile.
+ */
+ const QStringList& modules() const;
+ /**
+ * Set the key used in the modules.
+ */
+ void setKey( const QString& );
+ /**
+ * Returns the current key set in the modules.
+ */
+ const QString& key() const;
+ /**
+ * Sets the current position of the scrollbars.
+ */
+ void setScrollbarPositions(const int& x, const int& y);
+ /**
+ * Sets the windows maximized state to true or false.
+ */
+ void setMaximized( const bool& maximized );
+ /**
+ * Sets the windows hasFocus state to true or false.
+ */
+ void setFocus( const bool& hasFocus );
+ /**
+ * Sets the window specific settings.
+ */
+ void setWindowSettings( const int& settings );
+ /**
+ * Returns an integer with the window specific settings
+ */
+ const int& windowSettings() const;
+ /**
+ * Returns true if the window is maximized.
+ */
+ const bool& maximized() const;
+ /**
+ * Returns true if the window has the focus in the MDI area.
+ */
+ const bool& hasFocus() const;
+ /**
+ * Returns tghe position of the scrollbars
+ */
+ const CProfileWindow::ScrollbarPos& scrollbarPositions() const;
+ /**
+ * Returns whether this profile window represents a write window.
+ */
+ const int& writeWindowType() const;
+ /**
+ * Tells this profile window to represent a write window.
+ */
+ void setWriteWindowType( const int& writeWindowType );
-private:
- CSwordModuleInfo::ModuleType m_type;
- QRect m_windowGeometry;
- QStringList m_moduleList;
- QString m_key;
- ScrollbarPos m_scrollbarPos;
- bool m_maximized;
- bool m_hasFocus;
- int m_windowSettings;
- int m_writeWindowType;
+ private:
+ CSwordModuleInfo::ModuleType m_type;
+ QRect m_windowGeometry;
+ QStringList m_moduleList;
+ QString m_key;
+ ScrollbarPos m_scrollbarPos;
+ bool m_maximized;
+ bool m_hasFocus;
+ int m_windowSettings;
+ int m_writeWindowType;
};
} //end of namespace Profile