aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/configuration.h
Commit message (Collapse)AuthorAgeFilesLines
* lib/configuration improvementsAqua-sama2020-03-221-28/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration changes: - Configuration::value return type is now [[nodiscard]] - Configuration::value<T> is now a generic template that only works with the exact types of the underlying std::variant - Add Configuration::value<concept_value_t> for standard library types compatible with the types of std::variant - Add Configuration::shortcut<> placeholder, and QAction and QKeySequence specializations as a convenient way to set up shortcuts - Deprecate setShortcut - Add Configuration::read_file convenience member that takes file path as parameter Format changes: - Configuration files can now have sections, specified as [section name]. Section names are prepended to keys. Section names cannot be nested. - Configuration files can now have @@include directives, causing another file to be read as well. The included file is not treated as nested into a section, and will overwrite values previously set. Others: - add some tests for libconfiguration. QAction/QKeySequence require a QApplication be set up, so the test application may require running xorg/wayland. old coverage: lines: 15.6% (960 out of 6172) branches: 9.9% (1187 out of 12012) new coverage: lines: 17.1% (1067 out of 6254) branches: 11.0% (1388 out of 12644)
* Add configuration subcommandAqua-sama2019-11-091-22/+29
| | | | --dump: Write current configuration to stdout and exit
* Fix gcc compile errors and warningsAqua-sama2019-11-031-6/+18
|
* Drop boost dependencyAqua-sama2019-11-031-90/+46
| | | | | - wrote not-invented-here config file parser and conf class - spent obscene amount of time plugging in said conf class
* Fix all profiles being created off-the-recordAqua-sama2019-01-201-3/+0
|
* Configuration: fix homepath patching for value<QString>Aqua-sama2018-12-301-8/+11
|
* Fix filter.header not workingAqua-sama2018-12-301-3/+4
|
* Fix crash creating ConfigurationEditorPlugin widgetAqua-sama2018-12-111-1/+1
|
* Fix navigation buttons using wrong iconsAqua-sama2018-12-111-5/+13
|
* Fix options not getting overwritten by command lineAqua-sama2018-12-081-4/+1
|
* Configuration: parse command line after parsing config fileAqua-sama2018-12-071-12/+1
| | | | - Split CommandLine off Configuration
* Expand HTTP header settings #4Aqua-sama2018-10-071-0/+7
| | | | | | | - add doc/Usage/Filter.asciidoc to explain the usage of the filter headers - add HTTP headers to Profile (section "headers") - Use request interceptor to apply filter headers, then profile headers - add insert/delete actions to ProfileEditor
* Update repository path in license headersAqua-sama2018-09-291-1/+1
|
* Some cppcheck fixesAqua-sama2018-09-031-1/+1
|
* Add Configuration::setValue and Configuration::setShortcutAqua-sama2018-06-231-6/+36
| | | | Change MainWindow to use setShortcut
* Plugin commands no longer require --commandAqua-sama2018-06-221-12/+0
|
* Better profile loadingAqua-sama2018-06-081-1/+2
| | | | | | | | First load all profiles from profile.path, and then the profile.default if missing, after which set the default profile. Profile names and whether they're otr can be set by .profile name=string and otr=bool.
* Add QString cast to Configuration::valueAqua-sama2018-06-051-14/+15
|
* Move help and version functions to main (out of Configuration)Aqua-sama2018-05-151-8/+21
| | | | Make loading profiles a free function in Browser
* Stylesheet load settingAqua-sama2018-05-041-2/+4
|
* Merge CommandLine functionality into ConfigurationAqua-sama2018-04-221-6/+17
|
* Remove unknown option parsingAqua-sama2018-04-211-1/+1
|
* Style passAqua-sama2018-04-171-8/+8
|
* Add keyboard shortcuts for address bar menusAqua-sama2018-03-311-0/+3
|
* poi-config saving configAqua-sama2018-03-211-0/+2
|
* Moved Configuration class into libraryAqua-sama2018-03-151-0/+76