Commit Graph

77 Commits (d2d1036d265650d3ed9110a4abfdb581c159804f)

Author SHA1 Message Date
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
jvoisin 8b9ed57348 Clean up Qt includes 3 years ago
fredzio bab5e56768 Make the launcher dara directory and bsa list play nicer with dark
themes.

Known issue: the padding icon for disabled data directories is of wrong
color.
3 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 c044bef6a7
Add StatelessUtf8Encoder to support caller provided buffer for output 3 years ago
Bret Curtis d1fb854521 move most of the files from esm to esm3, keep common code in esm; this is make space for a future with esm4
esm typo

esm typo
3 years ago
Petr Mikheev ded8997362 Avoid problems if `builtin.omwscripts` is above `Morrowind.esm` in content list. 3 years ago
Evil Eye 099cd8a20c Force alphabetical order per data dir 3 years ago
Evil Eye a3e039d862 Explicitely sort by file name after adding all data dirs 3 years ago
Evil Eye ad44142dda Modify the content file sorting algorithm to finish in finite time when encountering circular dependencies 3 years ago
Petr Mikheev 37386f417e Support *.omwscripts in openmw-launcher 3 years ago
Petr Mikheev 413ac067ec Allow creating omwaddons without a dependency on an omwgame 3 years ago
jvoisin 9db7d0278a Sprinkle some const ref 4 years ago
Andrei Kortunov 8084a336b5 Replace zeroes and nulls by nullptrs 4 years ago
Andrei Kortunov 8ca3c3b123 Mark overrided methods by override keyword 4 years ago
elsid 045ceeac11
Replace foreach macro by for-loop 5 years ago
Capostrophic 0fcb75fb21 Achieve CHIM and get rid of the loop 6 years ago
Capostrophic 5cd781b3eb Experimental folder handling rewrite 6 years ago
Capostrophic 2fbed21f83 Avoid a memory leak 6 years ago
Capostrophic e14ada8f36 Make file name comparison case-insensitive 6 years ago
Capostrophic ebe5448816 Content selector: drop duplicates of the added file (bug #2395) 6 years ago
Alexander Kolodeev 7c3ef213ce Fix error when create new OpenCS addon 6 years ago
Andrei Kortunov ad36834671 Fix some compiler warnings 6 years ago
Capostrophic f20f49daa6 Content selector: allow to copy paths to clipboard (feature #2847) 6 years ago
Capostrophic d967983f5c Assume Morrowind.esm dependency for dependency-less content addons (fixes #2829) 7 years ago
Bret Curtis d785344fad purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 8 years ago
Allofich 3420121c3f Fix shadowing warnings 8 years ago
scrawl daa94cc50e Fix cppcheck warnings 9 years ago
Arthur Moore c66fd69c47 Fix #include error 9 years ago
cc9cii cccf6c6bdd Rebuild the list of available content files when opening the open/new dialogues. Should resolve Bug #2644. 10 years ago
scrawl c04f6cf167 Remove unused code 10 years ago
dteviot 4607c4b581 Add Modified DateTime to plug-in tooltip. (Fixes #2479) 10 years ago
scrawl f7ecda68c9 Fix for unicode filenames in ContentModel (Fixes #2451) 10 years ago
cc9cii 1ee6153940 Remove unnecessary boolean passing between objects. 10 years ago
cc9cii c4625b94e5 Fix OpenCS crashing since commit 9d6145 by showing gamefiles if the content selector was created from OpenCS. 10 years ago
dteviot 5e2839977b file extension comparison needs to be case insensitive. 10 years ago
dteviot 54e3ebde63 addon list in launcher shows addon files with no dependencies (Fixes #2348)
Also, game files must end with ".esm" or ".omwgame".
10 years ago
dteviot 9d61457956 AddOn files can be checked if game file is checked, but dependencies do not exist. 10 years ago
dteviot 6878e317a7 launcher: decouple Combo Box model from Plug-ins model.
fixes bug reported by scrawl
1. openmw.cfg had content files in order 'Bloodmoon.esm, Tribunal.esm, Morrowind.esm'
2. Blank_ESM_2.0.esm is in the Data Files directory
3. Do an ini file import.
4. Imported profile will have Blank_ESM_2.0.esm as the game file.  Should be Morrowind.esm.

Root cause: Game File combo box and Plugins Grid shared same data model, so changing plug-in file order also changed order of Game File combo box.
10 years ago
dteviot 63af9d848a Add constraint: Bloodmoon.esm requires Tribunal.esm. 10 years ago
dteviot 6dc202cba3 Removed unneeded parameter from ContentModel::setContentList() 10 years ago
scrawl 03257ecae5 QString encoding fix 10 years ago
scrawl 4c6b9f8266 Remove redundant decoder in ContentModel 10 years ago
scrawl ab9100fa90 Prevent dropping item on itself in ContentModel (Fixes #2334)
Also improves the drop indicator, it is now shown in between items instead of on an item.
10 years ago
Marc Zinnschlag fa4718283d Merge remote-tracking branch 'scrawl/contentselector' 10 years ago
dteviot 71700d2cb1 Bugfix: OpenCS segfault when plug-in dependency not found.
When a file that a plug-in depends on cannot be found, the OpenCS file dialog crashes.
Similar problem exists in omwlauncher's "Data Files" dialog.
10 years ago
dteviot 017e4cd4ef OpenCS shows plug-ins with load order issues.
1. FileDiaog in OpenCS now shows warning icon beside .esm./.esp files with load order problems.
2. omwlaucher -> replaced "stop" icon with "warning" icon for files with load order problems.
10 years ago
dteviot e95b513cfc Use icon to show files with problem (Fixes #2268)
Launcher now indicates files with problem using an icon.
Using red text for files with load order issue removed because it doesn't work well with dark themes.
10 years ago
dteviot 9d6efcecff Merge remote-tracking branch 'OpenMW/master' into FixLoadOrderReset
Fixed Conflict:
	components/contentselector/model/contentmodel.cpp
10 years ago
dteviot 083de62be5 Fixed issues found by Zinnschlag.
1. Errors found are added to default tool tip text. (Instead of replacing it.)
2. If multiple errors are found, all are shown in tool tip text, not just first one.
3. Load Order Errors are updated when files are activated/deactivated, not just when the files have their position in list changed.
10 years ago