Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | #include <QIcon> | 31 | #include <QIcon> | ||
32 | #include <QList> | 32 | #include <QList> | ||
33 | #include <QPointer> | 33 | #include <QPointer> | ||
34 | #include <QUrl> | 34 | #include <QUrl> | ||
35 | 35 | | |||
36 | typedef KIO::FileUndoManager::CommandType CommandType; | 36 | typedef KIO::FileUndoManager::CommandType CommandType; | ||
37 | 37 | | |||
38 | class DolphinBookmarkHandler; | ||||
38 | class DolphinViewActionHandler; | 39 | class DolphinViewActionHandler; | ||
39 | class DolphinSettingsDialog; | 40 | class DolphinSettingsDialog; | ||
40 | class DolphinViewContainer; | 41 | class DolphinViewContainer; | ||
41 | class DolphinRemoteEncoding; | 42 | class DolphinRemoteEncoding; | ||
42 | class DolphinTabWidget; | 43 | class DolphinTabWidget; | ||
43 | class KFileItem; | 44 | class KFileItem; | ||
44 | class KFileItemList; | 45 | class KFileItemList; | ||
45 | class KJob; | 46 | class KJob; | ||
Show All 21 Lines | 63 | public: | |||
67 | * Returns the currently active view. | 68 | * Returns the currently active view. | ||
68 | * All menu actions are applied to this view. When | 69 | * All menu actions are applied to this view. When | ||
69 | * having a split view setup, the nonactive view | 70 | * having a split view setup, the nonactive view | ||
70 | * is usually shown in darker colors. | 71 | * is usually shown in darker colors. | ||
71 | */ | 72 | */ | ||
72 | DolphinViewContainer* activeViewContainer() const; | 73 | DolphinViewContainer* activeViewContainer() const; | ||
73 | 74 | | |||
74 | /** | 75 | /** | ||
76 | * Returns all view container for all tabs | ||||
77 | */ | ||||
78 | QList<DolphinViewContainer*> allViewContainers() const; | ||||
elvisangelaccio: The "all" prefix is kinda redundant, `viewContainers()` would be clear enough. | |||||
We could use QVector here, which should be preferred to QList for new code. elvisangelaccio: We could use `QVector` here, which should be preferred to `QList` for new code. | |||||
79 | | ||||
80 | /** | ||||
75 | * Opens each directory in \p dirs in a separate tab. If \a splitView is set, | 81 | * Opens each directory in \p dirs in a separate tab. If \a splitView is set, | ||
76 | * 2 directories are collected within one tab. | 82 | * 2 directories are collected within one tab. | ||
77 | * \pre \a dirs must contain at least one url. | 83 | * \pre \a dirs must contain at least one url. | ||
78 | */ | 84 | */ | ||
79 | void openDirectories(const QList<QUrl> &dirs, bool splitView); | 85 | void openDirectories(const QList<QUrl> &dirs, bool splitView); | ||
80 | 86 | | |||
81 | /** | 87 | /** | ||
82 | * Opens the directories which contain the files \p files and selects all files. | 88 | * Opens the directories which contain the files \p files and selects all files. | ||
Show All 30 Lines | 102 | public slots: | |||
113 | * the user entered a 'cd' command. This slot calls changeUrl(url) and makes | 119 | * the user entered a 'cd' command. This slot calls changeUrl(url) and makes | ||
114 | * sure that the panel keeps the keyboard focus. | 120 | * sure that the panel keeps the keyboard focus. | ||
115 | */ | 121 | */ | ||
116 | void slotTerminalDirectoryChanged(const QUrl& url); | 122 | void slotTerminalDirectoryChanged(const QUrl& url); | ||
117 | 123 | | |||
118 | /** Stores all settings and quits Dolphin. */ | 124 | /** Stores all settings and quits Dolphin. */ | ||
119 | void quit(); | 125 | void quit(); | ||
120 | 126 | | |||
127 | /** | ||||
128 | * Opens a new tab and places it after the current tab | ||||
129 | */ | ||||
130 | void openNewTabAfterCurrentTab(const QUrl& url); | ||||
131 | | ||||
132 | /** | ||||
133 | * Opens a new tab and places it as the last tab | ||||
134 | */ | ||||
135 | void openNewTabAfterLastTab(const QUrl& url); | ||||
136 | | ||||
121 | signals: | 137 | signals: | ||
122 | /** | 138 | /** | ||
123 | * Is sent if the selection of the currently active view has | 139 | * Is sent if the selection of the currently active view has | ||
124 | * been changed. | 140 | * been changed. | ||
125 | */ | 141 | */ | ||
126 | void selectionChanged(const KFileItemList& selection); | 142 | void selectionChanged(const KFileItemList& selection); | ||
127 | 143 | | |||
128 | /** | 144 | /** | ||
▲ Show 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | 174 | private slots: | |||
326 | void openNewActivatedTab(); | 342 | void openNewActivatedTab(); | ||
327 | 343 | | |||
328 | /** | 344 | /** | ||
329 | * Opens a new tab in the background showing the URL \a url. | 345 | * Opens a new tab in the background showing the URL \a url. | ||
330 | */ | 346 | */ | ||
331 | void openNewTab(const QUrl& url, DolphinTabWidget::TabPlacement tabPlacement); | 347 | void openNewTab(const QUrl& url, DolphinTabWidget::TabPlacement tabPlacement); | ||
332 | 348 | | |||
333 | /** | 349 | /** | ||
334 | * Opens a new tab and places it after the current tab | | |||
335 | */ | | |||
336 | void openNewTabAfterCurrentTab(const QUrl& url); | | |||
337 | | ||||
338 | /** | | |||
339 | * Opens a new tab and places it as the last tab | | |||
340 | */ | | |||
341 | void openNewTabAfterLastTab(const QUrl& url); | | |||
342 | | ||||
343 | /** | | |||
344 | * Opens the selected folder in a new tab. | 350 | * Opens the selected folder in a new tab. | ||
345 | */ | 351 | */ | ||
346 | void openInNewTab(); | 352 | void openInNewTab(); | ||
347 | 353 | | |||
348 | /** | 354 | /** | ||
349 | * Opens the selected folder in a new window. | 355 | * Opens the selected folder in a new window. | ||
350 | */ | 356 | */ | ||
351 | void openInNewWindow(); | 357 | void openInNewWindow(); | ||
▲ Show 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 510 | private: | |||
517 | 523 | | |||
518 | KNewFileMenu* m_newFileMenu; | 524 | KNewFileMenu* m_newFileMenu; | ||
519 | DolphinTabWidget* m_tabWidget; | 525 | DolphinTabWidget* m_tabWidget; | ||
520 | DolphinViewContainer* m_activeViewContainer; | 526 | DolphinViewContainer* m_activeViewContainer; | ||
521 | 527 | | |||
522 | DolphinViewActionHandler* m_actionHandler; | 528 | DolphinViewActionHandler* m_actionHandler; | ||
523 | DolphinRemoteEncoding* m_remoteEncoding; | 529 | DolphinRemoteEncoding* m_remoteEncoding; | ||
524 | QPointer<DolphinSettingsDialog> m_settingsDialog; | 530 | QPointer<DolphinSettingsDialog> m_settingsDialog; | ||
531 | DolphinBookmarkHandler* m_bookmarkHandler; | ||||
525 | 532 | | |||
526 | // Members for the toolbar menu that is shown when the menubar is hidden: | 533 | // Members for the toolbar menu that is shown when the menubar is hidden: | ||
527 | QToolButton* m_controlButton; | 534 | QToolButton* m_controlButton; | ||
528 | QTimer* m_updateToolBarTimer; | 535 | QTimer* m_updateToolBarTimer; | ||
529 | 536 | | |||
530 | KIO::Job* m_lastHandleUrlStatJob; | 537 | KIO::Job* m_lastHandleUrlStatJob; | ||
531 | 538 | | |||
532 | TerminalPanel* m_terminalPanel; | 539 | TerminalPanel* m_terminalPanel; | ||
Show All 16 Lines |
The "all" prefix is kinda redundant, viewContainers() would be clear enough.