Commit Graph

91 Commits (69c4a68187d15719cb4e0277e35b2b30ba5b0f3f)

Author SHA1 Message Date
Andrei Kortunov f0543c5500 Implement a context menu for data directories page (feature 8130) 1 month ago
Alexei Kotov 073e4639bf Launcher: Support extended selection for directories 4 months ago
AnyOldName3 a130ca57a4 Track source of settings
This one's a biggie.

The basic idea's that GameSettings should know:
* what the interpreted value of a setting is, so it can actually be used.
* what the original value the user put in their config was, so it can be put back when the config's saved.
* which path it's processing the openmw.cfg from so relative paths can be resolved correctly.
* whether a setting's a user setting that can be modified, or from one of the other openmw.cfg files that can't necessarily be modified.

This had fairly wide-reaching implications.

The first is that paths are resolved properly in cases where they previously wouldn't have been.
Without this commit, if the launcher saw a relative path in an openmw.cfg, it'd be resolved relative to the process' working directory (which we always set to the binary directory for reasons I won't get into).
That's not what the engine does, so is bad.
It's also not something a user's likely to suspect.
This mess is no longer a problem as paths are resolved correctly when they're loaded instead of on demand when they're used by whatever uses them.

Another problem was that if paths used slugs like ?userconfig? would be written back to openmw.cfg with the slugs replaced, which defeats the object of using the slugs.
This is also fixed.

Tracking which settings are user settings and which are in a non-editable openmw.cfg allows the launcher to grey out rows so they can't be edited (which is sensible as they can't be edited on-disk) while still being aware of content files that are provided by non-user data directories etc.
This is done in a pretty straightforward way for the data directories and fallback-archives, as those bits of UI are basic, but it's more complicated for content files as that uses a nmodel/view approach and has a lot more moving parts.
Thankfully, I'd already implemented that when dealing with builtin.omwscripts, so it just needed wiring up.

