┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
AgeCommit message (Collapse)Author
2024-04-06Change "Could not" to "Cannot" in error messagesJin Liu
To align with KIO
2024-04-03DolphinMainWindow: show a banner when the user presses the shortcut of a ↵Jin Liu
disabled action Currently, there's no feedback when the user presses a shortcut of a disabled action, e.g. cut / paste in a read-only directory. This patch shows a banner in that case. It's implemented by enabling a QShortcut for each disabled action. the QShortcut is deleted when the action is enabled again. The following actions are included: cut paste rename moveToTrash deleteWithTrashShortcut deleted createDir copyToOtherView moveToOtherView
2024-03-28Add comment to explain KColorSchemeManagerFelix Ernst
2024-03-28KColorSchemeManager only on Windows and macOSJulius Künzel
2024-03-28Use KColorSchemeManager Julius Künzel
Fixes the dark theme on Windows
2024-03-27Touch up various user-visible stringsTem PQD
This improves consistency among wording. More clarity is achieved by avoiding technical terms or terms with multiple meanings. Notable changes: -Specify full settings path: "Configure Dolphin > View > General" in Show Hidden Files whatsThis -Mention setting to hide files with application/x-trash MIME type in "Show Hidden Files" whatsThis -Mention Split View mode in "Copy/Move to Other View" whatsThis -Reword "Activate Tab" actions to "Go to Tab" (Next, Previous, Last, numbers) -Add "Last Tab" iconText, consistent with "Next Tab" & "Previous Tab" -Update Split View whatsthis to explain how to tell which view is "in focus" visually -Replace "pane" with "view" in split view settings text, and clarify tooltip text -Reword "objects" to "items" in whatsThis texts -Reword "find bar" to "search bar" in Search button whatsThis text
2024-03-15Add settings page for PanelsBenedikt Thiemer
For now this just includes the settings for the information panel. Prior to this commit the options for configuring the information panel were only exposed via right clicking the information panel. This was not discoverable enough. Our guidelines also state that much. See: https://community.kde.org/Get_Involved/Design/Frequently_Discussed_Topics#Context_menus_are_not_enough The settings page is missing the "Configure" button for the entries in the information panel, which can only be found in the context menu. This is because I thought it would be weird to move it to the settings page. (The "configure" button is used to select the entries for the information panel) BUG: 480243 FIXED-IN: 24.05
2024-03-09dolphinmainwindow: Fix ordering warningMéven Car
NO_CHANGELOG
2024-03-08Remove unneeded code for toggeling dockwidget visibilityNicolas Fella
QDockWidget::toggleViewAction::toggled is emitted when minimizing the application window on X11 (https://bugreports.qt.io/browse/QTBUG-48161 potentially related). This will cause the dockwidget to be hidden when minimizing the window. We don't actually seem to need that connection, triggering the action (via shortcut or menu) seems to correctly show/hide the dockwidget without it BUG: 481952
2024-03-03Open KFind with current dirNicolas Fella
Amends 2cd3d58eec5695899c26ca66a631fb79867b6584 BUG: 482343
2024-01-18Fix memory leakLoren Burkholder
2024-01-18Resize the split button when the menu is removedLoren Burkholder
2024-01-18Remove the menu from the split button when splitscreen is closedLoren Burkholder
2024-01-18Remove popout action from toolbar when split screen is closedLoren Burkholder
It's pointless to show the popout action when splitscreen is closed, so we'll remove it as a child of the splitscreen action whenever the screen is not split.
2024-01-18Use a separate menu action for split view actionJoshua Goins
Now that it's a KMenuAction, it becomes impossible to trigger the root action when it's in a menu. To work around this, we create a new action that mirrors the state of the original. It also takes the default shortcut.
2024-01-18Move popout action into split action dropdownLoren Burkholder
2024-01-18Follow the setting for which view to closeLoren Burkholder
2024-01-18Always update the split view buttonLoren Burkholder
2024-01-18Use better description for pop out actionLoren Burkholder
2024-01-18Allow popping out a split viewLoren Burkholder
If you have a split view open, you can now pop the active half out into a new window by clicking the "Pop out" button in the toolbar or by activating "View > Pop out". BUG: 270604
2024-01-14DolphinMainWindow: autosave sessionAmol Godbole
Currently, the session is saved only when the app quits normally. Save the session after a fixed time interval from the last state change i.e. anytime the url is changed, or a tab is opened or closed, or the active view is changed. BUG: 425627
2024-01-13Fix: closing split view doesn't update tab nameJin Liu
BUG: 469316
2023-12-26Remove unneeded lambda captureAlexander Lohnau
2023-12-14Dolphin: Remove unused code, fix clazy warningsMéven Car
2023-11-10Adapt to frame change in BreezeCarl Schwan
Reduce margins in some places, make the dolphinstatusbar use a QStatusBar style, and mark the kitemlistcontainer as no frame
2023-11-08Port away from KMoreToolsNicolas Fella
The idea behind KMoreTools was to point the user at external tools for a given job. It provides a rather complex framework for that, including suggesting not-yet-installed tools. The UX behind that isn't great though, which somewhat deep menu hierarchies and a somewhat arbitrary list of tools. Most KDE apps have moved away from it, with only Dolphin remaining. Instead provide direct integration with relevant KDE tools (Filelight, KDiskFree, KFind)
2023-10-25Panel: fix actions and shortcuts to toggle their visibilityMéven Car
2023-10-24Merge branch 'master' into kf6Nicolas Fella
2023-10-16Remove new tab shortcut Ctrl+Shift+NFelix Ernst
Since https://commits.kde.org/kconfig/782e43f8076e5f4a10111a6b4d2cc6b1741c9798 Ctrl+Shift+N is the standard shortcut for creating a new folder which leads to a shortcut conflict when this key combination is invoked in Dolphin. "New Tab" already has the more popular shortcut Ctrl+T assigned to it, so Ctrl+Shift+N can simply be removed.
2023-10-12DolphinView: get rid of writeStateChanged signal in setActive()Amol Godbole
The signal writeStateChanged() was not working because it is not connected to slotWriteStateChanged() slots when the active view changes. Replace the signal with direct calls to the slots. Also, do not delay openRequest signal in DolphinSearchBox::slotSearchTextChanged. It's no longer required. BUG: 440366
2023-09-10Merge remote-tracking branch 'origin/master' into kf6Méven Car
2023-09-09Add open in split view actionEric Armbruster
This action is shown only if a single folder is selected. The action opens the selected folder in the inactive split view (and opens the split view if necessary). FEATURE: 465500
2023-08-29Fix a bunch of clazy warningsMéven Car
2023-08-28Use KMessageBox::warningContinueCancel when appropriateMéven Car
This will prevent saving the "Cancel" + "don't show again" result, which is meaningless.
2023-08-28Clean obsolete ifdefs since dolphin requires KF 5.101+Méven Car
2023-08-23Allow to not ask again confirmation when opening 5 or more files or terminal ↵Felix Ernst
at once BUG: 473513
2023-08-10Merge branch 'master' into kf6Nicolas Fella
2023-08-10Set Notify flag on close running terminal app promptKai Uwe Broulik
Ensures the warning sound is played.
2023-08-03Adjust to changes in KToolBarPopupActionKai Uwe Broulik
`menu()` will be null, instead use the provided `popupMenu()`. Use `KToolBarPopupAction`'s mode enum instead of `QToolBar`'s
2023-08-03Add alternate shortcut for replaceLocation actionAmol Godbole
Alt + D is a common shortcut for replacing location. Add this as an alternate shortcut. BUG: 468445
2023-07-05Always enable panel dockwidget actionsNicolas Fella
Otherwise they are disabled when the docks are locked and panels can't be toggled BUG: 471974
2023-07-05Merge branch 'master' into kf6Nicolas Fella
2023-07-05Add explicit moc includes to sources for moc-covered headersFriedrich W. H. Kossebau
* speeds up incremental builds as changes to a header will not always need the full mocs_compilation.cpp for all the target's headers rebuild, while having a moc file sourced into a source file only adds minor extra costs, due to small own code and the used headers usually already covered by the source file, being for the same class/struct * seems to not slow down clean builds, due to empty mocs_compilation.cpp resulting in those quickly processed, while the minor extra cost of the sourced moc files does not outweigh that in summary. Measured times actually improved by some percent points. (ideally CMake would just skip empty mocs_compilation.cpp & its object file one day) * enables compiler to see all methods of a class in same compilation unit to do some sanity checks * potentially more inlining in general, due to more in the compilation unit * allows to keep using more forward declarations in the header, as with the moc code being sourced into the cpp file there definitions can be ensured and often are already for the needs of the normal class methods
2023-06-29Use ellipsis everywhere instead of three dotsTem PQD
Better for screen readers etc.
2023-06-28Merge branch 'master' into kf6Méven Car
2023-06-26Fix Refresh tooltip text and add Refresh whatsThis text Tem PQD
BUG: 469263
2023-05-31Only use KStartupInfo on X11Nicolas Fella
2023-05-24Revert "Restrict attaching instances to those on the same activity or same ↵Méven Car
virtual desktop" This reverts commit b99f6f50eef395a3ceb88fb3d4b7357cbbc13c85. BUG: 408919 Reintroduces: CCBUG: 408919
2023-05-16Bring back the "Create New" menu in the menu barJakob Petsovits
This commit is the result of a three-way diff that combines my own initial patch with related changes from Felix Ernst's MR !545 and further suggestions by Méven Car. Fixes DolphinMainWindowTest::testNewFileMenuEnabled(). Tests are now passing again for my build. "Create New" was broken by commit c64059bd which switched to the new, non-deprecated KNewFileMenu constructor (kio commit 89bc6bad) that doesn't add itself to the passed KActionCollection parameter. After the switch, hamburger menu and context menu was still working as intended but the menu bar was missing the "Create New" menu. This commit adds the addAction("new_menu") call to the File menu setup that would have previously been called by the deprecated KNewFileMenu constructor. The corresponding test can now find the QObject for the menu's named action again, verifying its existence and enabled-ness like it did before. The DolphinNewFileMenu constructor's unused actionCollection parameter serves no use anymore except to confuse people. We replace it with a single QAction* parameter, createDirAction, which gets passed to setNewFolderShortcutAction(). 2 out of 3 constructor call sites have access to this action, while the remaining call site in dolphinmainwindow.cpp must wait until after it has been initialized by DolphinViewActionHandler. In this case, setNewFolderShortcutAction() is still called manually at a later time.
2023-05-12Remove deprecated, ifdef'd code for old KIO versionsJakob Petsovits