diff options
Diffstat (limited to 'src/frontend/displaywindow/cbookreadwindow.h')
-rw-r--r-- | src/frontend/displaywindow/cbookreadwindow.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/frontend/displaywindow/cbookreadwindow.h b/src/frontend/displaywindow/cbookreadwindow.h new file mode 100644 index 0000000..eaa0c15 --- /dev/null +++ b/src/frontend/displaywindow/cbookreadwindow.h @@ -0,0 +1,69 @@ +/********* +* +* This file is part of BibleTime's BtActionCollection code, http://www.bibletime.info/. +* +* Copyright 1999-2008 by the BibleTime developers. +* The BibleTime BtActionCollection code is licensed under the GNU General Public License version 2.0. +* +**********/ + + + +#ifndef CBOOKREADWINDOW_H +#define CBOOKREADWINDOW_H + +//BibleTime includes +#include "clexiconreadwindow.h" + + +class QAction; +class CBookTreeChooser; +class BtActionCollection; + + +/** + * @author The BibleTime team + */ +class CBookReadWindow : public CLexiconReadWindow { + Q_OBJECT +public: + static void insertKeyboardActions( BtActionCollection* const a ); + + CBookReadWindow(QList<CSwordModuleInfo*> modules, CMDIArea* parent); + + virtual ~CBookReadWindow(); + /** + * Store the settings of this window in the given CProfileWindow object. + */ + virtual void storeProfileSettings( Profile::CProfileWindow* profileWindow ); + /** + * Store the settings of this window in the given profile window. + */ + virtual void applyProfileSettings( Profile::CProfileWindow* profileWindow ); + +protected: + virtual void initActions(); + virtual void initToolbars(); + virtual void initConnections(); + virtual void initView(); + + virtual void setupPopupMenu(); + + protected slots: // Protected slots + /** + * Reimplementation to take care of the tree chooser. + */ + virtual void modulesChanged(); + +private: + QAction* m_treeAction; + CBookTreeChooser* m_treeChooser; + +private slots: // Private slots + /** + * Is called when the action was executed to toggle the tree view. + */ + void treeToggled(); +}; + +#endif |