Commit Graph

76 Commitit

Tekijä SHA1 Viesti Päivämäärä
38cc87fbcd add 'terminal=true' support for .qsrun entries 2020-10-08 22:27:48 +02:00
2d14b01c5c EntryPushButton: Set term icon for terminal cmds w/o icon 2020-10-08 22:27:48 +02:00
59ff382856 Implement basic 'Terminal=' support for .desktop files 2020-10-04 22:19:30 +02:00
bf8f09ec66 Delete TODO
Issue and TODO Tracker resides here:
https://gitea.quitesimple.org/crtxcr/qsrun/issues
2020-10-04 21:57:15 +02:00
776cbe4d30 EntryProvider: saveUserEntry(): Add missing fields 2020-10-04 21:48:35 +02:00
101885ffe4 window: addToFavourites(): Save non-system entries in their originating path 2020-10-04 21:48:35 +02:00
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
95e855f325 EntryProvider: readqsrunfile(): impl. inherit w/o using EntityConfig.update() 2020-10-04 21:48:35 +02:00
2acfe6126a EntryProvider: readqsrunfile(): Simplify by using QHash 2020-10-04 21:48:35 +02:00
2d79d74e06 addToFavourites: only save the minimum 2020-10-04 21:48:35 +02:00
7c2461626d rename Window::buttonClick to Window::executeConfig 2020-10-04 21:48:35 +02:00
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
2ab0750f3a EntryConfig: update(): Add missing assignments 2020-10-04 21:48:35 +02:00
f9eff3b5b2 implement deletion of entries 2020-10-04 21:48:35 +02:00
84cf8837bd addToFavourites: catch exception when saving entry 2020-10-04 21:48:35 +02:00
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
7bae1183c6 EnrtyConfig: store iconPath, not QIcon. Keeps icon after rearranging entries 2020-10-04 21:48:35 +02:00
9daaba2543 Window: buttonClick(): Correct parameter name 2020-10-04 21:48:35 +02:00
6b924c0f53 Implement addToFavourites() and getNextFreeCell() 2020-10-04 21:48:35 +02:00
653089c475 Save rearranged EntryConfig of buttons with new EntryProvider::saveUserEntry 2020-10-04 21:48:35 +02:00
f06e9a4f7b EntryConfig: Also store 'inherit' key. Needed to save entry later. 2020-09-28 19:07:26 +02:00
61001ed6cc EntryProvider: Set entryPath also for system entries 2020-09-28 19:07:26 +02:00
e2c80b665e EntryPushButton: Begin menus for deletion/favourites 2020-09-28 19:07:26 +02:00
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
27ac3155d3 EntryConfig: Introduce (dirty) way to distinguish between user/system entries 2020-09-28 19:07:26 +02:00
b72931cc9e GUI: Begin basic drag/drop between buttons: Allow swapping places
Issue: #7
2020-09-28 19:07:26 +02:00
b588fd07be EntryProvider: fix handling of names with spaces 2020-09-28 19:07:05 +02:00
5eb09540c6 window: get number of columns from config 2020-09-07 23:29:10 +02:00
416bfa6314 MINOR: window.cpp: Reformat code
No functional change.
2020-09-07 23:16:45 +02:00
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
36b6390292 Implement NoDisplay= of .desktop entries
Closes #9
2020-09-06 22:09:02 +02:00
5076f044a6 Update README.md to document inheritance
Closes #4.
2020-09-06 21:45:43 +02:00
560e15d48d implement inheritance keyword for .qsrun entries 2020-09-06 21:37:15 +02:00
45d7b930f8 Refactoring to use new entryprovider and settingsprovider classes 2020-09-06 19:43:17 +02:00
2824f84f9f Introduce Settingsprovider to read settings
Previously, it was in the configprovider.cpp.

Now, it has been split to this file
2020-09-06 19:41:59 +02:00
f03e247bd8 merge configreader/configprovider into entryprovider
settings-related methods that don't have any relation
to entries will be moved to a seperate file
settingsprovider
2020-09-06 19:40:46 +02:00
5b99d764f0 ConfigReader: use suffix() instead of completeSuffix()
Using completeSuffix breaks for names like org.kde.dolphin.desktop
2020-09-01 21:50:24 +02:00
d6ec7a7e1c formating fixes / copyright update... 2019-09-30 21:58:11 +02:00
fe5b358ace added .gitignore 2019-09-08 17:11:24 +02:00
hxbrn
ea697d62ba refocus input if a single instance window is resurfaced
Signed-off-by: Albert S <mail@quitesimple.org>
2019-09-08 17:11:24 +02:00
hxbrn
18e046d028 walk search for .desktop files etc recursively
Signed-off-by: Albert S <mail@quitesimple.org>
2019-09-08 16:58:22 +02:00
hxbrn
19114a0b5d Esc and ctrl+Q decide if quit/hide the app based on config
Signed-off-by: Albert S <mail@quitesimple.org>
2019-09-08 16:57:05 +02:00
a900fe5b6c updated TODO 2019-09-01 18:55:59 +02:00
afc5ad57a6 rename BUGS => TODO 2019-09-01 18:55:47 +02:00
7ac429b9e2 show error message if passed directories don't exist, don't create it 2019-09-01 18:52:04 +02:00
028b4299f7 improved README 2019-08-24 09:48:30 +02:00
1284519280 create config dir instead of complaining it doesn't exist 2019-08-24 09:41:07 +02:00
6c67c11481 reformating (no functional change) 2019-08-24 09:19:49 +02:00
7379cff7db rename: qsRun => qsrun 2019-08-23 23:58:43 +02:00
57bed56dcd window: add scrollarea for button grid 2019-08-23 23:42:56 +02:00