Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.h
Show All 40 Lines | |||||
41 | class DolphinSettingsDialog; | 41 | class DolphinSettingsDialog; | ||
42 | class DolphinViewContainer; | 42 | class DolphinViewContainer; | ||
43 | class DolphinRemoteEncoding; | 43 | class DolphinRemoteEncoding; | ||
44 | class DolphinTabWidget; | 44 | class DolphinTabWidget; | ||
45 | class KFileItem; | 45 | class KFileItem; | ||
46 | class KFileItemList; | 46 | class KFileItemList; | ||
47 | class KJob; | 47 | class KJob; | ||
48 | class KNewFileMenu; | 48 | class KNewFileMenu; | ||
49 | class KHelpMenu; | ||||
49 | class QToolButton; | 50 | class QToolButton; | ||
50 | class QIcon; | 51 | class QIcon; | ||
51 | class PlacesPanel; | 52 | class PlacesPanel; | ||
52 | class TerminalPanel; | 53 | class TerminalPanel; | ||
53 | 54 | | |||
54 | /** | 55 | /** | ||
55 | * @short Main window for Dolphin. | 56 | * @short Main window for Dolphin. | ||
56 | * | 57 | * | ||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 196 | protected: | |||
200 | void closeEvent(QCloseEvent* event) override; | 201 | void closeEvent(QCloseEvent* event) override; | ||
201 | 202 | | |||
202 | /** @see KMainWindow::saveProperties() */ | 203 | /** @see KMainWindow::saveProperties() */ | ||
203 | void saveProperties(KConfigGroup& group) override; | 204 | void saveProperties(KConfigGroup& group) override; | ||
204 | 205 | | |||
205 | /** @see KMainWindow::readProperties() */ | 206 | /** @see KMainWindow::readProperties() */ | ||
206 | void readProperties(const KConfigGroup& group) override; | 207 | void readProperties(const KConfigGroup& group) override; | ||
207 | 208 | | |||
209 | /** Handles QWhatsThisClickedEvent and passes all others on. */ | ||||
210 | bool event(QEvent* event) override; | ||||
211 | /** Handles QWhatsThisClickedEvent and passes all others on. */ | ||||
212 | bool eventFilter(QObject*, QEvent*) override; | ||||
213 | | ||||
208 | private slots: | 214 | private slots: | ||
209 | /** | 215 | /** | ||
210 | * Refreshes the views of the main window by recreating them according to | 216 | * Refreshes the views of the main window by recreating them according to | ||
211 | * the given Dolphin settings. | 217 | * the given Dolphin settings. | ||
212 | */ | 218 | */ | ||
213 | void refreshViews(); | 219 | void refreshViews(); | ||
214 | 220 | | |||
215 | void clearStatusBar(); | 221 | void clearStatusBar(); | ||
▲ Show 20 Lines • Show All 275 Lines • ▼ Show 20 Line(s) | |||||
491 | * Is called when the user middle clicks a toolbar button. | 497 | * Is called when the user middle clicks a toolbar button. | ||
492 | * | 498 | * | ||
493 | * Here middle clicking Back/Forward/Up/Home will open the resulting | 499 | * Here middle clicking Back/Forward/Up/Home will open the resulting | ||
494 | * folder in a new tab. | 500 | * folder in a new tab. | ||
495 | */ | 501 | */ | ||
496 | void slotToolBarActionMiddleClicked(QAction *action); | 502 | void slotToolBarActionMiddleClicked(QAction *action); | ||
497 | 503 | | |||
498 | private: | 504 | private: | ||
505 | /** | ||||
506 | * Sets up the various menus and actions and connects them. | ||||
507 | */ | ||||
499 | void setupActions(); | 508 | void setupActions(); | ||
509 | | ||||
510 | /** | ||||
511 | * Sets up the dock widgets and their panels. | ||||
512 | */ | ||||
500 | void setupDockWidgets(); | 513 | void setupDockWidgets(); | ||
514 | | ||||
501 | void updateEditActions(); | 515 | void updateEditActions(); | ||
502 | void updateViewActions(); | 516 | void updateViewActions(); | ||
503 | void updateGoActions(); | 517 | void updateGoActions(); | ||
504 | 518 | | |||
505 | void createControlButton(); | 519 | void createControlButton(); | ||
506 | void deleteControlButton(); | 520 | void deleteControlButton(); | ||
507 | 521 | | |||
508 | /** | 522 | /** | ||
Show All 27 Lines | |||||
536 | * as the action for toggling the dock visibility is done by Qt which | 550 | * as the action for toggling the dock visibility is done by Qt which | ||
537 | * is no KAction instance. | 551 | * is no KAction instance. | ||
538 | */ | 552 | */ | ||
539 | void createPanelAction(const QIcon &icon, | 553 | void createPanelAction(const QIcon &icon, | ||
540 | const QKeySequence& shortcut, | 554 | const QKeySequence& shortcut, | ||
541 | QAction* dockAction, | 555 | QAction* dockAction, | ||
542 | const QString& actionName); | 556 | const QString& actionName); | ||
543 | 557 | | |||
558 | /** Adds "What's This?" texts to many widgets and StandardActions. */ | ||||
559 | void setupWhatsThis(); | ||||
560 | | ||||
544 | private: | 561 | private: | ||
545 | /** | 562 | /** | ||
546 | * Implements a custom error handling for the undo manager. This | 563 | * Implements a custom error handling for the undo manager. This | ||
547 | * assures that all errors are shown in the status bar of Dolphin | 564 | * assures that all errors are shown in the status bar of Dolphin | ||
548 | * instead as modal error dialog with an OK button. | 565 | * instead as modal error dialog with an OK button. | ||
549 | */ | 566 | */ | ||
550 | class UndoUiInterface : public KIO::FileUndoManager::UiInterface | 567 | class UndoUiInterface : public KIO::FileUndoManager::UiInterface | ||
551 | { | 568 | { | ||
552 | public: | 569 | public: | ||
553 | UndoUiInterface(); | 570 | UndoUiInterface(); | ||
554 | ~UndoUiInterface() override; | 571 | ~UndoUiInterface() override; | ||
555 | void jobError(KIO::Job* job) override; | 572 | void jobError(KIO::Job* job) override; | ||
556 | }; | 573 | }; | ||
557 | 574 | | |||
558 | KNewFileMenu* m_newFileMenu; | 575 | KNewFileMenu* m_newFileMenu; | ||
576 | KHelpMenu* m_helpMenu; | ||||
559 | DolphinTabWidget* m_tabWidget; | 577 | DolphinTabWidget* m_tabWidget; | ||
560 | DolphinViewContainer* m_activeViewContainer; | 578 | DolphinViewContainer* m_activeViewContainer; | ||
561 | 579 | | |||
562 | DolphinViewActionHandler* m_actionHandler; | 580 | DolphinViewActionHandler* m_actionHandler; | ||
563 | DolphinRemoteEncoding* m_remoteEncoding; | 581 | DolphinRemoteEncoding* m_remoteEncoding; | ||
564 | QPointer<DolphinSettingsDialog> m_settingsDialog; | 582 | QPointer<DolphinSettingsDialog> m_settingsDialog; | ||
565 | DolphinBookmarkHandler* m_bookmarkHandler; | 583 | DolphinBookmarkHandler* m_bookmarkHandler; | ||
566 | 584 | | |||
Show All 23 Lines |