Commit Graph

20 Commits

Author SHA1 Message Date
64d3223fb2 EntryProvider: saveUserEntry: Only save key field if it's not empty 2020-10-19 21:30:11 +02:00
ac5498990b EntryProvider: Introduce isSavable() to avoid code duplicates 2020-10-08 22:50:38 +02:00
38cc87fbcd add 'terminal=true' support for .qsrun entries 2020-10-08 22:27:48 +02:00
59ff382856 Implement basic 'Terminal=' support for .desktop files 2020-10-04 22:19:30 +02:00
776cbe4d30 EntryProvider: saveUserEntry(): Add missing fields 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
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
7bae1183c6 EnrtyConfig: store iconPath, not QIcon. Keeps icon after rearranging entries 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
27ac3155d3 EntryConfig: Introduce (dirty) way to distinguish between user/system entries 2020-09-28 19:07:26 +02:00
b588fd07be EntryProvider: fix handling of names with spaces 2020-09-28 19:07:05 +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
560e15d48d implement inheritance keyword for .qsrun entries 2020-09-06 21:37:15 +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