Commit Graph

96 Commits

Author SHA1 Message Date
Albert S. 8a47838d94 EntryProvider: Support broken .desktop files that don't start with [Desktop Entry] 2022-07-15 18:26:02 +02:00
Albert S. 89c9cc573e Add more reasonable screenshots 2021-10-30 16:22:43 +02:00
Albert S. 7c15d7b145 Window: executeConfig: Fix after refactoring for Qt 5.15
Refactoring for 5.15 broke this (d9b0be5063),
so fix it.
2021-05-08 20:54:19 +02:00
Albert S. d9b0be5063 Fix some Qt deprication warnings 2021-04-29 09:33:57 +02:00
Albert S. f1b17c0842 Ranking: Prioritizee name before command/binary name
This seems to work better for flatpak apps and should
argueably be more natural.
2021-04-29 09:33:31 +02:00
Albert S. 4315de0e76 EntryPushButton: Hardcode max 256x256 icon size for now
While dirty, in practise, this appears to be working more fine than selecting
the max size. Some of those were too big.

Relevant: #32.
2021-03-19 12:00:40 +01:00
Albert S. f0387db468 Add a basic ranking of system entries and show most relevant first 2021-03-16 22:29:26 +01:00
Albert S. 6e4f0ecabf Window: filterGridFor: Search button Command too 2021-03-05 20:51:14 +01:00
Albert S. 2df37212dd EntryPushButton: Don't allow moving dynamic buttons 2020-10-19 21:45:33 +02:00
Albert S. b13815a924 executeConfig: Open terminal if Shift pressed 2020-10-19 21:45:33 +02:00
Albert S. bb74d156c9 Introduce new button type 'DYNAMIC' for PATH suggestions
Fixes #23
2020-10-19 21:45:33 +02:00
Albert S. f9038f3098 EntryProvider: Don't use 'new' when throwing exceptions 2020-10-19 21:45:18 +02:00
Albert S. 042b53a0be Window: addToFavourites(): Discard shortcut from system entries 2020-10-19 21:36:59 +02:00
Albert S. 64d3223fb2 EntryProvider: saveUserEntry: Only save key field if it's not empty 2020-10-19 21:30:11 +02:00
Albert S. adfb065358 Window: keyPressEvent: don't show empty shortcuts 2020-10-10 22:25:40 +02:00
Albert S. 98cff50c41 main: don't ignore config value for single instance mode. allow override using cli param 2020-10-10 21:58:37 +02:00
Albert S. 5b5333585c SettingsProvider/main: Read single instance socket path from config 2020-10-10 21:58:37 +02:00
Albert S. 8eb52fbfb3 main: allow overriding config dir from commandline 2020-10-10 21:58:37 +02:00
Albert S. 241bec54ad Parse argv using QCommandLineParser
Fixes: #17
2020-10-10 21:58:37 +02:00
Albert S. ac5498990b EntryProvider: Introduce isSavable() to avoid code duplicates 2020-10-08 22:50:38 +02:00
Albert S. 38cc87fbcd add 'terminal=true' support for .qsrun entries 2020-10-08 22:27:48 +02:00
Albert S. 2d14b01c5c EntryPushButton: Set term icon for terminal cmds w/o icon 2020-10-08 22:27:48 +02:00
Albert S. 59ff382856 Implement basic 'Terminal=' support for .desktop files 2020-10-04 22:19:30 +02:00
Albert S. bf8f09ec66 Delete TODO
Issue and TODO Tracker resides here:
https://gitea.quitesimple.org/crtxcr/qsrun/issues
2020-10-04 21:57:15 +02:00
Albert S. 776cbe4d30 EntryProvider: saveUserEntry(): Add missing fields 2020-10-04 21:48:35 +02:00
Albert S. 101885ffe4 window: addToFavourites(): Save non-system entries in their originating path 2020-10-04 21:48:35 +02:00
Albert S. 79d15fb628 Introduce EntryType. Retire userEntry boolean
Introduce EntryType, allowing to distnguish between:

