38 from eric7.QScintilla.Shell import Shell |
38 from eric7.QScintilla.Shell import Shell |
39 from eric7.QScintilla.SpellChecker import SpellChecker |
39 from eric7.QScintilla.SpellChecker import SpellChecker |
40 from eric7.QScintilla.SpellingDictionaryEditDialog import SpellingDictionaryEditDialog |
40 from eric7.QScintilla.SpellingDictionaryEditDialog import SpellingDictionaryEditDialog |
41 from eric7.QScintilla.ZoomDialog import ZoomDialog |
41 from eric7.QScintilla.ZoomDialog import ZoomDialog |
42 from eric7.SystemUtilities import FileSystemUtilities, OSUtilities |
42 from eric7.SystemUtilities import FileSystemUtilities, OSUtilities |
43 from eric7.UI import Config |
|
44 |
43 |
45 |
44 |
46 class ViewManager(QWidget): |
45 class ViewManager(QWidget): |
47 """ |
46 """ |
48 Base class inherited by all specific view manager classes. |
47 Base class inherited by all specific view manager classes. |
913 @param toolbarManager reference to a toolbar manager object |
912 @param toolbarManager reference to a toolbar manager object |
914 (EricToolBarManager) |
913 (EricToolBarManager) |
915 @return the generated toolbar |
914 @return the generated toolbar |
916 """ |
915 """ |
917 tb = QToolBar(QCoreApplication.translate("ViewManager", "File"), self.ui) |
916 tb = QToolBar(QCoreApplication.translate("ViewManager", "File"), self.ui) |
918 tb.setIconSize(Config.ToolBarIconSize) |
|
919 tb.setObjectName("FileToolbar") |
917 tb.setObjectName("FileToolbar") |
920 tb.setToolTip(QCoreApplication.translate("ViewManager", "File")) |
918 tb.setToolTip(QCoreApplication.translate("ViewManager", "File")) |
921 |
919 |
922 tb.addAction(self.newAct) |
920 tb.addAction(self.newAct) |
923 tb.addAction(self.openAct) |
921 tb.addAction(self.openAct) |
3426 @param toolbarManager reference to a toolbar manager object |
3424 @param toolbarManager reference to a toolbar manager object |
3427 (EricToolBarManager) |
3425 (EricToolBarManager) |
3428 @return the generated toolbar |
3426 @return the generated toolbar |
3429 """ |
3427 """ |
3430 tb = QToolBar(QCoreApplication.translate("ViewManager", "Edit"), self.ui) |
3428 tb = QToolBar(QCoreApplication.translate("ViewManager", "Edit"), self.ui) |
3431 tb.setIconSize(Config.ToolBarIconSize) |
|
3432 tb.setObjectName("EditToolbar") |
3429 tb.setObjectName("EditToolbar") |
3433 tb.setToolTip(QCoreApplication.translate("ViewManager", "Edit")) |
3430 tb.setToolTip(QCoreApplication.translate("ViewManager", "Edit")) |
3434 |
3431 |
3435 tb.addAction(self.undoAct) |
3432 tb.addAction(self.undoAct) |
3436 tb.addAction(self.redoAct) |
3433 tb.addAction(self.redoAct) |
4028 @type EricToolBarManager |
4025 @type EricToolBarManager |
4029 @return generated toolbar |
4026 @return generated toolbar |
4030 @rtype QToolBar |
4027 @rtype QToolBar |
4031 """ |
4028 """ |
4032 tb = QToolBar(QCoreApplication.translate("ViewManager", "Search"), self.ui) |
4029 tb = QToolBar(QCoreApplication.translate("ViewManager", "Search"), self.ui) |
4033 tb.setIconSize(Config.ToolBarIconSize) |
|
4034 tb.setObjectName("SearchToolbar") |
4030 tb.setObjectName("SearchToolbar") |
4035 tb.setToolTip(QCoreApplication.translate("ViewManager", "Search")) |
4031 tb.setToolTip(QCoreApplication.translate("ViewManager", "Search")) |
4036 |
4032 |
4037 tb.addAction(self.searchAct) |
4033 tb.addAction(self.searchAct) |
4038 tb.addAction(self.searchNextAct) |
4034 tb.addAction(self.searchNextAct) |
4594 @param toolbarManager reference to a toolbar manager object |
4590 @param toolbarManager reference to a toolbar manager object |
4595 (EricToolBarManager) |
4591 (EricToolBarManager) |
4596 @return the generated toolbar |
4592 @return the generated toolbar |
4597 """ |
4593 """ |
4598 tb = QToolBar(QCoreApplication.translate("ViewManager", "View"), self.ui) |
4594 tb = QToolBar(QCoreApplication.translate("ViewManager", "View"), self.ui) |
4599 tb.setIconSize(Config.ToolBarIconSize) |
|
4600 tb.setObjectName("ViewToolbar") |
4595 tb.setObjectName("ViewToolbar") |
4601 tb.setToolTip(QCoreApplication.translate("ViewManager", "View")) |
4596 tb.setToolTip(QCoreApplication.translate("ViewManager", "View")) |
4602 |
4597 |
4603 tb.addActions(self.viewActGrp.actions()) |
4598 tb.addActions(self.viewActGrp.actions()) |
4604 tb.addSeparator() |
4599 tb.addSeparator() |
5179 @param toolbarManager reference to a toolbar manager object |
5174 @param toolbarManager reference to a toolbar manager object |
5180 (EricToolBarManager) |
5175 (EricToolBarManager) |
5181 @return the generated toolbar |
5176 @return the generated toolbar |
5182 """ |
5177 """ |
5183 tb = QToolBar(QCoreApplication.translate("ViewManager", "Bookmarks"), self.ui) |
5178 tb = QToolBar(QCoreApplication.translate("ViewManager", "Bookmarks"), self.ui) |
5184 tb.setIconSize(Config.ToolBarIconSize) |
|
5185 tb.setObjectName("BookmarksToolbar") |
5179 tb.setObjectName("BookmarksToolbar") |
5186 tb.setToolTip(QCoreApplication.translate("ViewManager", "Bookmarks")) |
5180 tb.setToolTip(QCoreApplication.translate("ViewManager", "Bookmarks")) |
5187 |
5181 |
5188 tb.addAction(self.bookmarkToggleAct) |
5182 tb.addAction(self.bookmarkToggleAct) |
5189 tb.addAction(self.bookmarkNextAct) |
5183 tb.addAction(self.bookmarkNextAct) |
5326 @param toolbarManager reference to a toolbar manager object |
5320 @param toolbarManager reference to a toolbar manager object |
5327 (EricToolBarManager) |
5321 (EricToolBarManager) |
5328 @return the generated toolbar |
5322 @return the generated toolbar |
5329 """ |
5323 """ |
5330 tb = QToolBar(QCoreApplication.translate("ViewManager", "Spelling"), self.ui) |
5324 tb = QToolBar(QCoreApplication.translate("ViewManager", "Spelling"), self.ui) |
5331 tb.setIconSize(Config.ToolBarIconSize) |
|
5332 tb.setObjectName("SpellingToolbar") |
5325 tb.setObjectName("SpellingToolbar") |
5333 tb.setToolTip(QCoreApplication.translate("ViewManager", "Spelling")) |
5326 tb.setToolTip(QCoreApplication.translate("ViewManager", "Spelling")) |
5334 |
5327 |
5335 tb.addAction(self.spellCheckAct) |
5328 tb.addAction(self.spellCheckAct) |
5336 tb.addAction(self.autoSpellCheckAct) |
5329 tb.addAction(self.autoSpellCheckAct) |