bibletime
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clexiconreadwindow.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 CLEXICONREADWINDOW_H
  10. #define CLEXICONREADWINDOW_H
  11. //BibleTime includes
  12. #include "creadwindow.h"
  13. //TQt includes
  14. #include <tqwidget.h>
  15. //KDE includes
  16. #include <kaction.h>
  17. class CSwordKey;
  18. class CSwordLDKey;
  19. //KDE
  20. class TDEToolBarPopupAction;
  21. /**
  22. *@author The BibleTime team
  23. */
  24. class CLexiconReadWindow : public CReadWindow {
  25. Q_OBJECT
  26. public:
  27. CLexiconReadWindow(ListCSwordModuleInfo modules, CMDIArea* parent, const char *name=0);
  28. virtual ~CLexiconReadWindow();
  29. /**
  30. * Store the settings of this window in the given CProfileWindow object.
  31. */
  32. // virtual void storeProfileSettings( CProfileWindow* profileWindow );
  33. /**
  34. * Store the settings of this window in the given profile window.
  35. */
  36. // virtual void applyProfileSettings( CProfileWindow* profileWindow );
  37. /**
  38. * Reimplementation.
  39. */
  40. // static void insertKeyboardActions( TDEAccel* a );
  41. static void insertKeyboardActions( TDEActionCollection* const a );
  42. protected:
  43. virtual void initActions();
  44. virtual void initToolbars();
  45. virtual void initConnections();
  46. virtual void initView();
  47. virtual void updatePopupMenu();
  48. virtual void setupPopupMenu();
  49. struct ActionsStruct {
  50. TDEToolBarPopupAction* backInHistory;
  51. TDEToolBarPopupAction* forwardInHistory;
  52. TDEAction* selectAll;
  53. TDEAction* findText;
  54. TDEAction* findStrongs;
  55. TDEActionMenu* copyMenu;
  56. struct {
  57. TDEAction* reference;
  58. TDEAction* entry;
  59. TDEAction* selectedText;
  60. }
  61. copy;
  62. TDEActionMenu* saveMenu;
  63. struct {
  64. TDEAction* reference;
  65. TDEAction* entryAsPlain;
  66. TDEAction* entryAsHTML;
  67. }
  68. save;
  69. TDEActionMenu* printMenu;
  70. struct {
  71. TDEAction* reference;
  72. TDEAction* entry;
  73. }
  74. print;
  75. }
  76. m_actions;
  77. private:
  78. /**
  79. * Reimplementation to return the right key.
  80. */
  81. CSwordLDKey* ldKey();
  82. protected slots: // Protected slots
  83. void previousEntry();
  84. void nextEntry();
  85. /**
  86. * This function saves the entry as html using the CExportMgr class.
  87. */
  88. void saveAsHTML();
  89. /**
  90. * This function saves the entry as plain text using the CExportMgr class.
  91. */
  92. void saveAsPlain();
  93. void slotFillBackHistory();
  94. void slotFillForwardHistory();
  95. void slotUpdateHistoryButtons();
  96. };
  97. #endif