]> cloud.milkyroute.net Git - dolphin.git/blob - src/dolphinmainwindow.h
GIT_SILENT Update Appstream for new release
[dolphin.git] / src / dolphinmainwindow.h
1 /*
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz19@gmail.com>
3 * SPDX-FileCopyrightText: 2006 Stefan Monov <logixoul@gmail.com>
4 * SPDX-FileCopyrightText: 2006 Cvetoslav Ludmiloff <ludmiloff@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #ifndef DOLPHIN_MAINWINDOW_H
10 #define DOLPHIN_MAINWINDOW_H
11
12 #include "config-dolphin.h"
13 #include "disabledactionnotifier.h"
14 #include "dolphintabwidget.h"
15 #include "selectionmode/bottombar.h"
16 #include <KActionMenu>
17 #include <KFileItemActions>
18 #include <kio/fileundomanager.h>
19 #include <kxmlguiwindow.h>
20
21 #if HAVE_BALOO
22 #include "panels/information/informationpanel.h"
23 #endif
24
25 #include <QFutureWatcher>
26 #include <QIcon>
27 #include <QList>
28 #include <QMenu>
29 #include <QPointer>
30 #include <QUrl>
31 #include <QVector>
32
33 typedef KIO::FileUndoManager::CommandType CommandType;
34
35 class DiskSpaceUsageMenu;
36 class DolphinBookmarkHandler;
37 class DolphinViewActionHandler;
38 class DolphinSettingsDialog;
39 class DolphinViewContainer;
40 class DolphinRemoteEncoding;
41 class DolphinTabWidget;
42 class KFileItem;
43 class KFileItemList;
44 class KJob;
45 class KNewFileMenu;
46 class KRecentFilesAction;
47 class KToolBarPopupAction;
48 class QToolButton;
49 class PlacesPanel;
50 class TerminalPanel;
51
52 /** Used to identify that a custom command should be triggered on a view background double-click.*/
53 constexpr QLatin1String customCommand{"CUSTOM_COMMAND"};
54
55 namespace KIO
56 {
57 class OpenUrlJob;
58 class CommandLauncherJob;
59 }
60 namespace SelectionMode
61 {
62 class ActionTextHelper;
63 }
64
65 /**
66 * @short Main window for Dolphin.
67 *
68 * Handles the menus, toolbars and Dolphin views.
69 */
70 class DolphinMainWindow : public KXmlGuiWindow
71 {
72 Q_OBJECT
73 Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.MainWindow")
74
75 public:
76 DolphinMainWindow();
77 ~DolphinMainWindow() override;
78
79 /**
80 * Returns the currently active view.
81 * All menu actions are applied to this view. When
82 * having a split view setup, the nonactive view
83 * is usually shown in darker colors.
84 */
85 DolphinViewContainer *activeViewContainer() const;
86
87 /**
88 * Returns view container for all tabs
89 */
90 QVector<DolphinViewContainer *> viewContainers() const;
91
92 /**
93 * Opens each directory in \p dirs in a separate tab. If \a splitView is set,
94 * 2 directories are collected within one tab.
95 * \pre \a dirs must contain at least one url.
96 */
97 void openDirectories(const QList<QUrl> &dirs, bool splitView);
98
99 /**
100 * Opens the directories which contain the files \p files and selects all files.
101 * If \a splitView is set, 2 directories are collected within one tab.
102 * \pre \a files must contain at least one url.
103 */
104 void openFiles(const QList<QUrl> &files, bool splitView);
105
106 /**
107 * Returns the 'Create New...' sub menu which also can be shared
108 * with other menus (e. g. a context menu).
109 */
110 KNewFileMenu *newFileMenu() const;
111
112 /**
113 * Augments Qt's build-in QMainWindow context menu to add
114 * Dolphin-specific actions, such as "unlock panels".
115 */
116 QMenu *createPopupMenu() override;
117
118 /**
119 * Switch the window's view containers' locations to display the home path
120 * for any which are currently displaying a location corresponding to or
121 * within mountPath.
122 *
123 * This typically done after unmounting a disk at mountPath to ensure that
124 * the window is not displaying an invalid location.
125 */
126 void setViewsToHomeIfMountPathOpen(const QString &mountPath);
127
128 /**
129 * Enables or disables the session autosaving feature.
130 *
131 * @param enable If true, saves the session automatically after a fixed
132 * time interval from the last state change.
133 */
134 void setSessionAutoSaveEnabled(bool enable);
135
136 bool isFoldersPanelEnabled() const;
137 bool isInformationPanelEnabled() const;
138 bool isSplitViewEnabledInCurrentTab() const;
139
140 /**
141 * Activates a user set action when double clicking the view's background.
142 */
143 void slotDoubleClickViewBackground(Qt::MouseButton button);
144
145 public Q_SLOTS:
146 /**
147 * Opens each directory in \p dirs in a separate tab. If \a splitView is set,
148 * 2 directories are collected within one tab.
149 * \pre \a dirs must contain at least one url.
150 *
151 * @note this function is overloaded so that it is callable via DBus.
152 */
153 void openDirectories(const QStringList &dirs, bool splitView);
154
155 /**
156 * Opens the directories which contain the files \p files and selects all files.
157 * If \a splitView is set, 2 directories are collected within one tab.
158 * \pre \a files must contain at least one url.
159 *
160 * @note this is overloaded so that this function is callable via DBus.
161 */
162 void openFiles(const QStringList &files, bool splitView);
163
164 /**
165 * Tries to raise/activate the Dolphin window.
166 */
167 void activateWindow(const QString &activationToken);
168
169 bool isActiveWindow();
170
171 /**
172 * Determines if a URL is open in any tab.
173 * @note Use of QString instead of QUrl is required to be callable via DBus.
174 *
175 * @param url URL to look for
176 * @returns true if url is currently open in a tab, false otherwise.
177 */
178 bool isUrlOpen(const QString &url);
179
180 /**
181 * @return Whether the item with @p url can be found in any view only by switching
182 * between already open tabs and scrolling in their primary or secondary view.
183 * @note Use of QString instead of QUrl is required to be callable via DBus.
184 */
185 bool isItemVisibleInAnyView(const QString &urlOfItem);
186
187 /**
188 * Pastes the clipboard data into the currently selected folder
189 * of the active view. If not exactly one folder is selected,
190 * no pasting is done at all.
191 */
192 void pasteIntoFolder();
193
194 /**
195 * Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface.
196 * Inform all affected dolphin components (panels, views) of an URL
197 * change.
198 */
199 void changeUrl(const QUrl &url);
200
201 /**
202 * The current directory of the Terminal Panel has changed, probably because
203 * the user entered a 'cd' command. This slot calls changeUrl(url) and makes
204 * sure that the panel keeps the keyboard focus.
205 */
206 void slotTerminalDirectoryChanged(const QUrl &url);
207
208 /** Stores all settings and quits Dolphin. */
209 void quit();
210
211 /**
212 * Opens a new tab in the background showing the URL \a url.
213 * @return A pointer to the opened DolphinTabPage.
214 */
215 DolphinTabPage *openNewTab(const QUrl &url);
216
217 /**
218 * Opens a new tab showing the URL \a url and activate it.
219 */
220 void openNewTabAndActivate(const QUrl &url);
221
222 /**
223 * Opens a new window showing the URL \a url.
224 */
225 void openNewWindow(const QUrl &url);
226
227 /** @see GeneralSettings::splitViewChanged() */
228 void slotSplitViewChanged();
229
230 Q_SIGNALS:
231 /**
232 * Is sent if the selection of the currently active view has
233 * been changed.
234 */
235 void selectionChanged(const KFileItemList &selection);
236
237 /**
238 * Is sent if the url of the currently active view has
239 * been changed.
240 */
241 void urlChanged(const QUrl &url);
242
243 /**
244 * Is emitted if information of an item is requested to be shown e. g. in the panel.
245 * If item is null, no item information request is pending.
246 */
247 void requestItemInfo(const KFileItem &item);
248
249 /**
250 * It is emitted when in the current view, files are changed,
251 * or dirs have files/removed from them.
252 */
253 void fileItemsChanged(const KFileItemList &changedFileItems);
254
255 /**
256 * Is emitted if the settings have been changed.
257 */
258 void settingsChanged();
259
260 protected:
261 /** @see QObject::event() */
262 bool event(QEvent *event) override;
263
264 /** @see QWidget::showEvent() */
265 void showEvent(QShowEvent *event) override;
266
267 /** @see QMainWindow::closeEvent() */
268 void closeEvent(QCloseEvent *event) override;
269
270 /** @see KMainWindow::saveProperties() */
271 void saveProperties(KConfigGroup &group) override;
272
273 /** @see KMainWindow::readProperties() */
274 void readProperties(const KConfigGroup &group) override;
275
276 /** Sets a sane initial window size **/
277 QSize sizeHint() const override;
278
279 protected Q_SLOTS:
280 /**
281 * Calls the base method KXmlGuiWindow::saveNewToolbarConfig().
282 * Is also used to set toolbar constraints and UrlNavigator position
283 * based on the newly changed toolbar configuration.
284 */
285 void saveNewToolbarConfig() override;
286
287 private Q_SLOTS:
288 /**
289 * Refreshes the views of the main window by recreating them according to
290 * the given Dolphin settings.
291 */
292 void refreshViews();
293
294 void clearStatusBar();
295
296 /** Updates the 'Create New...' sub menu. */
297 void updateNewMenu();
298
299 void createDirectory();
300 void createFile();
301
302 /** Shows the error message in the status bar of the active view. */
303 void showErrorMessage(const QString &message);
304
305 /**
306 * Updates the state of the 'Undo' menu action dependent
307 * on the parameter \a available.
308 */
309 void slotUndoAvailable(bool available);
310
311 /** Sets the text of the 'Undo' menu action to \a text. */
312 void slotUndoTextChanged(const QString &text);
313
314 /** Performs the current undo operation. */
315 void undo();
316
317 /**
318 * Copies all selected items to the clipboard and marks
319 * the items as cut.
320 */
321 void cut();
322
323 /** Copies all selected items to the clipboard. */
324 void copy();
325
326 /** Pastes the clipboard data to the active view. */
327 void paste();
328
329 /** Replaces the URL navigator by a search box to find files. */
330 void find();
331
332 /** Updates the state of the search action according to the view container. */
333 void updateSearchAction();
334
335 /**
336 * Updates the text of the paste action dependent on
337 * the number of items which are in the clipboard.
338 */
339 void updatePasteAction();
340
341 /** Calls DolphinViewContainer::setSelectionMode() for m_activeViewContainer. */
342 void slotSetSelectionMode(bool enabled, SelectionMode::BottomBar::Contents bottomBarContents);
343
344 /** Selects all items from the active view. */
345 void selectAll();
346
347 /**
348 * Inverts the selection of all items of the active view:
349 * Selected items get nonselected and nonselected items get
350 * selected.
351 */
352 void invertSelection();
353
354 /**
355 * Switches between one and two views:
356 * If one view is visible, it will get split into two views.
357 * If already two views are visible, the active view gets closed.
358 */
359 void toggleSplitView();
360
361 /**
362 * Pops out a split view.
363 * The active view will be popped out, unless the view is not split,
364 * in which case nothing will happen.
365 */
366 void popoutSplitView();
367
368 /** Dedicated action to open the stash:/ ioslave in split view. */
369 void toggleSplitStash();
370
371 /** Copies all selected items to the inactive view. */
372 void copyToInactiveSplitView();
373
374 /** Moves all selected items to the inactive view. */
375 void moveToInactiveSplitView();
376
377 /** Reloads the currently active view. */
378 void reloadView();
379
380 /** Stops the loading process for the currently active view. */
381 void stopLoading();
382
383 void enableStopAction();
384 void disableStopAction();
385
386 void toggleSelectionMode();
387
388 void showFilterBar();
389 void toggleFilterBar();
390
391 /**
392 * Toggles between edit and browse mode of the navigation bar.
393 */
394 void toggleEditLocation();
395
396 /**
397 * Switches to the edit mode of the navigation bar and selects
398 * the whole URL, so that it can be replaced by the user. If the edit mode is
399 * already active, it is assured that the navigation bar get focused.
400 */
401 void replaceLocation();
402
403 /**
404 * Toggles the state of the panels between a locked and unlocked layout.
405 */
406 void togglePanelLockState();
407
408 /**
409 * Is invoked whenever the Terminal panel visibility is changed by the user and then moves the focus
410 * to the active view if the panel was hidden.
411 * @note The opposite action (putting focus to the Terminal) is not handled
412 * here but in TerminalPanel::showEvent().
413 * @param visible the new visibility state of the terminal panel
414 */
415 void slotTerminalPanelVisibilityChanged(bool visible);
416
417 /**
418 * Is invoked whenever the Places panel visibility is changed by the user and then either moves the focus
419 * - to the Places panel if it was made visible, or
420 * - to the active view if the panel was hidden.
421 * @param visible the new visibility state of the Places panel
422 */
423 void slotPlacesPanelVisibilityChanged(bool visible);
424
425 /** Goes back one step of the URL history. */
426 void goBack();
427
428 /** Goes forward one step of the URL history. */
429 void goForward();
430
431 /** Goes up one hierarchy of the current URL. */
432 void goUp();
433
434 /** Changes the location to the home URL. */
435 void goHome();
436
437 /** Open the previous URL in the URL history in a new tab. */
438 void goBackInNewTab();
439
440 /** Open the next URL in the URL history in a new tab. */
441 void goForwardInNewTab();
442
443 /** Open the URL one hierarchy above the current URL in a new tab. */
444 void goUpInNewTab();
445
446 /** * Open the home URL in a new tab. */
447 void goHomeInNewTab();
448
449 /** Opens Kompare for 2 selected files. */
450 void compareFiles();
451
452 /**
453 * Hides the menu bar if it is visible, makes the menu bar
454 * visible if it is hidden.
455 */
456 void toggleShowMenuBar();
457
458 /** Updates "Open Preferred Search Tool" action. */
459 void updateOpenPreferredSearchToolAction();
460
461 /** Opens preferred search tool for the current location. */
462 void openPreferredSearchTool();
463
464 /** Opens a terminal window for the current location. */
465 void openTerminal();
466
467 /** Opens terminal windows for the selected items' locations. */
468 void openTerminalHere();
469
470 /** Opens a terminal window for the URL. */
471 void openTerminalJob(const QUrl &url);
472
473 /** Toggles focus to/from a Terminal Panel. */
474 void toggleTerminalPanelFocus();
475
476 /** Toggles focus to/from the Places Panel. */
477 void togglePlacesPanelFocus();
478
479 /** Opens the settings dialog for Dolphin. */
480 void editSettings();
481
482 /** Updates the state of the 'Show Full Location' action. */
483 void slotEditableStateChanged(bool editable);
484
485 /**
486 * Updates the state of the 'Edit' menu actions and emits
487 * the signal selectionChanged().
488 */
489 void slotSelectionChanged(const KFileItemList &selection);
490
491 /**
492 * Updates the state of the 'Back' and 'Forward' menu
493 * actions corresponding to the current history.
494 */
495 void updateHistory();
496
497 /** Updates the state of the 'Show filter bar' menu action. */
498 void updateFilterBarAction(bool show);
499
500 /** Open a new main window. */
501 void openNewMainWindow();
502
503 /**
504 * Opens a new view with the current URL that is part of a tab and
505 * activates it.
506 */
507 void openNewActivatedTab();
508
509 /**
510 * Adds the current URL as an entry to the Places panel
511 */
512 void addToPlaces();
513
514 /**
515 * Opens the selected folder in a new tab.
516 */
517 void openInNewTab();
518
519 /**
520 * Opens the selected folder in a new window.
521 */
522 void openInNewWindow();
523
524 /**
525 * Opens the selected folder in the other inactive split view, enables split view if necessary.
526 */
527 void openInSplitView(const QUrl &url);
528
529 /**
530 * Show the target of the selected symlink
531 */
532 void showTarget();
533
534 /**
535 * Indicates in the statusbar that the execution of the command \a command
536 * has been finished.
537 */
538 void showCommand(CommandType command);
539
540 /**
541 * If the URL can be listed, open it in the current view, otherwise
542 * run it through KRun.
543 */
544 void handleUrl(const QUrl &url);
545
546 /**
547 * Is invoked when the write state of a folder has been changed and
548 * enables/disables the "Create New..." menu entry.
549 */
550 void slotWriteStateChanged(bool isFolderWritable);
551
552 /**
553 * Opens the context menu on the current mouse position.
554 * @pos Position in screen coordinates.
555 * @item File item context. If item is null, the context menu
556 * should be applied to \a url.
557 * @selectedItems The selected items for which the context menu
558 * is opened. This list generally includes \a item.
559 * @url URL which contains \a item.
560 */
561 void openContextMenu(const QPoint &pos, const KFileItem &item, const KFileItemList &selectedItems, const QUrl &url);
562
563 /**
564 * Updates the menu that is by default at the right end of the toolbar.
565 *
566 * In true "simple by default" fashion, the menu only contains the most important
567 * and necessary actions to be able to use Dolphin. This is supposed to hold true even
568 * if the user does not know how to open a context menu. More advanced actions can be
569 * discovered through a sub-menu (@see KConfigWidgets::KHamburgerMenu::setMenuBarAdvertised()).
570 */
571 void updateHamburgerMenu();
572
573 /**
574 * Is called if the user clicked an item in the Places Panel.
575 * Reloads the view if \a url is the current URL already, and changes the
576 * current URL otherwise.
577 */
578 void slotPlaceActivated(const QUrl &url);
579
580 /**
581 * Is called if the another view has been activated by changing the current
582 * tab or activating another view in split-view mode.
583 *
584 * Activates the given view, which means that all menu actions are applied
585 * to this view. When having a split view setup, the nonactive view is
586 * usually shown in darker colors.
587 */
588 void activeViewChanged(DolphinViewContainer *viewContainer);
589
590 void closedTabsCountChanged(unsigned int count);
591
592 /**
593 * Is called if a new tab has been opened or a tab has been closed to
594 * enable/disable the tab actions.
595 */
596 void tabCountChanged(int count);
597
598 /**
599 * Updates the Window Title with the caption from the active view container
600 */
601 void updateWindowTitle();
602
603 /**
604 * This slot is called when the user requested to unmount a removable media
605 * from the places menu
606 */
607 void slotStorageTearDownFromPlacesRequested(const QString &mountPath);
608
609 /**
610 * This slot is called when the user requested to unmount a removable media
611 * _not_ from the dolphin's places menu (from the notification area for e.g.)
612 * This slot is basically connected to each removable device's
613 * Solid::StorageAccess::teardownRequested(const QString & udi)
614 * signal through the places panel.
615 */
616 void slotStorageTearDownExternallyRequested(const QString &mountPath);
617
618 /**
619 * Is called when the view has finished loading the directory.
620 */
621 void slotDirectoryLoadingCompleted();
622
623 /**
624 * Is called when the user middle clicks a toolbar button.
625 *
626 * Here middle clicking Back/Forward/Up/Home will open the resulting
627 * folder in a new tab.
628 */
629 void slotToolBarActionMiddleClicked(QAction *action);
630
631 /**
632 * Is called before the Back popup menu is shown. This slot will populate
633 * the menu with history data
634 */
635 void slotAboutToShowBackPopupMenu();
636
637 /**
638 * This slot is used by the Back Popup Menu to go back to a specific
639 * history index. The QAction::data will carry an int with the index
640 * to go to.
641 */
642 void slotGoBack(QAction *action);
643
644 /**
645 * Middle clicking Back/Forward will open the resulting folder in a new tab.
646 */
647 void slotBackForwardActionMiddleClicked(QAction *action);
648
649 /**
650 * Is called before the Forward popup menu is shown. This slot will populate
651 * the menu with history data
652 */
653 void slotAboutToShowForwardPopupMenu();
654
655 /**
656 * This slot is used by the Forward Popup Menu to go forward to a specific
657 * history index. The QAction::data will carry an int with the index
658 * to go to.
659 */
660 void slotGoForward(QAction *action);
661
662 /**
663 * Is called when configuring the keyboard shortcuts
664 */
665 void slotKeyBindings();
666
667 /**
668 * Saves the session.
669 */
670 void slotSaveSession();
671
672 private:
673 /**
674 * Sets up the various menus and actions and connects them.
675 */
676 void setupActions();
677
678 /**
679 * Sets up the dock widgets and their panels.
680 */
681 void setupDockWidgets();
682
683 void updateFileAndEditActions();
684 void updateViewActions();
685 void updateGoActions();
686
687 /**
688 * Connects the signals from the created DolphinView with
689 * the DolphinViewContainer \a container with the corresponding slots of
690 * the DolphinMainWindow. This method must be invoked each
691 * time a DolphinView has been created.
692 */
693 void connectViewSignals(DolphinViewContainer *container);
694
695 /**
696 * Updates the text of the split action:
697 * If two views are shown, the text is set to "Split",
698 * otherwise the text is set to "Join". The icon
699 * is updated to match with the text and the currently active view.
700 */
701 void updateSplitActions();
702
703 /**
704 * Sets the window sides the toolbar may be moved to based on toolbar contents.
705 */
706 void updateAllowedToolbarAreas();
707
708 /**
709 * Sets the background of the location bar(s) on if they are inside the toolbar,
710 * or off if they are outside the toolbar.
711 */
712 void updateNavigatorsBackground();
713
714 bool isKompareInstalled() const;
715
716 /**
717 * Creates an action for showing/hiding a panel, that is accessible
718 * in "Configure toolbars..." and "Configure shortcuts...".
719 */
720 void createPanelAction(const QIcon &icon, const QKeySequence &shortcut, QDockWidget *dockAction, const QString &actionName);
721
722 /** Adds "What's This?" texts to many widgets and StandardActions. */
723 void setupWhatsThis();
724
725 /** Returns preferred search tool as configured in "More Search Tools" menu. */
726 QPointer<QAction> preferredSearchTool();
727
728 /**
729 * Adds this action to the mainWindow's toolbar and saves the change
730 * in the users ui configuration file.
731 * This method is only needed for migration and should be removed once we can expect
732 * that pretty much all users have been migrated. Remove in 2026 because that's when
733 * even the most risk-averse distros will already have been forced to upgrade.
734 * @return true if successful. Otherwise false.
735 */
736 bool addHamburgerMenuToToolbar();
737
738 /** Creates an action representing an item in the URL navigator history */
739 static QAction *urlNavigatorHistoryAction(const KUrlNavigator *urlNavigator, int historyIndex, QObject *parent = nullptr);
740
741 private:
742 /**
743 * Implements a custom error handling for the undo manager. This
744 * assures that all errors are shown in the status bar of Dolphin
745 * instead as modal error dialog with an OK button.
746 */
747 class UndoUiInterface : public KIO::FileUndoManager::UiInterface
748 {
749 public:
750 UndoUiInterface();
751 ~UndoUiInterface() override;
752 void jobError(KIO::Job *job) override;
753 };
754
755 KNewFileMenu *m_newFileMenu;
756 DolphinTabWidget *m_tabWidget;
757 DolphinViewContainer *m_activeViewContainer;
758
759 DolphinViewActionHandler *m_actionHandler;
760 DolphinRemoteEncoding *m_remoteEncoding;
761 QPointer<DolphinSettingsDialog> m_settingsDialog;
762 DolphinBookmarkHandler *m_bookmarkHandler;
763 SelectionMode::ActionTextHelper *m_actionTextHelper;
764 DisabledActionNotifier *m_disabledActionNotifier;
765
766 KIO::OpenUrlJob *m_lastHandleUrlOpenJob;
767
768 TerminalPanel *m_terminalPanel;
769 PlacesPanel *m_placesPanel;
770 bool m_tearDownFromPlacesRequested;
771
772 KToolBarPopupAction *m_backAction;
773 KToolBarPopupAction *m_forwardAction;
774 KActionMenu *m_splitViewAction;
775 QAction *m_splitViewMenuAction;
776 DiskSpaceUsageMenu *m_diskSpaceUsageMenu;
777
778 QMenu m_searchTools;
779 KFileItemActions m_fileItemActions;
780
781 QTimer *m_sessionSaveTimer;
782 QFutureWatcher<void> *m_sessionSaveWatcher;
783 bool m_sessionSaveScheduled;
784
785 KIO::CommandLauncherJob *m_job;
786
787 KRecentFilesAction *m_recentFiles = nullptr;
788
789 friend class DolphinMainWindowTest;
790 };
791
792 inline DolphinViewContainer *DolphinMainWindow::activeViewContainer() const
793 {
794 return m_activeViewContainer;
795 }
796
797 inline KNewFileMenu *DolphinMainWindow::newFileMenu() const
798 {
799 return m_newFileMenu;
800 }
801
802 #endif // DOLPHIN_MAINWINDOW_H