Compare commits

...
362 Commits
Author SHA1 Message Date
LePresidente 35e0bc2285 Disable BSA Conflict Checking.
Version Bump to 2.1.0.1 (Once off using the 4th point do to change being so minor) Next version will be 2.1.1
2017-12-26 11:53:29 +02:00
LePresidente 2ea23c4129 Disable the bsa tab for release
Version bump to 2.1.0
Updated about window
2017-12-25 07:04:55 +02:00
Brian Munro 100f57dea1 Merge pull request #161 from erasmux/deactivate_bug_fix
Fix rare crash when deactiving mods
2017-12-24 17:37:54 +02:00
Eran Mizrahi 708928e643 Fix rare crash when deactiving mods 2017-12-24 17:24:46 +02:00
Brian Munro db1e63dc72 Merge pull request #160 from erasmux/dev
Deploy also styles/qwindowsvistastyle.dll
2017-12-24 09:06:54 +02:00
Eran Mizrahi 74e88b00c8 Deploy also styles/qwindowsvistastyle.dll 2017-12-22 11:37:06 +02:00
Brian Munro 28a68cf51b Merge pull request #156 from erasmux/vs_usvfs_plus_various_fixes
Vs usvfs plus various fixes
2017-12-21 08:31:25 +02:00
Eran Mizrahi a24a1cbf25 Hide boost compiler version warnings 2017-12-20 02:14:14 +02:00
Eran Mizrahi 0c75ff1836 Fix modorganizer staging 2017-12-20 02:00:56 +02:00
Eran Mizrahi 5c192fb8c5 Use Qt deploy also for Qt plugins (cherry picking only the ones we need) 2017-12-19 15:44:28 +02:00
Eran Mizrahi 80fc713273 fix usvfs includes (following usvfs VS project) 2017-12-19 15:44:28 +02:00
Eran Mizrahi cb1c9f5e83 Tie moshortcuts to a specific instance 2017-12-19 15:44:27 +02:00
Eran Mizrahi 7dad8bcb28 avoid splash screen when running a shortcut 2017-12-18 20:04:45 +02:00
Eran Mizrahi 302a9b744d Ensure clearing currentInstance reg key when selecting portable install 2017-12-18 20:04:45 +02:00
Eran Mizrahi ff31ce636b Fix mod rename with custom profiles path 2017-12-18 20:04:44 +02:00
Eran Mizrahi 90421277e7 Ensure all mostlist writing is done through the DelayedFileWriter 2017-12-18 20:04:44 +02:00
Eran Mizrahi 4656ba9447 Increase mo_interface log to help diagnose problems 2017-12-18 20:03:05 +02:00
Jeremy Rimpo b157ebb28c Merge pull request #154 from Silarn/mainline_dev
Implementing archive parsing some prioritization
2017-12-17 21:36:57 -06:00
Jeremy Rimpo 385a888c0b Implement file priority for loose files > archives 2017-12-17 21:33:04 -06:00
Jeremy Rimpo 7b45d807d6 Restore archive tab and partial functionality 2017-12-15 15:01:39 -06:00
Jeremy Rimpo f0597eb243 Merge remote-tracking branch 'up/new_vfs_library' into mainline_dev 2017-12-15 14:39:29 -06:00
Eran Mizrahi 8839e11636 Improve responsiveness of unlock button 2017-12-13 16:53:20 -06:00
Eran Mizrahi 240cbd6a27 Wait for injected processes on MO close 2017-12-13 16:53:20 -06:00
Eran Mizrahi 81344771dd Locked dialog fixes (fix mainwindow modalness; use normal window to fix parentless scenario) 2017-12-13 16:53:20 -06:00
Eran Mizrahi 2c28107ae8 fix waitForProcessCompletion bug 2017-12-13 16:53:20 -06:00
Eran Mizrahi da35cd3ea0 Allow silent closing during instance selection 2017-12-13 16:53:20 -06:00
Eran Mizrahi bd48d2f8bc Remove auto-generated files from source control 2017-12-13 16:53:20 -06:00
Jeremy Rimpo 554b468475 Merge pull request #148 from erasmux/lockeddialog_fixes
Lockeddialog fixes
2017-12-13 15:58:43 -06:00
Eran Mizrahi 604d86ed07 Improve responsiveness of unlock button 2017-12-13 22:27:11 +02:00
Eran Mizrahi a5bb70f53b Wait for injected processes on MO close 2017-12-13 22:27:11 +02:00
Eran Mizrahi 0586b2856b Locked dialog fixes (fix mainwindow modalness; use normal window to fix parentless scenario) 2017-12-13 22:27:11 +02:00
Eran Mizrahi 184b6d3907 fix waitForProcessCompletion bug 2017-12-13 22:27:11 +02:00
Eran Mizrahi 4d54b962aa Allow silent closing during instance selection 2017-12-13 22:27:11 +02:00
Eran Mizrahi 6773e14fc5 Remove auto-generated files from source control 2017-12-13 22:27:11 +02:00
Jeremy Rimpo e4b952278d Merge pull request #147 from Silarn/mainline_dev
Insert the game rather than replacing the current entry
2017-12-13 13:39:24 -06:00
Jeremy Rimpo dda5272dc9 Insert the game rather than replacing the current entry 2017-12-13 13:38:33 -06:00
Jeremy Rimpo 062e0cce2d Merge pull request #145 from Silarn/mainline_dev
A number of fixes and improvements
2017-12-13 13:10:09 -06:00
Jeremy Rimpo 027f941bb1 Properly shut down QtWebEngine 2017-12-13 12:29:23 -06:00
Jeremy Rimpo 083d107875 A number of improvements and fixes
* Move diagnostics tab to un-break tutorials targeting tab 3
* Restrict order locking for force-enabled plugins
* Cascade locked positions in the case of a conflict
* Should remove existing invalid locks
* Add some info to primary plugins in plugin list
* Differentiate plugin names for DLC and CC content
2017-12-13 03:11:03 -06:00
Jeremy Rimpo 2226a483d1 Merge pull request #144 from erasmux/crash_fixes
Crash dumps fixes
2017-12-12 15:43:21 -06:00
Eran Mizrahi 240900de39 Move crash dumps to instance-dependant data folder 2017-12-12 23:22:04 +02:00
Eran Mizrahi 2c69f9c407 call previous unhandled exception filter 2017-12-11 20:23:42 +02:00
Eran Mizrahi ebb30e0c37 Revert "Collect crash dumps also for vectored exceptions"
This reverts commit b75e3c1231.
2017-12-11 20:13:35 +02:00
Jeremy Rimpo 361e59e40d Merge pull request #140 from erasmux/shortcut_fixes
Shortcut fixes
2017-12-11 09:53:28 -06:00
Eran Mizrahi ad702537bd Use single instance also for MO shortcuts 2017-12-11 00:11:17 +02:00
Eran Mizrahi ebf378cda0 Turn on application icon for executables by default 2017-12-10 23:45:20 +02:00
Eran Mizrahi d43f35f56b Run shortcuts using moshortcut:// to avoid command line problems 2017-12-10 23:33:01 +02:00
Eran Mizrahi db973f7422 Allow copying an executable without changing details 2017-12-10 23:32:29 +02:00
Eran Mizrahi 7ab98cb451 move crash dumps to their own folder 2017-12-10 21:34:19 +02:00
LePresidente bf02d13ed4 Added issue template for future issues to stick to a standard 2017-12-10 15:50:15 +02:00
Jeremy Rimpo b2d7181ca7 Merge pull request #139 from erasmux/better_diagnostics_and_shortcuts_fix
Better diagnostics and shortcuts fix
2017-12-09 23:44:21 -06:00
Eran Mizrahi 689248619a rewrite waitForProcessCompletion more robustly 2017-12-10 02:53:20 +02:00
Eran Mizrahi 66b17eea8a Wait for processes run using command line shortcuts 2017-12-10 02:53:19 +02:00
Eran Mizrahi 89b1f1d48d add logging of process spawn 2017-12-10 02:53:19 +02:00
Eran Mizrahi b75e3c1231 Collect crash dumps also for vectored exceptions 2017-12-10 02:53:19 +02:00
Eran Mizrahi 1b4b6dbeb4 cycle crash dumps 2017-12-10 02:53:19 +02:00
Eran Mizrahi 4adb13c943 generate dumps using new diagnostics settings 2017-12-10 02:53:09 +02:00
Eran Mizrahi 54fd26fee1 new diagnostics settings dialog tab 2017-12-10 02:53:08 +02:00
Brian Munro 0aaece55d8 Merge pull request #138 from Silarn/mainline_dev
Fixes for local saves and configuration handling
2017-12-08 19:41:04 +02:00
Jeremy Rimpo ef21bd6193 Scan for and include script extender save files when transferring saves 2017-12-08 02:42:34 -06:00
Jeremy Rimpo b45b6f3342 Don't set save path or mygamesdirectory in initweaks 2017-12-07 21:53:31 -06:00
Jeremy Rimpo d7a1955f18 Use settings to get correct overwrite path for relative location calc.
(Fixes drag & drop from overwrite to mods.)
2017-12-07 14:04:45 -06:00
Jeremy Rimpo 7c80181e01 Merge pull request #137 from Silarn/mainline_dev
Minor correction of HTML structure
2017-12-07 10:58:40 -06:00
Eran Mizrahi 88e218d83e Fix lootcli sorting when temp dir contains a space (i.e. user name has a space) 2017-12-07 10:56:41 -06:00
Eran Mizrahi 720e4dd516 update gitignore 2017-12-07 10:56:41 -06:00
Jeremy Rimpo 2497d4e151 Merge pull request #136 from erasmux/dev
Small fix when running lootcli and temp dir contains a space (i.e. user name has a space)
2017-12-07 10:50:05 -06:00
Eran Mizrahi 9a2a1a4301 Fix lootcli sorting when temp dir contains a space (i.e. user name has a space) 2017-12-07 18:22:37 +02:00
Eran Mizrahi b3898c5d66 update gitignore 2017-12-07 18:20:51 +02:00
Jeremy Rimpo 6794713165 Minor change to correct broken HTML tags 2017-12-06 20:41:03 -06:00
Brian Munro fa598e86db Merge pull request #135 from LePresidente/QT5.7
All changes done for 2.1.0
2017-12-05 06:34:47 +02:00
Jeremy Rimpo ffdc5ca7cc Merge pull request #133 from Silarn/mainline_dev
Final highlighting changes
2017-12-02 13:38:26 -06:00
Jeremy Rimpo e19597ee4e Final highlighting changes 2017-12-02 13:36:33 -06:00
Jeremy Rimpo c55a923bb8 Merge pull request #132 from Silarn/mainline_dev
Numerous updates
2017-11-30 20:55:00 -06:00
Jeremy Rimpo 797a007eab Add unmanaged mods and fix plugin identification 2017-11-30 17:34:28 -06:00
Jeremy Rimpo d7bc542b3d Implement mod/plugin highlighting when pair is selected 2017-11-30 16:37:14 -06:00
Jeremy Rimpo 977d562976 Set the default WebEngineProfile settings to webcache 2017-11-30 00:36:10 -06:00
Jeremy Rimpo af16521a2d Merge remote-tracking branch 'up/QT5.7' into mainline_dev 2017-11-15 18:34:00 -06:00
Jeremy Rimpo 581a8871c6 Category fixes 2017-11-15 18:33:54 -06:00
Jeremy Rimpo 53a54230eb Add resource image for MCM detection 2017-11-13 08:47:44 -06:00
Brian Munro 7ec0b79eb4 Merge pull request #126 from Al12rs/QT5.7
Fix for MO finding the wrong game to manage.
2017-11-11 21:00:28 +02:00
Al12rs 3974ddced4 Fix for MO finding the wrong game to manage.
Commented out code that tried to deduce game and found wrong one. Now, if not already set in INI, file MO will ask the user which one to manage.
2017-11-10 21:00:24 +01:00
Jeremy Rimpo d0099a9dbb Merge remote-tracking branch 'up/QT5.7' into mainline_dev 2017-11-10 14:00:11 -06:00
Jeremy Rimpo 3cf3de700e Add MCM detection (but doesn't fix loading issues :() 2017-11-08 19:30:20 -06:00
Jeremy Rimpo 9ec913945a Add missing Nexus categories 2017-11-08 19:29:10 -06:00
Jeremy Rimpo 092596f57a Don't truncate, bypass the issue by fixing the progress window size 2017-11-07 23:31:07 -06:00
Jeremy Rimpo 8d5c67296f Forcing the progress window to resize seems to hang the extraction process 2017-11-07 22:18:55 -06:00
Jeremy Rimpo 58e17777de Merge pull request #125 from Helidoc65/QT5.7
Fixed to get rid of WindowsWindow::setGeometry: Unable to set geometry bug.
2017-11-07 11:49:06 -06:00
Helidoc65 836e550dd0 Add files via upload
Fixed to get rid of WindowsWindow::setGeometry: Unable to set geometry bug.
2017-11-07 10:42:43 -07:00
Jeremy Rimpo 4cd09a2f3b Wait for mousebutton to reduce MO cpu use while waiting 2017-11-05 14:03:02 -06:00
Jeremy Rimpo a92fc98246 Remove cruft and reapply input event listening on subprocess delay 2017-11-05 13:47:00 -06:00
Jeremy Rimpo 9a3cf3bc1c Merge pull request #121 from Silarn/mainline_dev
Rework waitForProcessCompletion - reduce handle use and add delay
2017-11-05 03:52:22 -06:00
Jeremy Rimpo 853c42081d Rework waitForProcessCompletion - reduce handle use and add delay 2017-11-05 01:45:57 -06:00
LePresidente 901bf0059d processes should be deleted at end of waitForProcessCompletion 2017-11-04 09:54:47 +02:00
Jeremy Rimpo b2d0abe0e4 Merge pull request #120 from Silarn/mainline_dev
Fix remaining handle leaks
2017-11-02 16:05:09 -05:00
Jeremy Rimpo 00af56f7c7 Fix remaining handle leaks 2017-11-02 16:01:55 -05:00
Jeremy Rimpo 55a65b16cc Merge pull request #119 from Silarn/mainline_dev
Process completion fixes
2017-11-02 01:55:13 -05:00
Jeremy Rimpo 51ad72c74d Process completion fixes
* Closes all old handles
* Hides 'unknown' processes
* Correctly detects process chains
2017-11-02 01:41:11 -05:00
Brian Munro 080cfeea41 Merge pull request #117 from Al12rs/QT5.7
Added !found condition to for loop to avoid possible leak.
2017-11-01 06:38:14 +02:00
Jeremy Rimpo ef699514c9 Merge pull request #118 from Silarn/mainline_dev
Do not attempt to add or delete if arch not found
2017-10-31 21:32:19 -05:00
Jeremy Rimpo 087f3841f3 If architecture is not detected, skip handling 2017-10-31 21:29:12 -05:00
Jeremy Rimpo 627660ebb7 Merge remote-tracking branch 'up/QT5.7' into mainline_dev 2017-10-31 17:20:18 -05:00
Al12rs 0825cd0f20 Added !found condition to for loop to ensure that a valid processHandle can't be overwritten to avoid handle leaks. 2017-10-31 23:20:06 +01:00
LePresidente 66e04f636e Merge branch 'QT5.7' of https://github.com/LePresidente/modorganizer into QT5.7 2017-10-31 16:06:38 +02:00
LePresidente 6c54ef5ec2 More fixes to waitForProcessCompletion 2017-10-31 16:00:58 +02:00
Brian Munro 9cc196ae3a Merge pull request #114 from Al12rs/QT5.7
Changed segment of while condition in waitForProcessCompletion()
2017-10-31 15:24:40 +02:00
Al12rs c8118ea0fa Merge pull request #1 from LePresidente/QT5.7
merge pull request: multiple fixes to waitForProcessCompletion.
2017-10-31 12:05:57 +01:00
LePresidente 2f1d270c08 multiple fixes to waitForProcessCompletion. 2017-10-31 12:13:25 +02:00
Jeremy Rimpo 5cb0d1cb3d Merge pull request #2 from Al12rs/QT5.7
Merge upstream + potential while fix
2017-10-30 17:45:03 -05:00
Al12rs d53591c6c9 Changed segment of while condition in waitForProcessCompletion() from OR to AND as it alwais evaluated true. 2017-10-30 19:56:23 +01:00
LePresidente 701e6e4927 Close the handle that is created by FindFirstFileW correctly. 2017-10-30 15:30:28 +02:00
Brian Munro d15262b903 Merge pull request #113 from Silarn/mainline_dev
Updates for script extender usvfs loading
2017-10-30 12:41:05 +02:00
Jeremy Rimpo 88452e5d76 Reimplement ScriptExtender handling by detecting USVFS arch 2017-10-29 19:34:35 -05:00
LePresidente cabffa23a9 Use ScriptExtender PluginPath instead of appending "/plugin" to the old script extender name variable. 2017-10-29 11:38:06 +02:00
Jeremy Rimpo 7e2811cb46 Merge remote-tracking branch 'up/QT5.7' into mainline_dev 2017-10-28 21:58:41 -05:00
LePresidente ebe6011174 Fixes the handle leak in the OrganizerCore::waitForProcessCompletion 2017-10-28 08:30:23 +02:00
Jeremy Rimpo d659ad7294 Update master parsing and detect ESLs by extension 2017-10-26 16:28:15 -05:00
LePresidente 139ee36a3f Fixes
https://github.com/LePresidente/modorganizer/issues/108
2017-10-26 15:50:35 +02:00
LePresidente 4124bc3976 Merge branch 'QT5.7' of https://github.com/LePresidente/modorganizer into QT5.7 2017-10-24 13:56:45 +02:00
LePresidente 643477de2f Updated dll manifest. 2017-10-24 13:56:06 +02:00
Brian Munro bf505d2d5f Merge pull request #107 from Silarn/mainline_dev
Hopefully final ESL corrections
2017-10-24 08:48:11 +02:00
Jeremy Rimpo 2866a494d4 Merge remote-tracking branch 'upstream/QT5.7' into mainline_dev 2017-10-24 01:45:59 -05:00
Jeremy Rimpo 56a3dd4624 Fix minor ESL issues and set a useful URL for issue reporting 2017-10-24 01:45:29 -05:00
Brian Munro 126f8deb55 Merge pull request #106 from Silarn/mainline_dev
Updates for tutorials and nexus description links
2017-10-24 06:18:00 +02:00
Jeremy Rimpo f0f2112c15 Merge remote-tracking branch 'upstream/QT5.7' into mainline_dev 2017-10-23 16:12:15 -05:00
Jeremy Rimpo 0c6f983148 Fix up tutorial scripts
* Patches for QtQuick 2.x
* Fix up tab refs, names, and other out-of-date info
2017-10-23 16:11:38 -05:00
Jeremy Rimpo ac3953030d Fix the nexus description link handler 2017-10-23 16:10:11 -05:00
LePresidente 03608230ac added a catch all for the remote version check when checking for updates. Should stop a hard crash but should probably be reviewed at a date. 2017-10-23 18:33:42 +02:00
Jeremy Rimpo fe44deb765 Update QtQuick import to 2.7 (for Qt 5.7) - works with 5.9
Requires update to uibase
2017-10-23 02:31:22 -05:00
LePresidente b09f8ce7b4 Updated version to 2.1.0beta
Added QtQuick to cmake to try address tutorial issue [Untested]
2017-10-22 21:05:06 +02:00
Brian Munro 2d4b463338 Merge pull request #104 from Silarn/mainline_dev
Updates for ESL support
2017-10-22 08:00:13 +02:00
Jeremy Rimpo e4d431fe21 Display the index of the ESL in the mod index space to differentiate ESLs 2017-10-21 23:00:32 -05:00
Jeremy Rimpo eaeb48d745 Correctly render the modindex for ESLs 2017-10-21 22:43:45 -05:00
Jeremy Rimpo b16a0ab3d9 Add ESL flag type detection
* ESL files can be sorted like ESMs
* ESL files are displayed italicized but not bold
2017-10-20 23:16:04 -05:00
Jeremy Rimpo a611c355ce Basic ESL updates 2017-10-20 20:27:06 -05:00
LePresidente 4689db7624 Fixed cmake to use the QTROOT Parameter instead of hard coding the directory, 2017-10-19 11:24:20 +02:00
LePresidente 8bea685640 windeployqt doesn't automatically detect the requirement for qtwebenginewidgets, so we force it. 2017-05-05 08:39:51 +02:00
LePresidente 91eaba8b44 Updated manifest to use new dll's. 2017-05-01 20:23:53 +02:00
Brian Munro 822534e16a Merge pull request #69 from LePresidente/new_vfs_library
Bring in line with main branch
2017-03-29 02:44:31 -07:00
LePresidente c64e12a289 Version Bump. 2.0.8.3b 2017-02-06 22:21:31 -08:00
Brian Munro 9438098cf1 Merge pull request #51 from ZachHaber/new_vfs_library
Fixed an issue with sort button
2017-01-25 23:53:10 -08:00
ZachHaber 4269e82c80 Fixed an issue with sort button
Sort button will now correctly create the new loadorder.txt.
2017-01-25 20:51:23 -06:00
Brian Munro d63c164a74 Merge pull request #49 from ZachHaber/new_vfs_library
Loot Button & Overwrite
2017-01-17 20:21:58 -08:00
ZachHaber 45cc67da05 Re-enabled the boss button
Properly this time =P
2017-01-17 17:14:38 -06:00
ZachHaber 0da2060da4 Revert "Loot Button"
This reverts commit f2b33d75cb.
2017-01-17 17:11:06 -06:00
ZachHaber 4149ce4cdb Fixing overwrite problems
Changes the organizerproxy to pull from the settings rather than try and
figure it out on its own.
2017-01-17 16:30:42 -06:00
ZachHaber f2b33d75cb Loot Button
Re-enabled the button
2017-01-16 19:34:02 -06:00
Brian Munro d869d99785 Version bump. 2017-01-13 09:15:43 +02:00
Brian Munro bfeda873c4 Merge remote-tracking branch 'ZackHaber-upstream/new_vfs_library' into new_vfs_library 2017-01-13 08:16:23 +02:00
Brian Munro c9766b6e1a Fixes the error code 5/6 issues 2017-01-11 15:47:09 +02:00
LePresidente 99156abc6e First attempt to update to QT5.7 2017-01-04 14:23:53 +02:00
Brian Munro 03328e9f55 Update selfupdater.cpp
Reverted Tabs to spaces
2017-01-03 19:36:15 +02:00
Brian Munro c48d1c36b7 Update mainwindow.ui
Reverted Tabs to spaces
2017-01-03 19:34:56 +02:00
ZachHaber 866a004438 Fixed pluginListPath to allow spaces
lootcli was failing on FO4 b/c it was passing in a space.
2016-12-28 03:37:14 -06:00
Zanoth 8b8ddc8163 Got rid of some unnecesarry code
Removed some parameters that were being sent to lootcli.exe that aren't
relevant anymore, commented out the report viewing, and set the
masterlist update boolean to switch only when there was no error.
2016-12-27 22:18:49 -06:00
ZachHaber 5dc1ee3da6 Adding *.bak to .gitignore
*.bak is winmerge's backup files, no point in adding that to git by
accident again.
2016-12-27 22:14:06 -06:00
ZachHaber dd653c3752 Remove excess file
Shouldn't have been committed.
2016-12-27 16:55:55 -06:00
ZachHaber a8556eacb6 Added preliminary support for changes to lootcli project
Hopefully re-enabled lootcli report. Added new argument for lootcli.exe:
pluginListPath, so it can determine what to read and thus change.
Need to figure out how to determine the current language in a format
that's easily understood.
2016-12-27 16:41:12 -06:00
ZachHaber f0810bfa43 Merge pull request #1 from LePresidente/new_vfs_library
Updating from LePresidente's changes
2016-12-27 14:53:03 -06:00
Brian Munro 7432f7870b Reverted Change
Reverted silly edit.
2016-12-21 13:11:23 +02:00
Brian Munro 71f9c4f69d Update organizercore.cpp
Shoud be an "or" query instead of "and",
2016-12-21 11:46:10 +02:00
LePresidente 71b4911c8c Build Number Version Bump. 2016-12-21 00:55:51 -08:00
LePresidente d1ed7ae5d7 Migrate to version numbers with buildnumber.
Added Comment for removal of ModBase::isOneof
2016-12-21 00:54:41 -08:00
LePresidente 1cf368c126 Reverted use of MOBase::isOneOf was causing the lock to fail. 2016-12-20 03:18:43 -08:00
TanninOne a3671a5557 Merge pull request #1031 from LePresidente/new_vfs_library
New vfs library
2016-12-12 19:58:29 +01:00
LePresidente afa0cb9446 Version Bump,
Basic SkyrimSE changes
2016-12-12 05:12:20 -08:00
lepresidente 0657774e2e Use my repo for the updates for now. 2016-12-12 08:26:19 +02:00
lepresidente 695593968b updated email for dump reports. 2016-12-04 18:15:59 +02:00
lepresidente 61edeb12f1 gameShortName has been replaced by gameNexusName due to syrimse on nexus using skyrimspecialediton. 2016-12-04 17:56:07 +02:00
TanninOne 5ae681e6d5 Merge pull request #1023 from LePresidente/new_vfs_library
Updated icu libs to 54 in release build.
2016-11-30 20:53:52 +01:00
lepresidente db6b536fb1 Updated icu libs to 54 in release build. 2016-11-30 20:38:24 +02:00
Tannin 64590a10d7 Merge branch 'master' into new_vfs_library 2016-06-30 22:15:50 +02:00
TanninOne 4a582e524d Merge pull request #837 from ThosRTanner/issue/309
Changes for TanninOne/modorganizer#309 (3 of 3)
2016-06-30 19:03:45 +02:00
Tannin a00cda607c updated to changed usvfs api 2016-06-30 18:56:41 +02:00
Thomas Tanner 42407866e9 Some include-what-you-use suggested changes 2016-06-27 21:21:54 +01:00
Thomas Tanner c3a8a0b9eb Moved QuestionBoxMemory clearance from settings into QuestionBoxMemory 2016-06-26 20:27:50 +01:00
Thomas Tanner 607b2a10aa Restore commented out code 2016-06-26 20:27:13 +01:00
Thomas Tanner 6b60d54853 Extra question box functionality 2016-06-25 14:03:37 +01:00
Thomas Tanner c7101be7d8 Some refactoring of the spawn code and to make waitForApplication get the right error code (usually)
A note: It is possible for the executed program to completely exit before MO attempts to get hold of the pid from the job handle,
in which case strangeness will happen (this has always been an issue)
2016-06-25 11:47:15 +01:00
Thomas Tanner d80a77a4cb Fix a small bug in listing forward references 2016-06-25 09:47:28 +01:00
Tannin 33b544112c fixed categories list didn't get updated on switching instance 2016-06-23 21:38:54 +02:00
Tannin 8a3af93b39 fixed creation of data paths after changing paths in settings and update of profile list after change 2016-06-23 21:00:46 +02:00
Tannin 352975e757 updated to use the unmanaged-mod game plugin feature 2016-06-19 16:01:51 +02:00
Tannin cd83f4e732 reduced number of mod content icons a bit because they take too much space 2016-06-19 16:01:15 +02:00
Tannin 4f25a0689f updated translation 2016-06-19 16:00:13 +02:00
Tannin 3d642563cb usvfs log level can now be changed without a restart 2016-06-19 15:59:50 +02:00
Tannin 0100c86887 download list and data tree now also maintain their layout between sessions 2016-06-19 15:58:37 +02:00
Tannin 8d04c77c29 updated version number and translation file 2016-06-05 14:23:27 +02:00
Tannin b935ce3862 bugfix: unnecessary repeat of delayed operations 2016-06-05 14:20:49 +02:00
Tannin fcebf21c44 fixed startup errors 2016-06-05 14:16:55 +02:00
Tannin 3d1dfadb40 automatic update of translation file during build 2016-06-04 15:29:52 +02:00
Tannin c2c48bd39a testing the hook for updating the translation-page 2016-06-04 14:33:24 +02:00
Tannin 9163a6dc34 added transifex configuration 2016-06-04 11:40:06 +02:00
Tannin 8bf3037d4b bugfix: changing from local language to english doesn't stick 2016-06-03 18:49:48 +02:00
Tannin 4f1bb36933 fixed some filename/modname handling for names received from nexus 2016-06-02 19:45:04 +02:00
Tannin cbdea13a9c minor cleanup 2016-06-01 19:34:01 +02:00
Tannin b36c666899 fixed: mandatory esms could get disabled without a way in the ui to re-enable them 2016-06-01 19:33:37 +02:00
Tannin bbab59f681 fixed handling of base dir in settings dialog (and fixed the tab order in the settings dialog) 2016-05-27 15:51:01 +02:00
Tannin bfbb190998 moved button to switch instance (and to portable mode) to the main window 2016-05-27 14:04:00 +02:00
Tannin c3b7737ae4 bugfix: incorrect url-encoding for passwords prevented login with some special characters 2016-05-19 19:18:46 +02:00
Tannin 30878ae394 added button to clear webcaches and cookies 2016-05-19 19:17:15 +02:00
Tannin 45a182a381 bugfix: initial setup didn't offer a portable install even if the global install dir is gone 2016-05-19 19:15:19 +02:00
Tannin 0b07cfa3f0 cleanup 2016-05-19 19:10:33 +02:00
Tannin 986330a3bd removed obsolete stuff 2016-05-16 16:03:36 +02:00
Tannin 81c5ca5308 Merge branch 'master' into new_vfs_library 2016-05-16 15:48:38 +02:00
Tannin 3a8da159da removed obsolete inject code 2016-05-16 14:46:54 +02:00
Tannin f6c3b516fd changes to primary category are now saved immediately instead of after the menu is closed 2016-05-15 15:09:14 +02:00
Tannin 5665be7fd1 fixed calls to helper.exe using wrong path 2016-05-15 14:58:54 +02:00
Thomas Tanner a625acd17b Merge remote-tracking branch 'refs/remotes/TanninOne/master' 2016-05-15 12:23:55 +01:00
Tannin e522afa63b removed highlighting of dummy plugins 2016-05-15 13:07:46 +02:00
Tannin e3c3c2dcc4 fixed: after running an external application the plugin list was potentially not updated correctly 2016-05-15 13:06:31 +02:00
Tannin 519f215fd7 fixed saves list wasn't updated after removing a save game 2016-05-15 12:59:50 +02:00
TanninOne 89221af929 Merge pull request #677 from writemorecode/master
FIXED #302 Edited tooltip in Executables menu
2016-05-15 12:50:41 +02:00
Thomas Tanner f5a815185f Updates for QT5.5 2016-05-15 11:03:43 +01:00
Tannin 59a36107a1 fixed crash when disabling mods 2016-05-11 20:12:14 +02:00
Tannin bc5d5d8bfa ssl libraries can now be placed in dlls directory 2016-05-11 20:10:18 +02:00
Gustav Karlsson a294f8410f Edited tooltip in Executables menu
Edited a tooltip in the Executables menu.
2016-05-09 20:47:25 +02:00
Tannin 256cdb8df7 fixed priority ordering after enabling/disabling mod 2016-05-09 20:36:13 +02:00
Tannin 32480f7a81 minor fixes 2016-05-07 00:23:13 +02:00
Tannin e43762e7db profiles can now be configured to use the global game settings instead of profile-local 2016-05-07 00:22:23 +02:00
Tannin afe0d749c4 added option to use a mod as the target to create now files instead of "overwrite" 2016-05-07 00:18:23 +02:00
Tannin eb97c46ed6 cleanup 2016-05-07 00:03:38 +02:00
Tannin d958e11e2b now using github for self updater 2016-05-06 23:47:51 +02:00
Tannin b0e3e86a61 moved plugins.txt reading/writing to game plugin 2016-05-06 23:39:08 +02:00
Tannin 9df612c7ca more configuration options
- overwrite path configurable
- one can now set a base directory for all configurable paths
- user can now opt in/out of receiving pre-release updates (not functional yet)
2016-03-02 21:28:17 +01:00
Tannin 0899724d90 profile- and group-dropdown no longer switch by mouse-wheel. Plus fixed refreshing of right-hand side tabs 2016-03-02 21:22:26 +01:00
Tannin 53d9789740 updated icon and splash screen. MO can now use custom instance specific splash screens and splashes stored in game plugins 2016-03-02 21:20:38 +01:00
Tannin 4f8c71d626 merged master into new_vfs_library 2016-02-12 19:08:25 +01:00
TanninOne ba8464f01f Merge pull request #456 from ThosRTanner/issue/418
Refactor save game code into plugins
2016-02-10 18:37:28 +01:00
Tannin fd68248698 fixed browse-button for mod directory (in settings) 2016-02-09 20:57:20 +01:00
Tannin 1ad2115e01 fixed cleanup of file handles 2016-02-09 20:55:39 +01:00
Tannin 8d1dd6238f fixed display of process name in unlock-widget 2016-02-09 20:54:54 +01:00
Tannin aaa1f52bdd fixed cleanup on restart 2016-02-09 20:53:09 +01:00
Tannin b085aeea0e changed focus policy on grouping selection to prevent accidentally changing the grouping mode 2016-02-09 20:51:56 +01:00
Tannin ea621ef859 fixed update of window title 2016-02-09 20:50:07 +01:00
Tannin 3202713cff updated to match current usvfs api 2016-02-09 20:46:46 +01:00
Tannin ad9d50e5f0 replaced boost&qt foreach-implementations by the c++11 variant 2016-02-09 20:32:26 +01:00
Tannin 63eaf453e0 portable setup is no longer offered if the directory isn't writable 2016-02-09 20:05:41 +01:00
Tannin 8a9a1680b0 code formatting (clang_format) 2016-02-09 20:02:58 +01:00
Tannin 1439347def updated version number 2016-02-08 20:33:53 +01:00
Thomas Tanner 0e9a86ebfc Merge branch 'master' into issue/418
# Conflicts:
#	SConstruct
#	src/organizerproxy.cpp
2016-01-24 18:10:25 +00:00
Thomas Tanner 8da9ba5404 Removing the 'get' in all function names and making FO4 plugin build
Merge branch 'master' of https://github.com/TanninOne/modorganizer
2016-01-24 15:25:38 +00:00
Thomas Tanner 387326f2d6 thoughts 2016-01-24 10:22:27 +00:00
Tannin a9a51f5085 fixed a potential crash-cause when querying download info and slight improvement (?) to the regex that extracts the modid 2016-01-10 20:22:50 +01:00
Tannin 2aae65d6f6 made instance-switching usable
this includes tons and tons of changes to how paths are determined.
the profiles-dir can now also be configured
2016-01-10 20:19:56 +01:00
Thomas Tanner d07b4f7ff0 Fixes an issue with doing connect for download cancel at the wrong time
Also cleaned up header usage per include-what-you-use
2015-12-31 23:08:24 +00:00
Thomas Tanner 197c49e996 Fixes for building with qt5.5 2015-12-31 23:06:52 +00:00
Thomas Tanner 0d50427b83 Patch to build with QT5.5 2015-12-30 16:38:47 +00:00
Thomas Tanner e90fbb1df2 Patch to build with QT5.5 2015-12-30 16:24:47 +00:00
Tannin ddf841400e Merge branch 'new_vfs_library' of https://github.com/TanninOne/modorganizer into new_vfs_library 2015-12-28 14:34:44 +01:00
Tannin 1bfc91046b removed get-prefix from many getters. removed const from managed_game variable.
other fixes
2015-12-28 14:33:30 +01:00
TanninOne d417229e6b executables installed as mods are now run through a proxy (not working yet) 2015-12-28 13:54:16 +01:00
TanninOne 1d1cd36957 slight fixes to transfer saves functionality 2015-12-28 13:50:20 +01:00
Thomas Tanner a4dbe82be7 Removes the gameinfo + related files from shared to hookdll 2015-12-27 13:50:46 +00:00
Thomas Tanner 42417b6a01 Fix missing functions and also a bit of const correctness 2015-12-26 15:49:19 +00:00
Thomas Tanner f2b2ee1a11 Merge remote-tracking branch 'TanninOne/master' into issue/418 2015-12-26 15:27:34 +00:00
Thomas Tanner ae6bb99c52 Remove savegameinfowidget from organizer core 2015-12-26 08:23:43 +00:00
Thomas Tanner 3869eaaf2b Transferring the savegame widget into gamebryo + some cleanup 2015-12-25 21:57:23 +00:00
TanninOne c037b74b00 Merge branch 'master' into new_vfs_library 2015-12-23 11:38:34 +01:00
TanninOne 5adb3b377e Merge pull request #450 from ThosRTanner/master
Restore start download file method (2 of 3)
2015-12-21 15:12:22 +01:00
TanninOne d4326250fb Update readme.md 2015-12-21 15:11:55 +01:00
Thomas Tanner 2d43645b64 Restore start download file method (2 of 3) 2015-12-20 22:25:11 +00:00
Thomas Tanner 6edf12f2f7 Rename the save game identifier method to make it clearer what it's for. 2015-12-20 21:22:38 +00:00
Thomas Tanner f55a5f2b21 Managed to remove SaveGame and SaveGameGamebryo classes from organizer 2015-12-20 21:08:14 +00:00
Thomas Tanner 5f5184ebfe Changes to support getting list of mods / esps to activate from game plugin 2015-12-19 20:49:54 +00:00
TanninOne 9d260a43f6 Merge pull request #422 from ThosRTanner/master
remove last vestiges of GameInfo
2015-12-19 10:33:36 +01:00
TanninOne 9effaec234 Merge pull request #423 from ThosRTanner/patch-1
Adding fallout4 to the list of repositories
2015-12-19 10:31:59 +01:00
Tannin 502e950cde support for adding directories to the vfs that will act as create target for new files 2015-12-18 20:32:29 +01:00
Tannin 4908affbfc fixed display of savegame widget in case parsing fails 2015-12-18 20:28:03 +01:00
Tannin 8dc51895e3 improved file overwriting in transfersaves dialog 2015-12-18 20:20:06 +01:00
Tannin 568b2abc12 removed close-mo feature 2015-12-18 20:16:28 +01:00
Thomas Tanner 30b29635f6 unsaved edits... 2015-12-15 16:00:15 +00:00
Thomas Tanner 0c536a4c12 Makes iSaveGame responsible for returning all files involved in savegame.
Cleans up save deletion and save transfer dialogue somewhat
2015-12-15 15:58:01 +00:00
Thomas Tanner 967c2ae653 Removes the SaveGame class from mainwindow. Using include what you use to add/remove #includes 2015-12-14 22:25:57 +00:00
Thomas Tanner ba176e5e9b Remove dependency of TransferSave on SaveGameBryo, part of fix for #418
Added a method to Profile class to get location of save games for the profile. I haven't added this to IProfile as am in two minds.

Aside from this have done cleanups of issues suggested by include-what-you-use, and some OCD sorting of #includes
2015-12-13 18:30:40 +00:00
Thomas Tanner c344714661 And found it was unreadable so ordered things a bit and replaced 2 line 'could use forward reference' with 1 2015-12-12 12:35:14 +00:00
Thomas Tanner a3a4d5441d Full details from include what you use for qt creator 'issue' box 2015-12-12 11:51:05 +00:00
Tannin e60e2858d8 Merge branch 'master' into new_vfs_library
Conflicts:
	src/gameinfoimpl.cpp
	src/installationmanager.cpp
	src/mainwindow.cpp
	src/organizercore.cpp
	src/organizercore.h
	src/organizerproxy.cpp
	src/organizerproxy.h
	src/savegamegamebryo.cpp
	src/savegamegamebyro.h
	src/selfupdater.h
	src/shared/fallout3info.cpp
	src/shared/fallout3info.h
	src/shared/falloutnvinfo.cpp
	src/shared/falloutnvinfo.h
	src/shared/gameinfo.cpp
	src/shared/gameinfo.h
	src/shared/oblivioninfo.cpp
	src/shared/oblivioninfo.h
	src/shared/skyriminfo.cpp
	src/shared/skyriminfo.h
	src/spawn.cpp
	src/transfersavesdialog.cpp
2015-12-07 21:00:22 +01:00
Tannin 495846534d - no longer displaying "not logged in". This was too confusing for some
- fixed files missing from vfs if parent directory exists in real destination dir
- implemented plugin api to access current profile
- steam game detection now also works for 64-bit games
- removed reference to archive tab from tutorial
- usvfs log level is now taken from config
- some cleanup
2015-12-07 20:09:34 +01:00
ThosRTanner 4a8c7306be Adding fallout4 to the list 2015-12-06 22:12:39 +00:00
Thomas Tanner 7b087f8f9d Facepalm moments - realised gameinfo init call is no longer needed. Removed all references 2015-12-06 21:10:37 +00:00
Thomas Tanner eff0f46872 Merge remote-tracking branch 'refs/remotes/TanninOne/master' 2015-12-06 17:44:17 +00:00
TanninOne 752bed064c Merge pull request #349 from ThosRTanner/issue/344
Fix for Issue 344 (1 of 4) - add code to get script extender and game versions
2015-12-06 17:32:18 +01:00
Thomas Tanner 750239bebb Merge branch 'master' into issue/344
# Conflicts:
#	src/gameinfoimpl.cpp
#	src/gameinfoimpl.h
#	src/shared/fallout3info.h
#	src/shared/falloutnvinfo.h
#	src/shared/gameinfo.h
#	src/shared/oblivioninfo.h
#	src/shared/skyriminfo.h
2015-12-06 15:49:56 +00:00
TanninOne 865c75a499 Merge branch 'ThosRTanner-master' 2015-12-06 15:10:45 +01:00
TanninOne eca56079d5 Merge branch 'master' of https://github.com/ThosRTanner/modorganizer into ThosRTanner-master 2015-12-06 15:03:38 +01:00
TanninOne e31cf3f2fd Merge pull request #372 from ThosRTanner/issue/356
Refactor gameinfo & 'shared' library to use game plugins (9 of 17)
2015-12-06 13:24:19 +01:00
Thomas Tanner 3670ab2528 Remove debugging code quick! 2015-12-06 12:07:25 +00:00
Thomas Tanner 235d893eb8 Gets rid of last vestiges of GameInfo apart from startup and hookdll
Working on sorting out savegame stuff
2015-12-05 19:13:05 +00:00
Thomas Tanner c2ed844eeb Merge remote-tracking branch 'remotes/TanninOne/master' into issue/356
Conflicts:
	src/downloadmanager.cpp
	src/mainwindow.cpp
	src/modinfo.cpp
	src/modinfo.h
	src/selfupdater.cpp
	src/shared/fallout3info.cpp
	src/shared/fallout3info.h
	src/shared/falloutnvinfo.cpp
	src/shared/falloutnvinfo.h
	src/shared/gameinfo.h
	src/shared/oblivioninfo.cpp
	src/shared/oblivioninfo.h
	src/shared/skyriminfo.cpp
	src/shared/skyriminfo.h
2015-12-05 12:49:12 +00:00
Thomas Tanner cb09ace972 Hoist self with own petard - add const 2015-12-05 10:43:19 +00:00
Thomas Tanner 0dedf5a875 Merge remote-tracking branch 'remotes/TanninOne/master' into issue/344
# Conflicts:
#	src/shared/fallout3info.h
#	src/shared/falloutnvinfo.h
#	src/shared/gameinfo.h
#	src/shared/oblivioninfo.h
#	src/shared/skyriminfo.h
2015-12-05 10:32:07 +00:00
Thomas Tanner ec9c78f8fa Merge remote-tracking branch 'TanninOne/master'
# Conflicts:
#	SConstruct
#	src/modinfo.cpp
#	src/modinfo.h
2015-12-05 10:21:44 +00:00
Thomas Tanner c07e48075e Most of work for savegame 2015-12-05 06:51:57 +00:00
TanninOne 688e149c96 Merge pull request #334 from ThosRTanner/issue/308
Allow right click on module to see web link if supplied in fomod
2015-12-04 22:30:35 +01:00
TanninOne 87d5fe28f6 Merge pull request #328 from ThosRTanner/issue/324
Cope with quotes in file- and module- names
2015-12-04 21:55:11 +01:00
TanninOne ce38a3bd33 Merge pull request #3 from ThosRTanner/archive_cleanup
Refactoring archive library (Part 3)
2015-12-04 17:51:45 +01:00
TanninOne 71b8c00592 Merge pull request #402 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2015-12-04 17:49:46 +01:00
ReadmeCritic 20442cd4de Update README URLs based on HTTP redirects 2015-11-29 19:55:03 -08:00
Thomas Tanner c236078aa1 Fix up so that hookdll continues to work properly 2015-11-29 14:44:12 +00:00
Thomas Tanner 9a88a190eb Another cleanup and make the program not crash when looking at saves for the nonce 2015-11-29 12:55:49 +00:00
Thomas Tanner d03e4f45ef Abstract away the xxse_loader manipulation and make use of the 'ScriptExtender' feature instead
A note: This makes loadmechanism.cpp require xxse_loader.exe to exist, not the dll as other places get the version number from the exe.
2015-11-28 23:12:29 +00:00
Thomas Tanner 9e2bcffc32 Reworked startup considerably so now no longer dependant on GameInfo
Did some const correctness to the "managed_game" property as you shouldn't really be altering the plugin details whilst MO is running
2015-11-28 14:53:32 +00:00
Thomas Tanner 2e78a381ea Fix sconstruct issue from main line 2015-11-27 08:13:21 +00:00
Thomas Tanner bb56696f7e Merge remote-tracking branch 'TanninOne/master' into issue/324 2015-11-27 07:58:22 +00:00
Thomas Tanner ca54ee2e9a Renamed getNexusName to getGameShortName as previously because it hopefully isn't too nexus related. 2015-11-26 21:22:47 +00:00
Thomas Tanner 2025145ff6 Replaced the IPluginGame getNexusDisplayURL with some APIs in NexusInterface
It makes more sense to have them here as they have very little to do with the game, more to do with the origin of the mod.
2015-11-26 21:02:45 +00:00
Thomas Tanner 1b1fc247df Remove remaining gameInfo 2015-11-26 17:54:25 +00:00
Thomas Tanner dd37152eae This removes getNexusPage from GameInfo and is currently in the game plugin.
I'm looking to move it to the nexus interface though as it doesn't really relate to the game plugin.

I've also removed the MananagementURL as
- you can log into nexus without needing to specify the game
- See above - it doesn't belong with the game plugin

This gets rid of all dependencies bar game saving and logging in
2015-11-26 17:48:50 +00:00
Thomas Tanner 82e6c98043 Replace last occurrence of GameInfo::getNexusGameID and remove a whole load of gameinfo.h includes 2015-11-26 07:39:35 +00:00
Thomas Tanner 29dadf52f1 Forgot to remove the redundant member 2015-11-25 20:40:34 +00:00
Thomas Tanner 38c5899fef Replace GameInfo::getNexusInfoUrl with IPluginGame::getNexusManagementUrl
also added getNexusDisplayUrl for the other variant of getNexusPage

Removed skyrim static versions

note that Nexusinterface is now passed a game plugin rather than a URL and a game ID if you want to override the current game
2015-11-25 19:31:05 +00:00
Thomas Tanner b9b12ca765 Bunch of const correctness changes. There shouldn't be any update of plugin games once MO has started 2015-11-25 14:23:58 +00:00
Thomas Tanner 78b686b2bc Removes all references to GameInfo::getGameDirectory apart from one during startup
Did some const correctness improvements

Also may have fixed a potential crash as the Profile copy constructor didn't copy the m_GamePlugin membber
2015-11-25 08:22:40 +00:00
Thomas Tanner 42a68689fe Replace GameInfo::getNexusModID with IPluginGame::getNexusModOrganizerID()
Also implement IPluginGame::getNexusGameID() but not hooked it in yet.
2015-11-24 16:16:57 +00:00
Thomas Tanner c7d583bcf1 Replace GameInfo::getLoadorderMechanism with IPluginGame::getLoadOrderMechanism 2015-11-24 14:21:19 +00:00
Thomas Tanner d6da51536f Merge branch 'issue/356' of https://github.com/ThosRTanner/modorganizer into issue/356 2015-11-24 09:52:54 +00:00
Thomas Tanner d4a287a4cc Updated comments so I can see where I'm going 2015-11-24 09:51:46 +00:00
Thomas Tanner 91576257bc Updated comments so I can see where I'm going 2015-11-24 09:50:02 +00:00
Thomas Tanner a7ef089650 Use IPluginGame::getIniFiles throughout.
Also removed the default constructor from Profile class and stopped registering it as a QMetaObject (which it is the only reason it is there).
2015-11-24 09:45:45 +00:00
Thomas Tanner 37c3bea7dd Removes all uses of GameInfo::getShortName, replaced by IPluginGame::getNexustName 2015-11-24 06:58:29 +00:00
Tannin fe8c3aaea5 some fixes and removed obsolete code 2015-11-23 21:44:47 +01:00
Tannin dda9e11976 added interface for file mapping plugins 2015-11-23 21:43:37 +01:00
Tannin 9945b5e926 added support for fallout 4 savegames 2015-11-23 21:41:25 +01:00
Thomas Tanner 3659284ab6 Remove most instances of GameInfo::getname, and transfer getDLCPlugins to the plugingame interface
Also commented out startDownloadNexusFile as it doesn't appear to be used anywhere
2015-11-23 18:32:30 +00:00
Thomas Tanner 2a50683133 Removed 'requiresSteam' which is only used in one place and might or might not be game related 2015-11-23 13:35:48 +00:00
Thomas Tanner efaba90706 Final eradication of igameinfo and adding python wrappers for IPluginGame 2015-11-22 21:18:56 +00:00
Thomas Tanner 159501d076 Removes igameinfo.h from everywhere apart from (sort of) the pythonrunner plugin.
Also comment out the filemapping function because it's large and doesn't appear to be used anywhere
2015-11-22 08:46:46 +00:00
Thomas Tanner 4dbb3b148d Replace some instances of qApp->property("managed_game") with the saved pointer.
Pedantic note: This doesn't help the possibility of supporting multiple executables greatly, we'd have to have a lot of register-for-change events.
2015-11-21 17:26:34 +00:00
Thomas Tanner 408b7933d2 Replace GameInfo::path with iPluginGame::gameDirectory (or dataDirectory where applicable) 2015-11-21 16:32:48 +00:00
Thomas Tanner efb54100dc Removal of (get)BinaryName 2015-11-21 12:30:33 +00:00
Thomas Tanner f339cc8431 Member variable unused so removed it.
Leaves one asking *why* the datapath can be inside the game directory.
2015-11-20 19:34:09 +00:00
Thomas Tanner 49de6e8d25 Get rid of GameIfo::getOrganizerDirectory and associated member variable
qApp->getProperty("dataPath") can be used instead (and is pretty much everywhere else) so it's unnecessary
2015-11-20 18:07:06 +00:00
Tannin dbbd0c4eec usvfs log is now written to a persistent file (no log rotation yet though) 2015-11-19 19:10:18 +01:00
Tannin 4ff751fb7e some fixes/disabled code required since hook.dll is gone 2015-11-19 19:09:34 +01:00
Tannin d8d81ee06f fix/workaround for a problem where Qt thinks it's not connected to the net 2015-11-19 19:07:23 +01:00
Tannin a4b69c9ed8 added fallout 4 support 2015-11-19 19:05:50 +01:00
Thomas Tanner 7f9af7f93e Merge remote-tracking branch 'refs/remotes/TanninOne/master' 2015-11-18 20:51:52 +00:00
Thomas Tanner 9ac845779a Fixup 2015-11-18 20:51:27 +00:00
Tannin 053ebc898f build system fix 2015-11-17 20:01:44 +01:00
Tannin 0bd38e3f67 Merge branch 'master' into new_vfs_library
Conflicts:
	src/CMakeLists.txt
2015-11-17 19:12:53 +01:00
Tannin 7f4f4cafea first work on interfacing with usvfs 2015-11-17 18:58:00 +01:00
Thomas Tanner d1932bfc8e Better header matching 2015-11-12 21:48:40 +00:00
Thomas Tanner a284cbf232 Yet more changes for include what you use, including a moderate hack for compiling stackdata with clang 2015-11-09 18:16:58 +00:00
Thomas Tanner fe54b6c46a More cleanups 2015-11-08 23:18:16 +00:00
Thomas Tanner d82ca00733 Separated out the include what you use mappings into separate files, more improvements 2015-11-08 09:46:30 +00:00
Thomas Tanner 1a12b1f1f6 Decided it shouldn't be an error if i can't get information about the file. 2015-11-04 21:39:14 +00:00
Thomas Tanner 184cff8a77 Add support for version dependency checks 2015-11-01 18:27:34 +00:00
Thomas Tanner f1aaf92afb Improve diagnostics if IWYU is enabled
Few small cleanups from clang
2015-10-31 19:40:33 +00:00
Thomas Tanner 8f64a1d136 Proper integraton of IWYU into the build (including massaging clang errors into the issues tab).
Note: There is at least one ug in QT that stops thing s copiling because it doesn't undertand clangs version
2015-10-25 21:07:02 +00:00
Thomas Tanner b1cfc45853 Make the IWYU generation generic 2015-10-25 08:36:30 +00:00
Thomas Tanner 76bee42dd1 umm. windows hardlinks weren't quite working as expected 2015-10-18 19:00:14 +01:00
Thomas Tanner 0f8ae51459 Added support for include-what-you-use in a very simplistic fashion to the Scons build. This isn't exactly production ready because the qt headers are a nightmarish web of interdependencies but it's useful for checking.
I've also removed a few unused include files it detected and corrected some things that upset clang in a big way.
2015-10-17 19:05:00 +01:00
Thomas Tanner dfdf80417e Merge remote-tracking branch 'refs/remotes/TanninOne/master' 2015-10-15 19:09:08 +01:00
Thomas Tanner d4754f4d3c Fix for some nexus fomods having the old version of the mod link and not the new version.
Also fixed a lot of const correctness things
2015-10-15 18:44:39 +01:00
Thomas Tanner 1cb0a49dfc Merge remote-tracking branch 'TanninOne/master' into issue/308 2015-10-15 13:34:32 +01:00
Thomas Tanner 9d88ca13b9 Added functionality to use the web page link in a fomod to supply an optional web page.
Also refactored modinfo into multiple files (as the actual types are opaque anyway) and cleaned up the headers a bit

I also changed 'visit on nexus' from the menu not to open the downloads tab because it was a little confusing
2015-10-15 13:34:01 +01:00
Thomas Tanner ca6d7c7d11 Merge branch 'master' into archive_cleanup 2015-10-12 12:54:49 +01:00
Thomas Tanner 077a58f410 Merge branch 'master' of https://github.com/TanninOne/modorganizer into archive_cleanup
# Conflicts:
#	src/installationmanager.cpp
2015-10-12 12:54:19 +01:00
Thomas Tanner 9d4b7a1df0 Merge remote-tracking branch 'TanninOne/master' into issue/324 2015-10-11 21:12:59 +01:00
Thomas Tanner 9a7b0ee2c7 Fixes for quotes in module names:
Treat the module name from Nexus as HTML and convert into plain text.
Allow ' in a module name
Also removed the ::tr1:: namespace in the regexs
2015-10-11 21:12:37 +01:00
Thomas Tanner f5c86bc22c Merge branch 'master' of https://github.com/TanninOne/modorganizer into archive_cleanup 2015-10-02 23:01:34 +01:00
Thomas Tanner 2fb4917111 Changes to go with cleaned up archive library 2015-09-27 13:29:04 +01:00
173 changed files with 11422 additions and 13233 deletions
+25
View File
@@ -0,0 +1,25 @@
# The problem
Briefly describe the issue you are experiencing (or the feature you want to see added to Mod Organizer). Tell us what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to our discord channel
# Environment
* Mod Organizer Version that exhibits the issue:
* Last Mod Organizer Verison that did not exhibit the issue (if applicable):
* Desktop OS/version used to run Mod Organizer:
# Details
If necessary, describe the problem you have been experiencing in more detail.
# Link to Mod Organizer logs
## USVFS
Create a [GIST](https://gist.github.com) which is a paste of your USVFS logs, and link them here.
Do _NOT_ paste your full USVFS logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, _always_ include the USVFS logs!
## MO Interface
Create a [GIST](https://gist.github.com) which is a paste of your mo_interface logs, and link them here.
Do _NOT_ paste your full mo_interface logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, _always_ include the mo_interface logs!
+6
View File
@@ -2,11 +2,17 @@
Thumbs.db
src/moc_*.cpp
src/ui_*.h
src/organizer_en.ts
src/*.qrc.depends
src/Modorganizer.*
src/*.bak
CMakeLists.txt.user
edit
stderr.log
stdout.log
vs_stderr.log
vs_stdout.log
build
/vsbuild
/CMakeFiles
.idea
+82
View File
@@ -0,0 +1,82 @@
[main]
host = https://www.transifex.com
[mod-organizer.organizer]
file_filter = organizer/organizer_<lang>.ts
source_file = organizer/organizer_en.ts
source_lang = en
[mod-organizer.diagnosebasic]
file_filter = plugins/diagnoseBasic/diagnoseBasic_<lang>.ts
source_file = plugins/diagnoseBasic/diagnoseBasic_en.ts
source_lang = en
[mod-organizer.bsaextractor]
file_filter = plugins/bsaExtractor/bsaExtractor_<lang>.ts
source_file = plugins/bsaExtractor/bsaExtractor_en.ts
source_lang = en
[mod-organizer.checkfnis]
file_filter = plugins/checkFNIS/checkFNIS_<lang>.ts
source_file = plugins/checkFNIS/checkFNIS_en.ts
source_lang = en
[mod-organizer.inieditor]
file_filter = plugins/iniEditor/iniEditor_<lang>.ts
source_file = plugins/iniEditor/iniEditor_en.ts
source_lang = en
[mod-organizer.installerbain]
file_filter = plugins/installerBAIN/installerBAIN_<lang>.ts
source_file = plugins/installerBAIN/installerBAIN_en.ts
source_lang = en
[mod-organizer.installerbundle]
file_filter = plugins/installerBundle/installerBundle_<lang>.ts
source_file = plugins/installerBundle/installerBundle_en.ts
source_lang = en
[mod-organizer.installerfomod]
file_filter = plugins/installerFomod/installerFomod_<lang>.ts
source_file = plugins/installerFomod/installerFomod_en.ts
source_lang = en
[mod-organizer.installermanual]
file_filter = plugins/installerManual/installerManual_<lang>.ts
source_file = plugins/installerManual/installerManual_en.ts
source_lang = en
[mod-organizer.installerncc]
file_filter = plugins/installerNCC/installerNCC_<lang>.ts
source_file = plugins/installerNCC/installerNCC_en.ts
source_lang = en
[mod-organizer.installerquick]
file_filter = plugins/installerQuick/installerQuick_<lang>.ts
source_file = plugins/installerQuick/installerQuick_en.ts
source_lang = en
[mod-organizer.nmmimport]
file_filter = plugins/NMMImport/NMMImport_<lang>.ts
source_file = plugins/NMMImport/NMMImport_en.ts
source_lang = en
[mod-organizer.previewbase]
file_filter = plugins/previewBase/previewBase_<lang>.ts
source_file = plugins/previewBase/previewBase_en.ts
source_lang = en
[mod-organizer.previewdds]
file_filter = plugins/previewDDS/previewDDS_<lang>.ts
source_file = plugins/previewDDS/previewDDS_en.ts
source_lang = en
[mod-organizer.proxypython]
file_filter = plugins/proxyPython/proxyPython_<lang>.ts
source_file = plugins/proxyPython/proxyPython_en.ts
source_lang = en
[mod-organizer.configurator]
file_filter = plugins/pyniEdit/pyniEdit_<lang>.ts
source_file = plugins/pyniEdit/pyniEdit_en.ts
source_lang = en
+3 -3
View File
@@ -2,13 +2,13 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(organizer)
SET(DEPENDENCIES_DIR CACHE PATH "")
# hint to find qt in dependencies path
LIST(APPEND CMAKE_PREFIX_PATH ${DEPENDENCIES_DIR}/qt5/lib/cmake)
LIST(APPEND CMAKE_PREFIX_PATH ${QT_ROOT}/lib/cmake)
FILE(GLOB_RECURSE BOOST_ROOT ${DEPENDENCIES_DIR}/boost*/project-config.jam)
GET_FILENAME_COMPONENT(BOOST_ROOT ${BOOST_ROOT} DIRECTORY)
SET(ZLIB_ROOT ${DEPENDENCIES_DIR}/zlib)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(src)
+203 -14
View File
@@ -37,6 +37,14 @@ def setup_config_variables():
if 'ZLIBPATH' in os.environ:
zlibpath = os.environ['ZLIBPATH']
git = 'git'
if 'GIT' in os.environ:
git = os.environ['GIT']
mercurial = 'hg'
if 'MERCURIAL' in os.environ:
hg = os.environ['HG']
vars = Variables('scons_configure.py')
vars.AddVariables(
PathVariable('BOOSTPATH', 'Set to point to your boost directory',
@@ -50,12 +58,14 @@ def setup_config_variables():
PathVariable.PathIsDir),
PathVariable('SEVENZIPPATH', 'Path to 7zip sources', sevenzippath,
PathVariable.PathIsDir),
PathVariable('ZLIBPATH', 'Path to zlib install', zlibpath,
PathVariable.PathIsDir).
PathVariable('ZLIBPATH', 'Path to zlib install', zlibpath,
PathVariable.PathIsDir),
PathVariable('ZLIBPATH', 'Path to zlib install', zlibpath,
PathVariable.PathIsDir)
PathVariable('GIT', 'Path to git executable', git,
PathVariable.PathIsFile),
PathVariable('MERCURIAL', 'Path to hg executable', mercurial,
PathVariable.PathIsFile),
PathVariable('IWYU', 'Path to include-what-you-use executable', None,
PathVariable.PathIsFile)
)
return vars
@@ -235,6 +245,157 @@ def DisableQtModules(self, *modules):
for module in modules:
self['CPPPATH'].remove(os.path.join('$QTDIR', 'include', 'QT' + module))
def setup_IWYU(env):
import SCons.Defaults
import SCons.Builder
original_shared = SCons.Defaults.SharedObjectEmitter
original_static = SCons.Defaults.StaticObjectEmitter
def DoIWYU(env, source, target):
for i in range(len(source)):
s = source[i]
dir, name = os.path.split(str(s)) # I'm sure theres a way of getting this from scons
# Don't bother looking at moc files and 7zip source
if not name.startswith('moc_') and \
not dir.startswith(env['SEVENZIPPATH']):
# Put the .iwyu in the same place as the .obj
targ = os.path.splitext(str(target[i]))[0]
env.Depends(env.IWYU(targ + '.iwyu', s), target[i])
def shared_emitter(target, source, env):
DoIWYU(env, source, target)
return original_shared(target, source, env)
def static_emitter(target, source, env):
DoIWYU(env, source, target)
return original_static(target, source, env)
SCons.Defaults.SharedObjectEmitter = shared_emitter
SCons.Defaults.StaticObjectEmitter = static_emitter
def emitter(target, source, env):
env.Depends(target, env['IWYU_MAPPING_FILE'])
env.Depends(target, env['IWYU_MASSAGE'])
return target, source
def _concat_list(prefixes, list, suffixes, env, f=lambda x: x, target=None, source=None):
""" Creates a new list from 'list' by first interpolating each element
in the list using the 'env' dictionary and then calling f on the
list, and concatenate the 'prefix' and 'suffix' LISTS onto each element of the list.
A trailing space on the last element of 'prefix' or leading space on the
first element of 'suffix' will cause them to be put into separate list
elements rather than being concatenated.
"""
if not list:
return list
l = f(SCons.PathList.PathList(list).subst_path(env, target, source))
if l is not None:
list = l
# This bit replaces current concat_ixes
result = []
def process_stringlist(s):
return [ str(env.subst(p, SCons.Subst.SUBST_RAW))
for p in Flatten([s]) if p != '' ]
# ensure that prefix and suffix are strings
prefixes = process_stringlist(prefixes)
prefix = ''
if len(prefixes) != 0:
if prefixes[-1][-1] != ' ':
prefix = prefixes.pop()
suffixes = process_stringlist(suffixes)
suffix = ''
if len(suffixes) != 0:
if suffixes[-1][0] != ' ':
suffix = suffixes.pop(0)
for x in list:
if isinstance(x, SCons.Node.FS.File):
result.append(x)
continue
x = str(x)
if x:
result.append(prefixes)
if prefix:
if x[:len(prefix)] != prefix:
x = prefix + x
result.append(x)
if suffix:
if x[-len(suffix):] != suffix:
result[-1] = result[-1] + suffix
result.append(suffixes)
return result
env['_concat_list'] = _concat_list
# Note to self: command 2>&1 | other command appears to work as I would hope
# except it eats errors
iwyu = SCons.Builder.Builder(
action=[
'$IWYU_MASSAGE $TARGET $IWYU $IWYU_FLAGS $IWYU_MAPPINGS $IWYU_COMCOM $SOURCE'
],
emitter=emitter,
suffix='.iwyu',
src_suffix='.cpp')
env.Append(BUILDERS={'IWYU': iwyu})
# Sigh - IWYU is a right bum as it doesn't recognise /I so I have to
# duplicate most of the usual stuff
env['IWYU_FLAGS'] = [
# This might turn down the output a bit. I hope
'-Xiwyu', '--transitive_includes_only',
# Seem to be needed for a windows build
'-D_MT', '-D_DLL', '-m32',
# This is something to do with clang, windows and boost headers
'-DBOOST_USE_WINDOWS_H',
# There's a lot of this, disabled for now
'-Wno-inconsistent-missing-override',
# Mark boost and Qt headers as system headers to disable a lot of noise.
# I'm sure there has to be a better way than saying 'prefix=Q'
'--system-header-prefix=Q',
'--system-header-prefix=boost/',
# Should be able to get this info from our setup really
'-fmsc-version=1800', '-D_MSC_VER=1800',
# clang and qt don't agree about these because clang says its gcc 4.2
# and QT doesn't realise it's clang
'-DQ_COMPILER_INITIALIZER_LISTS',
'-DQ_COMPILER_DECLTYPE',
'-DQ_COMPILER_VARIADIC_TEMPLATES',
]
if env['CONFIG'] == 'debug':
env['IWYU_FLAGS'] += [ '-D_DEBUG' ]
env['IWYU_DEFPREFIX'] = '-D'
env['IWYU_DEFSUFFIX'] = ''
env['IWYU_CPPDEFFLAGS'] = '${_defines(IWYU_DEFPREFIX, CPPDEFINES, IWYU_DEFSUFFIX, __env__)}'
env['IWYU_INCPREFIX'] = '-I'
env['IWYU_INCSUFFIX'] = ''
env['IWYU_CPPINCFLAGS'] = '$( ${_concat(IWYU_INCPREFIX, CPPPATH, IWYU_INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'
env['IWYU_PCH_PREFIX'] = '-include' # Amazingly this works without a space
env['IWYU_PCH_SUFFIX'] = ''
env['IWYU_PCHFILES'] = '$( ${_concat(IWYU_PCH_PREFIX, PCHSTOP, IWYU_PCH_SUFFIX, __env__, target=TARGET, source=SOURCE)} $)'
env['IWYU_COMCOM'] = '$IWYU_CPPDEFFLAGS $IWYU_CPPINCFLAGS $IWYU_PCHFILES $CCPDBFLAGS'
env['IWYU_MAPPING_PREFIX'] = ['-Xiwyu', '--mapping_file=']
env['IWYU_MAPPING_SUFFIX'] = ''
env['IWYU_MAPPINGS'] = '$( ${_concat_list(IWYU_MAPPING_PREFIX, IWYU_MAPPING_FILE, IWYU_MAPPING_SUFFIX, __env__, f=lambda l: [ str(x) for x in l], target=TARGET, source=SOURCE)} $)'
env['IWYU_MAPPING_FILE'] = [
env.File('#/modorganizer/qt5_4.imp'),
env.File('#/modorganizer/win.imp'),
env.File('#/modorganizer/mappings.imp')
]
env['IWYU_MASSAGE'] = env.File('#/modorganizer/massage_messages.py')
# Create base environment
vars = setup_config_variables()
@@ -270,16 +431,24 @@ msvs_version = int(env['MSVS_VERSION'].split('.')[0]) + 2000
if msvs_version > 2010:
msvs_version += 1
# Need more work on the qt version stuff
#build-ModOrganizer-Desktop_Qt_5_4_1_MSVC2013_OpenGL_32bit-Debug
build_dir = 'scons-ModOrganizer-QT_%s_for_MSVS%d_32bit-%s' % (
#os.path.basename(env['QTDIR']).replace('.', '_'),
'5_4_1_OpenGL',
# Read the QT version info
with open(os.path.join(env['QTDIR'], 'mkspecs', 'qconfig.pri')) as qtinfo:
for line in qtinfo:
info = re.split(r'\s*=\s*', line.rstrip())
if info[0] == 'QT_VERSION':
env[info[0]] = info[1]
elif '_VERSION' in info[0]:
env[info[0]] = int(info[1])
build_dir = 'scons-ModOrganizer-QT_%s_%sfor_MSVS%d_32bit-%s' % (
env['QT_VERSION'].replace('.', '_'),
'OpenGL_' if 'opengl' in env['QTDIR'] else '',
msvs_version,
config.title())
# Put the sconsign file somewhere sane
env.SConsignFile(os.path.join(build_dir, '.sconsign.dblite'))
env.CacheDir(os.path.join(build_dir, '.cache'))
#this doesn't seem to work
#env.VariantDir('build/$CONFIG', 'source')
@@ -351,6 +520,11 @@ else:
env.AppendUnique(CPPFLAGS = [ '/O2', '/MD' ])
env.AppendUnique(LINKFLAGS = [ '/OPT:REF', '/OPT:ICF' ])
# Set up include what you use. Add this as an extra compile step. Note it
# doesn't currently generate an output file (use the output instead!).
if 'IWYU' in env:
setup_IWYU(env)
# /OPT:REF removes unreferenced code
# for release, use /OPT:ICF (comdat folding: coalesce identical blocks of code)
@@ -365,9 +539,6 @@ qt_env = env.Clone()
if qt_env['CONFIG'] != 'debug':
qt_env.AppendUnique(CPPDEFINES = [ 'QT_NO_DEBUG' ])
# Better way of working this out
qt_env['QT_MAJOR_VERSION'] = 5 #int(os.path.basename(env['QTDIR']).split('.')[0])
qt_env.Tool('qt%d' % qt_env['QT_MAJOR_VERSION'])
# FIXME See if I can work out how to get official scons qt to work. Appears
@@ -452,6 +623,20 @@ if qt_env['QT_MAJOR_VERSION'] > 4:
]
# Finally, set up rules to install the DLLs.
# use windeployqt.exe to install all required libraries
#SET(windeploy_parameters --no-translations --no-plugins --libdir dlls --release-with-debug-info --no-compiler-runtime)
#INSTALL(
# CODE
# "EXECUTE_PROCESS(
# COMMAND
# ${qt5bin}/windeployqt.exe ModOrganizer.exe ${windeploy_parameters}
# COMMAND
# ${qt5bin}/windeployqt.exe uibase.dll ${windeploy_parameters}
# WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
# )"
#)
# this should probably be a rule though it seems to produce an awful lot of
# Stuff(TM). or a postaction
dll_path = os.path.join('$INSTALL_PATH', 'DLLs')
@@ -482,8 +667,12 @@ if 'WebKit' in libs_to_install and qt_env['QT_MAJOR_VERSION'] == 4:
if qt_env['QT_MAJOR_VERSION'] > 4:
# Guesswork a bit.
dlls_to_install += [
os.path.join(env['QTDIR'], 'bin', 'icu%s53.dll' % lib)
for lib in ('dt','in', 'uc')
os.path.join(env['QTDIR'],
'bin',
'icu%s%d%d.dll' % (lib,
qt_env['QT_MAJOR_VERSION'],
qt_env['QT_MINOR_VERSION'] - 1))
for lib in ('dt','in', 'uc')
]
platform_dlls = []
+30
View File
@@ -0,0 +1,30 @@
[
# for boost???
# These are probably correct but might need a revisit as if you look at the boost documentation pages, it
# can give you huge lists of alternate includes...
{ symbol: [ "BOOST_FOREACH", "private", "<boost/foreach.hpp>", "public" ] },
{ include: [ "@\"boost/bind/.*\"", "private", "<boost/bind.hpp>", "public" ] },
{ include: [ "@\"boost/algorithm/string/.*\"", "private", "<boost/algorithm/string.hpp>", "public" ] },
{ include: [ "@\"boost/assign/.*\"", "private", "<boost/assign.hpp>", "public" ] },
{ include: [ "@\"boost/filesystem/.*\"", "private", "<boost/filesystem.hpp>", "public" ] },
{ include: [ "@\"boost/format/.*\"", "private", "<boost/format.hpp>", "public" ] },
{ include: [ "@\"boost/function/.*\"", "private", "<boost/function.hpp>", "public" ] },
{ include: [ "@\"boost/local/.*\"", "private", "<boost/locale.hpp>", "public" ] },
{ include: [ "@\"boost/python/.*\"", "private", "<boost/python.hpp>", "public" ] },
{ include: [ "@\"boost/signals2/.*\"", "private", "<boost/signals2.hpp>", "public" ] },
{ include: [ "\"boost/smart_ptr/scoped_array.hpp\"", "private", "<boost/scoped_array.hpp>", "public" ] },
{ include: [ "\"boost/smart_ptr/shared_ptr.hpp\"", "private", "<boost/shared_ptr.hpp>", "public" ] },
# this appears to be excessive
#{ include: [ "@\"boost/thread/.*\"", "private", "<boost/thread.hpp>", "public" ] },
# And this is specific to us
{ include: [ "\"appconfig.inc\"", "private", "\"appconfig.h\"", "public" ] },
]
# Ones I don't yet know how to deal with
#include "boost/fusion/container/vector/vector10_fwd.hpp" // for fusion
#include "boost/iterator/iterator_facade.hpp" // for operator!=
#include "boost/iterator/iterator_facade.hpp"
+160
View File
@@ -0,0 +1,160 @@
from collections import defaultdict
import fileinput
import re
import subprocess
import sys
"""
source/organizer/aboutdialog.h should add these lines:
#include <QObject> // for Q_OBJECT, slots
#include <QString> // for QString
class QListWidgetItem;
class QWidget;
source/organizer/aboutdialog.h should remove these lines:
- #include <QListWidgetItem> // lines 25-25
- #include <utility> // lines 28-28
- #include <vector> // lines 27-27
- class DownloadManager; // lines 47-47
The full include-list for source/organizer/aboutdialog.h:
#include <QDialog> // for QDialog
#include <QObject> // for Q_OBJECT, slots
#include <QString> // for QString
#include <map> // for map
class QListWidgetItem;
class QWidget;
namespace Ui { class AboutDialog; } // lines 31-31
---
"""
removing = None
includes = dict()
adding = None
added = defaultdict(list)
lcadded = dict()
foundline = None
errors = False
messages = defaultdict(list)
def process_next_line(line, outfile):
""" Read a line of output/error from include-what-you use
Turn clang errors into a form QT creator recognises
Raise warnings for unneeded includes
"""
global removing
global includes
global foundline
global errors
global added
global adding
line = line.rstrip()
print >> outfile, line
if line.endswith(' should remove these lines:'):
adding = None
removing = (line.split(' '))[0]
elif line.endswith(' should add these lines:'):
removing = None
adding = (line.split(' '))[0]
elif line == '' or line.startswith(' the full include-list'):
adding = None
removing = None
elif adding:
m = re.match(r'.*class (.*);', line)
if m:
added[m.group(1)].append((adding, line))
lcadded[m.group(1).lower() + '.h'] = m.group(1)
else:
added[line].append((adding, line))
elif removing:
# Really we should stash these so that if we get a 'class xxx' in
# the add lines we can print it here. also we could do the case
# fixing.
m = re.match(r'- #include [<"](.*)[">] +// lines (.*)-', line)
if m:
foundline = m.group(2)
# Note: In this project at least we have a naming convention of
# lower case filename and upper case classname.
clname = m.group(1)
if clname not in added:
if clname in lcadded:
clname = lcadded[clname]
if clname in added:
for item in added[clname]:
if removing == item[0]:
messages[removing].append(
'%s(%s) : warning I0004: Replace include of %s'
' with forward reference %s' % (
removing, m.group(2), m.group(1), item[1]))
del added[clname]
else:
messages[removing].append(
'%s(%s) : warning I0001: Unnecessary include of %s' % (
removing, m.group(2), m.group(1)))
else:
m = re.match(r'- (.*) +// lines (.*)-', line)
if m:
messages[removing].append(
'%s(%s) : warning I0002: Unnecessary forward ref of %s' % (
removing, m.group(2), m.group(1)))
else:
print '********* I got confused **********'
elif line.startswith('In file included from'):
line = re.sub(r'^(In file included from)(.*):(\d+):',
r' \2(\3) : \1 here',
line)
# Note; QT Creator seems to be unwilling to let you double click the
# line to select the code in question if you get a string of these, not
# sure why.
elif ': note:' in line:
line = ' ' + re.sub(r':(\d+):\d+: note:', r'(\1) : note:', line)
else:
# Replace clang :line:column: type: with ms (line) : type nnnn:
line = re.sub(r':(\d+):\d+: ([^:]*):', r'(\1) : \2 I1234:', line)
if ' : error I1234:' in line:
errors = True
print line
outfile = open(sys.argv[1], 'w')
process = subprocess.Popen(sys.argv[2:],
stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
while True:
output = process.stdout.readline()
if output == '' and process.poll() is not None:
break
if output:
process_next_line(output, outfile)
# A note: We should probably do some work as we use the source code line for
# messages in include files...
if foundline is None:
foundline = '1'
for add in added:
for item in added[add]:
messages[item[0]].append(
'%s(%s) : warning I0003: Need to include %s' % (
item[0], foundline, item[1]))
for file in sorted(messages.keys(), reverse = True):
for line in messages[file]:
print line
rc = process.poll()
# The return code you get appears to be more to do with the amount of output
# generated than any real error, so instead we should error if any ': error:'
# lines are detected
if errors:
sys.exit(1)
+2478
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -20,7 +20,7 @@ Here is a complete list:
* https://github.com/TanninOne/modorganizer-lootcli
* https://github.com/TanninOne/modorganizer-helper
* https://github.com/TanninOne/modorganizer-tool_nmmimport
* https://github.com/TanninOne/modorganizer-tool_pyniedit
* https://github.com/TanninOne/modorganizer-tool_configurator
* https://github.com/TanninOne/modorganizer-tool_inieditor
* https://github.com/TanninOne/modorganizer-preview_base
* https://github.com/TanninOne/modorganizer-diagnose_basic
@@ -32,9 +32,11 @@ Here is a complete list:
* https://github.com/TanninOne/modorganizer-game_skyrim
* https://github.com/TanninOne/modorganizer-game_oblivion
* https://github.com/TanninOne/modorganizer-game_fallout3
* https://github.com/TanninOne/modorganizer-game_fallout4
* https://github.com/TanninOne/modorganizer-game_falloutnv
* https://github.com/TanninOne/modorganizer-game_gamebryo
* https://github.com/TanninOne/modorganizer-game_features
* https://github.com/TanninOne/modorganizer-check_fnis
* https://github.com/TanninOne/modorganizer-plugin_python
* https://github.com/TanninOne/modorganizer-bsa_extractor
* https://github.com/TanninOne/usvfs
+74 -44
View File
@@ -18,15 +18,12 @@ SET(organizer_SRCS
settings.cpp
selfupdater.cpp
selectiondialog.cpp
savegameinfowidgetgamebryo.cpp
savegameinfowidget.cpp
savegamegamebryo.cpp
savegame.cpp
queryoverwritedialog.cpp
profilesdialog.cpp
profile.cpp
pluginlistsortproxy.cpp
pluginlist.cpp
pluginlistview.cpp
overwriteinfodialog.cpp
nxmaccessmanager.cpp
nexusinterface.cpp
@@ -35,12 +32,19 @@ SET(organizer_SRCS
modlist.cpp
modinfodialog.cpp
modinfo.cpp
modinfobackup.cpp
modinfoforeign.cpp
modinfooverwrite.cpp
modinforegular.cpp
modinfowithconflictinfo.cpp
messagedialog.cpp
mainwindow.cpp
main.cpp
loghighlighter.cpp
logbuffer.cpp
lockeddialogbase.cpp
lockeddialog.cpp
waitingonclosedialog.cpp
loadmechanism.cpp
installationmanager.cpp
helper.cpp
@@ -61,7 +65,6 @@ SET(organizer_SRCS
moapplication.cpp
profileinputdialog.cpp
icondelegate.cpp
gameinfoimpl.cpp
csvbuilder.cpp
savetextasdialog.cpp
qtgroupingproxy.cpp
@@ -76,24 +79,21 @@ SET(organizer_SRCS
previewdialog.cpp
aboutdialog.cpp
json.cpp
safewritefile.cpp
modflagicondelegate.cpp
genericicondelegate.cpp
organizerproxy.cpp
viewmarkingscrollbar.cpp
plugincontainer.cpp
organizercore.cpp
instancemanager.cpp
usvfsconnector.cpp
eventfilter.cpp
moshortcut.cpp
shared/inject.cpp
shared/windows_error.cpp
shared/error_report.cpp
shared/directoryentry.cpp
shared/gameinfo.cpp
shared/oblivioninfo.cpp
shared/fallout3info.cpp
shared/falloutnvinfo.cpp
shared/util.cpp
shared/skyriminfo.cpp
shared/appconfig.cpp
shared/leaktrace.cpp
shared/stackdata.cpp
@@ -108,15 +108,12 @@ SET(organizer_HDRS
settings.h
selfupdater.h
selectiondialog.h
savegameinfowidgetgamebryo.h
savegameinfowidget.h
savegamegamebyro.h
savegame.h
queryoverwritedialog.h
profilesdialog.h
profile.h
pluginlistsortproxy.h
pluginlist.h
pluginlistview.h
overwriteinfodialog.h
nxmaccessmanager.h
nexusinterface.h
@@ -125,11 +122,18 @@ SET(organizer_HDRS
modlist.h
modinfodialog.h
modinfo.h
modinfobackup.h
modinfoforeign.h
modinfooverwrite.h
modinforegular.h
modinfowithconflictinfo.h
messagedialog.h
mainwindow.h
loghighlighter.h
logbuffer.h
lockeddialogbase.h
lockeddialog.h
waitingonclosedialog.h
loadmechanism.h
installationmanager.h
helper.h
@@ -150,7 +154,6 @@ SET(organizer_HDRS
moapplication.h
profileinputdialog.h
icondelegate.h
gameinfoimpl.h
csvbuilder.h
savetextasdialog.h
qtgroupingproxy.h
@@ -165,25 +168,24 @@ SET(organizer_HDRS
previewdialog.h
aboutdialog.h
json.h
safewritefile.h
modflagicondelegate.h
genericicondelegate.h
organizerproxy.h
viewmarkingscrollbar.h
plugincontainer.h
organizercore.h
ilockedwaitingforprocess.h
iuserinterface.h
instancemanager.h
usvfsconnector.h
eventfilter.h
descriptionpage.h
moshortcut.h
shared/inject.h
shared/windows_error.h
shared/error_report.h
shared/directoryentry.h
shared/gameinfo.h
shared/oblivioninfo.h
shared/fallout3info.h
shared/falloutnvinfo.h
shared/util.h
shared/skyriminfo.h
shared/appconfig.h
shared/appconfig.inc
shared/leaktrace.h
@@ -196,7 +198,6 @@ SET(organizer_UIS
simpleinstalldialog.ui
settingsdialog.ui
selectiondialog.ui
savegameinfowidget.ui
queryoverwritedialog.ui
profilesdialog.ui
overwriteinfodialog.ui
@@ -205,6 +206,7 @@ SET(organizer_UIS
messagedialog.ui
mainwindow.ui
lockeddialog.ui
waitingonclosedialog.ui
installdialog.ui
finddialog.ui
editexecutablesdialog.ui
@@ -242,19 +244,22 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
FIND_PACKAGE(Qt5Widgets REQUIRED)
FIND_PACKAGE(Qt5Declarative REQUIRED)
FIND_PACKAGE(Qt5QuickWidgets REQUIRED)
FIND_PACKAGE(Qt5Quick REQUIRED)
FIND_PACKAGE(Qt5Network REQUIRED)
FIND_PACKAGE(Qt5WinExtras REQUIRED)
FIND_PACKAGE(Qt5WebKitWidgets REQUIRED)
FIND_PACKAGE(Qt5WebEngineWidgets REQUIRED)
FIND_PACKAGE(Qt5LinguistTools)
QT5_WRAP_UI(organizer_UIHDRS ${organizer_UIS})
QT5_ADD_RESOURCES(organizer_RCCPPS ${organizer_QRCS})
QT5_CREATE_TRANSLATION(organizer_translations_qm ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/organizer_en.ts)
INCLUDE_DIRECTORIES(${Qt5Declarative_INCLUDES})
ADD_DEFINITIONS(-DQT_MESSAGELOGCONTEXT)
# Boost
SET(Boost_USE_STATIC_LIBS ON)
SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREADED ON)
SET(Boost_USE_STATIC_RUNTIME OFF)
FIND_PACKAGE(Boost REQUIRED)
@@ -275,34 +280,52 @@ SET(project_path "${default_project_path}" CACHE PATH "path to the other mo proj
SET(lib_path "${project_path}/../../install/libs")
MESSAGE(STATUS ${lib_path})
MESSAGE(STATUS ${project_path})
INCLUDE_DIRECTORIES(${project_path}/uibase/src
${project_path}/bsatk/src
${project_path}/esptk/src
${project_path}/archive/src
${project_path}/game_features/src)
${project_path}/../usvfs/include
${project_path}/game_gamebryo/src
${project_path}/game_features/src
${project_path}/githubpp/src)
INCLUDE_DIRECTORIES(shared ${ZLIB_INCLUDE_DIRS})
LINK_DIRECTORIES(${lib_path}
${project_path}/../zlib/lib)
ADD_DEFINITIONS(-D_UNICODE -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS)
EXECUTE_PROCESS(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
ADD_EXECUTABLE(ModOrganizer WIN32 ${organizer_HDRS} ${organizer_SRCS} ${organizer_UIHDRS} ${organizer_RCS} ${organizer_RCCPPS})
ADD_DEFINITIONS(-D_UNICODE -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -DBOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE -DGITID="${GIT_COMMIT_HASH}")
IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
SET(usvfs_name usvfs_x64)
ELSE()
SET(usvfs_name usvfs_x86)
ENDIF()
ADD_EXECUTABLE(ModOrganizer WIN32 ${organizer_HDRS} ${organizer_SRCS} ${organizer_UIHDRS} ${organizer_RCS} ${organizer_RCCPPS} ${organizer_translations_qm})
TARGET_LINK_LIBRARIES(ModOrganizer
Qt5::Widgets Qt5::WinExtras Qt5::WebKitWidgets
Qt5::Widgets Qt5::WinExtras Qt5::WebEngineWidgets Qt5::Quick
${Boost_LIBRARIES}
zlibstatic
uibase esptk bsatk
uibase esptk bsatk githubpp
${usvfs_name}
Dbghelp advapi32 Version Shlwapi)
SET_TARGET_PROPERTIES(ModOrganizer PROPERTIES COMPILE_FLAGS /GL)
IF (NOT "${OPTIMIZE_COMPILE_FLAGS}" STREQUAL "")
SET_TARGET_PROPERTIES(ModOrganizer PROPERTIES COMPILE_FLAGS_RELWITHDEBINFO
${OPTIMIZE_COMPILE_FLAGS})
ENDIF()
SET_TARGET_PROPERTIES(ModOrganizer PROPERTIES LINK_FLAGS_RELWITHDEBINFO
"/LTCG /INCREMENTAL:NO /LARGEADDRESSAWARE /OPT:REF /OPT:ICF")
"/LARGEADDRESSAWARE ${OPTIMIZE_LINK_FLAGS}")
QT5_USE_MODULES(ModOrganizer Widgets Declarative Network WebKitWidgets)
QT5_USE_MODULES(ModOrganizer Widgets Script Qml QuickWidgets Quick Network WebEngineWidgets)
###############
@@ -314,23 +337,30 @@ FIND_PROGRAM(WINDEPLOYQT_COMMAND windeployqt PATHS ${qt5bin} NO_DEFAULT_PATH)
INSTALL(TARGETS ModOrganizer
RUNTIME DESTINATION bin)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ModOrganizer.pdb
INSTALL(FILES $<TARGET_PDB_FILE:ModOrganizer>
DESTINATION pdb)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlls.manifest.qt5
DESTINATION bin/dlls
RENAME dlls.manifest)
# use windeployqt.exe to install all required libraries
SET(windeploy_parameters --no-translations --no-plugins --libdir dlls --release-with-debug-info --no-compiler-runtime)
SET(windeploy_parameters "--no-translations --plugindir qtplugins --libdir dlls --release-with-debug-info --no-compiler-runtime")
INSTALL(
CODE
"EXECUTE_PROCESS(
COMMAND
${qt5bin}/windeployqt.exe ModOrganizer.exe ${windeploy_parameters}
${qt5bin}/windeployqt.exe ModOrganizer.exe --webenginewidgets ${windeploy_parameters}
COMMAND
${qt5bin}/windeployqt.exe uibase.dll ${windeploy_parameters}
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
)"
)
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/platforms)
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/styles)
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/dlls/imageformats)
file(RENAME ${CMAKE_INSTALL_PREFIX}/bin/qtplugins/platforms ${CMAKE_INSTALL_PREFIX}/bin/platforms)
file(RENAME ${CMAKE_INSTALL_PREFIX}/bin/qtplugins/styles ${CMAKE_INSTALL_PREFIX}/bin/styles)
file(RENAME ${CMAKE_INSTALL_PREFIX}/bin/qtplugins/imageformats ${CMAKE_INSTALL_PREFIX}/bin/dlls/imageformats)
file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/bin/qtplugins)"
)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/stylesheets
+14 -4
View File
@@ -67,7 +67,6 @@ env.Uic(env.Glob('*.ui'))
env.RequireLibraries('uibase', 'shared', 'bsatk', 'esptk')
env.AppendUnique(LIBS = [
'shell32',
'user32',
@@ -96,6 +95,12 @@ env['CPPPATH'] += [
'${BOOSTPATH}',
]
#########################FUDGE###############################
env['CPPPATH'] += [
'../plugins/gameGamebryo',
]
#############################################################
env.AppendUnique(CPPDEFINES = [
'_UNICODE',
'_CRT_SECURE_NO_WARNINGS',
@@ -105,7 +110,11 @@ env.AppendUnique(CPPDEFINES = [
'QT_MESSAGELOGCONTEXT'
])
env.AppendUnique(CPPFLAGS = [ '-wd4100', '-wd4127', '-wd4512', '-wd4189' ])
# Boost produces very long names with msvc truncates. Doesn't seem to cause
# problems.
# Also note to remove the -wd4100 I hacked the boost headers (tagged_argument.hpp)
# appropriately.
env.AppendUnique(CPPFLAGS = [ '-wd4503' ])
env.AppendUnique(LINKFLAGS = [
'/SUBSYSTEM:WINDOWS',
@@ -114,8 +123,9 @@ env.AppendUnique(LINKFLAGS = [
# modeltest is optional and it doesn't compile anyway...
cpp_files = [
x for x in Glob('*.cpp')
if x.name != 'modeltest.cpp' and x.name != 'aboutdialog.cpp'
x for x in env.Glob('*.cpp', source = True)
if x.name != 'modeltest.cpp' and x.name != 'aboutdialog.cpp' and \
not x.name.startswith('moc_') # I think this is a strange bug
]
about_env = env.Clone()
+12 -1
View File
@@ -22,6 +22,14 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "ui_aboutdialog.h"
#include <utility.h>
#include <QApplication>
#include <QLabel>
#include <QListWidget>
#include <QListWidgetItem>
#include <QTextBrowser>
#include <QVariant>
#include <Qt>
AboutDialog::AboutDialog(const QString &version, QWidget *parent)
: QDialog(parent)
@@ -46,10 +54,13 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent)
addLicense("RRZE Icon Set", LICENSE_CCBY3);
addLicense("Icons by Lorc, Delapouite and sbed available on http://game-icons.net", LICENSE_CCBY3);
addLicense("Castle Core", LICENSE_APACHE2);
addLicense("LOOT", LICENSE_GPL3);
ui->nameLabel->setText(QString("<span style=\"font-size:12pt; font-weight:600;\">%1 %2</span>").arg(ui->nameLabel->text()).arg(version));
#ifdef HGID
#if defined(HGID)
ui->revisionLabel->setText(ui->revisionLabel->text() + " " + HGID);
#elif defined(GITID)
ui->revisionLabel->setText(ui->revisionLabel->text() + " " + GITID);
#else
ui->revisionLabel->setText(ui->revisionLabel->text() + " unknown");
#endif
+4 -3
View File
@@ -22,10 +22,11 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#define ABOUTDIALOG_H
#include <QDialog>
#include <QListWidgetItem>
class QListWidgetItem;
#include <QObject>
#include <QString>
#include <map>
#include <vector>
#include <utility>
namespace Ui {
class AboutDialog;
+91 -8
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>508</width>
<height>335</height>
<width>604</width>
<height>369</height>
</rect>
</property>
<property name="windowTitle">
@@ -18,13 +18,50 @@
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="iconLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>250</width>
<height>250</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>250</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="resources.qrc">:/MO/gui/mo_icon.ico</pixmap>
<pixmap resource="resources.qrc">:/MO/gui/splash</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
@@ -83,7 +120,7 @@
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string notr="true">Copyright 2011-2015 Sebastian Herbord</string>
<string notr="true">Copyright 2011-2016 Sebastian Herbord</string>
</property>
</widget>
</item>
@@ -114,11 +151,47 @@
</widget>
<widget class="QWidget" name="credits">
<attribute name="title">
<string>Credits</string>
<string>Thanks</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Current Maintainers</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QListWidget" name="listWidget_2">
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
<item>
<property name="text">
<string notr="true">LePresidente</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">Silarn</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">erasmux</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">Diana</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Translators</string>
</property>
@@ -200,9 +273,9 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Others</string>
<string>Other Supporter</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
@@ -210,6 +283,11 @@
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
<item>
<property name="text">
<string notr="true">Al12 (Discord) </string>
</property>
</item>
<item>
<property name="text">
<string notr="true">blacksol</string>
@@ -265,6 +343,11 @@
<string notr="true">thosrtanner</string>
</property>
</item>
<item>
<property name="text">
<string>ogrotten</string>
</property>
</item>
</widget>
</item>
</layout>
+13 -14
View File
@@ -21,37 +21,36 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "ui_activatemodsdialog.h"
#include <QComboBox>
#include <QHeaderView>
#include <QLabel>
#include <QString>
#include <QTableWidget>
ActivateModsDialog::ActivateModsDialog(const std::map<QString, std::vector<QString> > &missingPlugins, QWidget *parent)
#include <QtGlobal>
ActivateModsDialog::ActivateModsDialog(SaveGameInfo::MissingAssets const &missingAssets, QWidget *parent)
: TutorableDialog("ActivateMods", parent), ui(new Ui::ActivateModsDialog)
{
ui->setupUi(this);
QTableWidget *modsTable = findChild<QTableWidget*>("modsTable");
QHeaderView *headerView = modsTable->horizontalHeader();
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
headerView->setSectionResizeMode(0, QHeaderView::Stretch);
headerView->setSectionResizeMode(1, QHeaderView::Interactive);
#else
headerView->setResizeMode(0, QHeaderView::Stretch);
headerView->setResizeMode(1, QHeaderView::Interactive);
#endif
int row = 0;
modsTable->setRowCount(missingPlugins.size());
modsTable->setRowCount(missingAssets.size());
for (std::map<QString, std::vector<QString> >::const_iterator espIter = missingPlugins.begin();
espIter != missingPlugins.end(); ++espIter, ++row) {
modsTable->setCellWidget(row, 0, new QLabel(espIter->first));
if (espIter->second.size() == 0) {
for (SaveGameInfo::MissingAssets::const_iterator espIter = missingAssets.begin();
espIter != missingAssets.end(); ++espIter, ++row) {
modsTable->setCellWidget(row, 0, new QLabel(espIter.key()));
if (espIter->size() == 0) {
modsTable->setCellWidget(row, 1, new QLabel(tr("not found")));
} else {
QComboBox* combo = new QComboBox();
for (std::vector<QString>::const_iterator modIter = espIter->second.begin();
modIter != espIter->second.end(); ++modIter) {
combo->addItem(*modIter);
for (QString const &mod : espIter.value()) {
combo->addItem(mod);
}
modsTable->setCellWidget(row, 1, combo);
}
+8 -2
View File
@@ -20,8 +20,14 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#ifndef ACTIVATEMODSDIALOG_H
#define ACTIVATEMODSDIALOG_H
#include "savegameinfo.h"
#include "tutorabledialog.h"
#include <map>
#include <QObject>
class QString;
class QWidget;
#include <set>
namespace Ui {
@@ -42,7 +48,7 @@ public:
* @param missingPlugins a map containing missing plugins that need to be activated
* @param parent ... Defaults to 0.
**/
explicit ActivateModsDialog(const std::map<QString, std::vector<QString> > &missingPlugins, QWidget *parent = 0);
explicit ActivateModsDialog(SaveGameInfo::MissingAssets const &missingAssets, QWidget *parent = 0);
~ActivateModsDialog();
/**
+2 -2
View File
@@ -17,14 +17,14 @@
<item>
<widget class="QTableWidget" name="modsTable">
<property name="toolTip">
<string>This is a list of esps and esms that were active when the save game was created.</string>
<string>This is a list of esps, esms, and esls that were active when the save game was created.</string>
</property>
<property name="whatsThis">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;This is a list of esps and esms that were active when the save game was created.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;This is a list of esps, esms, and esls that were active when the save game was created.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;For each esp, the right column contains the mod (or mods) that can be enabled to make the missing esps/esms available.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;If you hit Ok, all the mods selected in the right columns and all missing esps that have become available will be activated.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+1 -3
View File
@@ -21,8 +21,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QRegExp>
#include <map>
#include <algorithm>
#include <boost/assign.hpp>
namespace BBCode {
@@ -80,7 +78,7 @@ public:
if (tagName == "color") {
QString color = tagIter->second.first.cap(1);
QString content = tagIter->second.first.cap(2);
if (color.at(0) == "#") {
if (color.at(0) == '#') {
return temp.replace(tagIter->second.first, QString("<font style=\"color: %1;\">%2</font>").arg(color, content));
} else {
auto colIter = m_ColorMap.find(color.toLower());
+18 -20
View File
@@ -18,25 +18,23 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
#include "browserdialog.h"
#include "ui_browserdialog.h"
#include "browserview.h"
#include "messagedialog.h"
#include "report.h"
#include "persistentcookiejar.h"
#include "json.h"
#include <utility.h>
#include <gameinfo.h>
#include "settings.h"
#include <QWebEngineSettings>
#include <QNetworkCookieJar>
#include <QNetworkCookie>
#include <QMenu>
#include <QInputDialog>
#include <QWebHistory>
#include <QWebEngineHistory>
#include <QDir>
#include <QWebFrame>
#include <QDesktopWidget>
#include <QKeyEvent>
@@ -79,8 +77,8 @@ void BrowserDialog::closeEvent(QCloseEvent *event)
void BrowserDialog::initTab(BrowserView *newView)
{
newView->page()->setNetworkAccessManager(m_AccessManager);
newView->page()->setForwardUnsupportedContent(true);
//newView->page()->setNetworkAccessManager(m_AccessManager);
//newView->page()->setForwardUnsupportedContent(true);
connect(newView, SIGNAL(loadProgress(int)), this, SLOT(progress(int)));
connect(newView, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged(QString)));
@@ -88,14 +86,14 @@ void BrowserDialog::initTab(BrowserView *newView)
connect(newView, SIGNAL(startFind()), this, SLOT(startSearch()));
connect(newView, SIGNAL(urlChanged(QUrl)), this, SLOT(urlChanged(QUrl)));
connect(newView, SIGNAL(openUrlInNewTab(QUrl)), this, SLOT(openInNewTab(QUrl)));
connect(newView->page(), SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
connect(newView->page(), SIGNAL(unsupportedContent(QNetworkReply*)), this, SLOT(unsupportedContent(QNetworkReply*)));
connect(newView, SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
connect(newView, SIGNAL(unsupportedContent(QNetworkReply*)), this, SLOT(unsupportedContent(QNetworkReply*)));
ui->backBtn->setEnabled(false);
ui->fwdBtn->setEnabled(false);
m_Tabs->addTab(newView, tr("new"));
newView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
newView->settings()->setAttribute(QWebSettings::AutoLoadImages, true);
newView->settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);
newView->settings()->setAttribute(QWebEngineSettings::AutoLoadImages, true);
}
@@ -135,10 +133,10 @@ void BrowserDialog::openUrl(const QUrl &url)
void BrowserDialog::maximizeWidth()
{
int viewportWidth = getCurrentView()->page()->viewportSize().width();
int viewportWidth = getCurrentView()->page()->contentsSize ().width();
int frameWidth = width() - viewportWidth;
int contentWidth = getCurrentView()->page()->mainFrame()->contentsSize().width();
int contentWidth = getCurrentView()->page()->contentsSize().width();
QDesktopWidget screen;
int currentScreen = screen.screenNumber(this);
@@ -192,7 +190,7 @@ QString BrowserDialog::guessFileName(const QString &url)
void BrowserDialog::unsupportedContent(QNetworkReply *reply)
{
try {
QWebPage *page = qobject_cast<QWebPage*>(sender());
QWebEnginePage *page = qobject_cast<QWebEnginePage*>(sender());
if (page == nullptr) {
qCritical("sender not a page");
return;
@@ -254,10 +252,10 @@ void BrowserDialog::startSearch()
void BrowserDialog::on_searchEdit_returnPressed()
{
BrowserView *currentView = getCurrentView();
if (currentView != nullptr) {
currentView->findText(ui->searchEdit->text(), QWebPage::FindWrapsAroundDocument);
}
// BrowserView *currentView = getCurrentView();
// if (currentView != nullptr) {
// currentView->findText(ui->searchEdit->text(), QWebEnginePage::FindWrapsAroundDocument);
// }
}
void BrowserDialog::on_refreshBtn_clicked()
@@ -276,7 +274,7 @@ void BrowserDialog::on_browserTabWidget_currentChanged(int index)
void BrowserDialog::on_urlEdit_returnPressed()
{
QWebView *currentView = getCurrentView();
QWebEngineView *currentView = getCurrentView();
if (currentView != nullptr) {
currentView->setUrl(QUrl(ui->urlEdit->text()));
}
+1 -1
View File
@@ -24,7 +24,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QTimer>
#include <QWebView>
#include <QWebEngineView>
#include <QQueue>
#include <QTabWidget>
#include <QAtomicInt>

Some files were not shown because too many files have changed in this diff Show More