Bibletime – a bible study tool
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*********
  2. *
  3. * This file is part of BibleTime's source code, http://www.bibletime.info/.
  4. *
  5. * Copyright 1999-2006 by the BibleTime developers.
  6. * The BibleTime source code is licensed under the GNU General Public License version 2.0.
  7. *
  8. **********/
  9. #ifndef CBOOKREADWINDOW_H
  10. #define CBOOKREADWINDOW_H
  11. //BibleTime includes
  12. #include "clexiconreadwindow.h"
  13. #include "backend/cswordkey.h"
  14. #include "backend/cswordtreekey.h"
  15. #include "backend/cswordversekey.h"
  16. class TDEToggleAction;
  17. class CBookTreeChooser;
  18. /**
  19. * @author The BibleTime team
  20. */
  21. class CBookReadWindow : public CLexiconReadWindow {
  22. Q_OBJECT
  23. public:
  24. static void insertKeyboardActions( TDEActionCollection* const a );
  25. CBookReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
  26. virtual ~CBookReadWindow();
  27. /**
  28. * Store the settings of this window in the given CProfileWindow object.
  29. */
  30. virtual void storeProfileSettings( Profile::CProfileWindow* profileWindow );
  31. /**
  32. * Store the settings of this window in the given profile window.
  33. */
  34. virtual void applyProfileSettings( Profile::CProfileWindow* profileWindow );
  35. protected:
  36. virtual void initActions();
  37. virtual void initToolbars();
  38. virtual void initConnections();
  39. virtual void initView();
  40. virtual void setupPopupMenu();
  41. protected slots: // Protected slots
  42. /**
  43. * Reimplementation to take care of the tree chooser.
  44. */
  45. virtual void modulesChanged();
  46. private:
  47. TDEToggleAction* m_treeAction;
  48. CBookTreeChooser* m_treeChooser;
  49. private slots: // Private slots
  50. /**
  51. * Is called when the action was executed to toggle the tree view.
  52. */
  53. void treeToggled();
  54. };
  55. #endif