One more thing of note is that I made the SettingValue struct storable as a QVariant so it could be attached to the UI widgets as userdata, and then I could just grab the original representation and use it instead of needing any complicated mapping from display value to on-disk value.
10 months ago
Yury Stepovikov c90ebcc86b Allow multiselect in the archives tab (#7606) 11 months ago
Alexei Kotov f68bd3ba97 Launcher: Improve directory appending UX and heuristics (bug #7502)
- Recognize more asset directories and omwgame files
- Always let the user append the selected directory
- Automatically pick the user-selected directory if it's the only valid directory
- Add a caption to directory selection dialog, properly handle cancellation
1 year ago
elsid 9815f930d9
Setup launcher configuration manager and logging before initializing UI 2 years ago
elsid de112a2950
Simplify converting file names into absolute file paths 2 years ago
elsid 5a691380ea
Use single set to check presence of archives 2 years ago
elsid 8be2fc9fd7
Stop updating navmeshtool progress on first bad message 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
fredzio b88d32ff5b Add 3 tabs in the "Data Files" page
1 with the data directories
2 with the BSA archives
3 with the content selector

When user select a directory to be added, first we walk the directory
hierarchy to make a list of all potential data= entries. If we find
none, the selected directory is added.

If more than one data directory is found, user is presented with a
directory list to check which one(s) are to be added.

Directories containing one or more content file are marked with an icon.

data= and fallback-archive= lines are handled like content= lines:
- they are part of the profile in launcher.cfg, prefixed by the profile
name
- they are updated in openmw.cfg when profile is selected / created

Directories can be moved in the list by drag and drop or by buttons.
Insertion is possible anywhere in the list.
Global data path and data local are shown but are greyed out, as they
are always included.

No attempt is made to ensure that the user choice are valid
(dependencies, overwrite of content).

After a profile is loaded, any added content is highlighted in green.
3 years ago
elsid 2d5ccc804b
Exchange binary messages between navmeshtool and launcher 3 years ago
Bret Curtis 74e7cfc023 remove unused includes: part1
remove unused imports: part2

revert one tidy we will keep for c++20
3 years ago
elsid 9e0451c714
Support navmesh generation from launcher 3 years ago
psi29a b10a817f7e Merge branch 'useuless_launcher' into 'master'
Remove some useless includes from the launcher

See merge request OpenMW/openmw!775

(cherry picked from commit a84bd643b334eb6ac715681c497184ac22212ced)

d3fff8cf Remove some useless includes from the launcher
4 years ago
fredzio dbdd397716 Remove deadcode. 4 years ago
Andrei Kortunov 8084a336b5 Replace zeroes and nulls by nullptrs 4 years ago
James Moore a37bdfd492 Implement a refresh button on data files page 5 years ago
Capostrophic 686049679c Launcher: Clone content list button (feature #4784) 6 years ago
Thunderforge dfa9968565 Renaming Launcher::DataFilesPage::signalSelectedFilesChanged to signalLoadedCellsChanged 7 years ago
Thunderforge 26dfef7970 Changing where we are loading cells to prevent Qt access issue 7 years ago
Thunderforge c2fff61ccd Changing so that data changes happen only after the addon is checked 7 years ago
Thunderforge d58cce9c72 Adding WIP code to dynamically change the autocomplete fields 7 years ago
Thunderforge fb27f34a32 Add autocomplete to the "Start default character at" field 7 years ago
dteviot cac250a90d Fixed typo in comment. 10 years ago
dteviot 9d9cabf40d Fix: Importer creates a single Content List (Fixes #2345) 10 years ago
dteviot e298589e7f Reorganised DataFilesPage.cpp code.
Removed some recursive calling of saveSettings() and loadSettings().
10 years ago
dteviot a62e15d93d Read profile files from LauncherSettings in load order. 10 years ago
scrawl 1937ace1b7 Launcher: fix bugs deleting profiles (Fixes #2188) 10 years ago
pvdk 6348af586e Fixed some problems with the launcher and the wizard 11 years ago
pvdk af883991e2 Reimplemented the old new profile dialog behaviour 11 years ago
pvdk 30c3c3e245 Working on importing content lists in the launcher 11 years ago
pvdk 095ff4e17a Moved launcher settings stuff into components, so they can be reused in the wizard 11 years ago
graffy76 973803eb2f Fixed pathing issues in launcher 11 years ago
graffy76 1a23cccce3 Implemented Launcher namespace 11 years ago
graffy76 f9591ddda6 Reimplemented constentselector view class 11 years ago
graffy76 217a4d75b4 Implemented profile function in launcher datafiles page
Implemented dependency sorting to ensure dependent files appear latest
in the list.
11 years ago
graffy76 00c78a4aa1 Implementing ContentSelector class in DataFilesPage
Moved AdjusterWidget / FileWidget to ContentSelectorView
11 years ago
graffy76 cfdc19c427 Renamed esxSelector to contentSelector
Fixed datafilespage model implementation in launcher
Filtered addons in table view by selected game file
11 years ago
graffy76 0eb06ada39 Implemneting drag and drop 11 years ago
graffy76 f6217f9c6a Moved esx selector classes out of global namespace 12 years ago
graffy76 a14e0b32d8 Restructured esxselector directory
Added ./view
Removed ./utils and ./model/esm
Relocated code accordingly.
12 years ago
graffy76 2878f51cd3 Reimplemented dependency selection feature
Moved more code to ContentSelector
Added support for omwgame and omwaddon files
12 years ago
graffy76 b24dd5c6ac Continued migration of code to ContentSelector 12 years ago
graffy76 61602789e1 Began migrating code to ContentSelector base 12 years ago
Pieter van der Kloet b4d408af5d Added actions to datafiles.ui and implemented them in the launcher 12 years ago
Pieter van der Kloet 75cf009101 Finished implementing the .ui file for the DataFilesPage 12 years ago
Pieter van der Kloet 4c9d0563fe WIP: Implementing the .ui for the DataFilesPage 12 years ago
Pieter van der Kloet 9198afeefb Improved context menu, added context menu for masters and added multi-selection support 12 years ago
Pieter van der Kloet 35b68a3c40 Fixed accidental profile deletion and added sorting by date 12 years ago