- inherietd entries: Those inherit their values from
other entries, typcally system entries. They do not
allow overwriting the value, except row/col.
- system entries: those not created by the user in any way,
usually .desktop files in /usr/share/applications/...
- user entries: those that have been created by the user.
they can however also inherit, and overwrite inherited values.

inherited are used for the "favourites" feature.
2020-10-04 21:48:35 +02:00
Albert S. 95e855f325 EntryProvider: readqsrunfile(): impl. inherit w/o using EntityConfig.update() 2020-10-04 21:48:35 +02:00
Albert S. 2acfe6126a EntryProvider: readqsrunfile(): Simplify by using QHash 2020-10-04 21:48:35 +02:00
Albert S. 2d79d74e06 addToFavourites: only save the minimum 2020-10-04 21:48:35 +02:00
Albert S. 7c2461626d rename Window::buttonClick to Window::executeConfig 2020-10-04 21:48:35 +02:00
Albert S. ae7f310ab2 window: use EntryConfig, not EntryPushButton for slots
No point to implicitly convert them, in fact it was a mistake.
2020-10-04 21:48:35 +02:00
Albert S. 2ab0750f3a EntryConfig: update(): Add missing assignments 2020-10-04 21:48:35 +02:00
Albert S. f9eff3b5b2 implement deletion of entries 2020-10-04 21:48:35 +02:00
Albert S. 84cf8837bd addToFavourites: catch exception when saving entry 2020-10-04 21:48:35 +02:00
Albert S. 47c0358a25 window: getNextFreeCell(): reimplement without refering to grid
Does not work that way since when we search, the grid has changed.
So we cannot check inside the grid which ones are free. This
would give wrong results.
2020-10-04 21:48:35 +02:00
Albert S. 7bae1183c6 EnrtyConfig: store iconPath, not QIcon. Keeps icon after rearranging entries 2020-10-04 21:48:35 +02:00
Albert S. 9daaba2543 Window: buttonClick(): Correct parameter name 2020-10-04 21:48:35 +02:00
Albert S. 6b924c0f53 Implement addToFavourites() and getNextFreeCell() 2020-10-04 21:48:35 +02:00
Albert S. 653089c475 Save rearranged EntryConfig of buttons with new EntryProvider::saveUserEntry 2020-10-04 21:48:35 +02:00
Albert S. f06e9a4f7b EntryConfig: Also store 'inherit' key. Needed to save entry later. 2020-09-28 19:07:26 +02:00
Albert S. 61001ed6cc EntryProvider: Set entryPath also for system entries 2020-09-28 19:07:26 +02:00
Albert S. e2c80b665e EntryPushButton: Begin menus for deletion/favourites 2020-09-28 19:07:26 +02:00
Albert S. 2a9292958b EntryPushButton: Enter drag mode only for user entries
Maybe the decision should not be up to the button, but
for now this will do.
2020-09-28 19:07:26 +02:00
Albert S. 27ac3155d3 EntryConfig: Introduce (dirty) way to distinguish between user/system entries 2020-09-28 19:07:26 +02:00
Albert S. b72931cc9e GUI: Begin basic drag/drop between buttons: Allow swapping places
Issue: #7
2020-09-28 19:07:26 +02:00
Albert S. b588fd07be EntryProvider: fix handling of names with spaces 2020-09-28 19:07:05 +02:00
Albert S. 5eb09540c6 window: get number of columns from config 2020-09-07 23:29:10 +02:00
Albert S. 416bfa6314 MINOR: window.cpp: Reformat code
No functional change.
2020-09-07 23:16:45 +02:00
Albert S. edb781580e EntryProvider: Introduce readEntryFromPath()
Inheritance: Use readEntryFromPath instead of assuming always .desktop
files

Switch project to C++17
2020-09-06 22:24:39 +02:00