summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* in the process of moving stuff to modinfodialogconflicts.h/cppisanae2019-07-021-461/+19
|
* changed layout of esps tab, moved to modinfodialogesps.cpp/hisanae2019-07-021-94/+4
| | | | slightly offset next/previous images so they look better when shown next to each other vertically
* split images tab stuff in ImagesTabisanae2019-07-021-40/+11
| | | | text editor: fixed modified flag not being set to false when loading an empty file
* split ini tab stuff to IniFilesTabisanae2019-07-021-88/+2
| | | | refactored TextFilesTab into GenericFiles so it can be used by IniFilesTab
* removed unused ini tweaks widgetsisanae2019-07-021-89/+1
| | | | splitter in ini tab
* split text file tab into its own classisanae2019-07-021-59/+41
|
* split ExpanderWidget into its own set of filesisanae2019-07-021-54/+0
|
* line numbers, which required inheriting from QPlainTextEdit insteadisanae2019-07-021-6/+6
|
* TextEditor now has a dynamic toolbarisanae2019-07-021-31/+0
|
* added initial toolbar, splitterisanae2019-07-021-36/+41
| | | | moved most of the text editor stuff to a new TextEditor class
* moved filerenamer to its own .cpp/.h pairisanae2019-07-021-187/+0
|
* clean up the list widgets and thumnails as well as recheck the tabs when ↵isanae2019-07-021-8/+23
| | | | refreshing after a change
* Correcting minor spelling mistakes in the UI + add contributorMatte A2019-06-231-4/+4
|
* natural sort for conflict itemsisanae2019-06-041-0/+26
|
* refactored conflict list items:isanae2019-06-041-174/+178
| | | | | | - use new ConflictItem class derived from QTreeWidgetItem - that class has all the various conflict*() member functions that were previously in the dialog - moved some of the can*() member functions out to namespace level so they can be used by ConflictItem, no real need to have them as members anyway
* refresh files in the constructor because the ui is used to determine the tab ↵isanae2019-05-311-1/+8
| | | | states
* conflict lists:isanae2019-05-311-40/+131
| | | | | | - the file index is now stored in the row data - the alternate origins are now added to the context menu in a "go to" submenu - context menu items are now visually disabled instead of omitted from the menu
* conflict listsisanae2019-05-311-2/+34
| | | | | | - sorting on advanced list - save state of all four lists - call refreshLists() just before showing because the state has to be loaded first, which happens after the ctor
* don't show open menu item if the files are from an archiveisanae2019-05-311-1/+12
|
* replaced all the manual UserRole stuff with a few constants and helper functionsisanae2019-05-311-61/+72
| | | | | | | setConflictItem() is now used by all conflict lists to setup the data (filename, archive, etc.) and visuals (italic for archives) merged openDataFile() and previewDataFile() into their caller as they weren't used anywhere else previewDataFile() used to do a fromNativeSeparators() before previewing, moved that to previewFileWithAlternatives() instead brought overwrittenTree double click in line with overwriteTree, there's no difference between apply() and close() because there's only a close button
* restore conflicts selected tab and checkboxesisanae2019-05-311-5/+23
|
* FilterWidget takes a predicate to match stringsisanae2019-05-311-4/+9
| | | | copied the logic from modlistsortproxy so the basic boolean syntax in filters works
* removed buddy from FilterWidget, the intention was to hook a ctrl+f shortcut ↵isanae2019-05-311-0/+7
| | | | | | | to it, but that won't work as a general solution, it would need to be on tabs for the modinfo dialog added a simple matches() that just searches for the string FilterWidget can cleanly unhook itself
* added new filterwidget, will eventually get the operators functionality from ↵isanae2019-05-311-0/+2
| | | | the mod/pluging lists
* elide first two columns of the advanced listisanae2019-05-311-0/+25
|
* comments, switched some of the ifs for clarityisanae2019-05-311-5/+33
|
* added show all/nearest mods radio buttonsisanae2019-05-311-10/+38
|
* allow for refreshing individual conflict tabsisanae2019-05-311-27/+105
| | | | advanced conflict list now has items
* added AlternativesVector typedef to FileEntryisanae2019-05-311-52/+78
| | | | split item creation from refreshConflictLists()
* changed iterator loops to ranged forisanae2019-05-311-14/+28
| | | | | added some autos here and there added some whitespace
* split refreshLists() in twoisanae2019-05-311-10/+18
|
* reverted change that showed the conflicted file first in the preview dialogisanae2019-05-281-3/+1
| | | | I'm not sure how I got to the conclusion that this was a better idea: preview was always an option for those files, and it has always shown the winning file, so I changed some long-standing behaviour for no reason. I reverted that change, although I'm leaving the functionality in previewFileWithAlternatives() to specify the selected origin because it works and could be useful in the future
* also reversed 'hide' parameter to 'visible' for changeFiletreeVisibility()isanae2019-05-281-14/+15
|
* reversed 'hide' parameter to 'visible' for changeConflictItemsVisibility()isanae2019-05-281-11/+13
| | | | | when I pass true to it, I expect it to be visible, not "yes, this should be hidden" I had actually started this earlier and ended up in a broken, in-between state, which should be fixed now
* added selectedOrigin to previewFileWithAlternatives()isanae2019-05-281-1/+3
| | | | | this is so that an origin other than the primary can be shown first and is used from previewDataFile() in ModInfoDialog since showing a preview for a conflicting file could initially show the file from the wrong mod removed unused, uninitialized and dangerous ModInfoDialog::m_OriginID
* multiple selection for noconflict and overwritten listsisanae2019-05-271-109/+81
| | | | | | | set uniformRowHeights for all three lists for faster rendering, all items are text only all three lists use the same code for the context menu: - createConflictMenuActions() returns a struct with the QActions that are valid for the selection - showConflictMenu() plugs in the handlers and shows the menu
* changed rest of ShellExecuteW() calls to use shell::Execute(), ↵isanae2019-05-261-2/+1
| | | | shell::OpenLink() or shell::OpenFile()
* put explore and open functions in namespace shellisanae2019-05-251-81/+52
| | | | | | previewDataFile() was duplicated in both MainWindow and ModInfoDialog, moved to OrganizerCore added preview menu item to filetree better logging when shell operations fail
* reordered action variables to match the order in the context menu, added a ↵isanae2019-05-251-7/+9
| | | | few missing initializations
* ExploreFile() will select the file in explorer when the path is a fileisanae2019-05-251-1/+1
| | | | replaced more ShellExecute() calls with ExploreFile()
* a copy of getBinaryExecuteInfo() and openDataFile() was in both mainwindow ↵isanae2019-05-251-77/+2
| | | | | | and modinfodialog, it's now moved to organizercore and renamed getFileExecutionContext() and executefile() getFileExecutionContext() is also changed to return an enum instead of a 0-1-2 int
* fix crash when changing file visibility from the filetree of an installed ↵isanae2019-05-211-2/+6
| | | | but inactive mode
* documented ExpanderWidget, removed checkable stuff because the state is kept ↵isanae2019-05-201-4/+1
| | | | internally
* added const version of Settings::directInterface() for restoring statesisanae2019-05-201-22/+64
| | | | | added top-level saveState() and restoreState() to ModInfoDialog that are called from MainWindow, because it now also has to handle expander states in the conflict tab added internal opened state to expander widget instead of using widget visibility so it can be saved even after the dialog is closed
* made expander use the full widthisanae2019-05-201-2/+35
| | | | context menu for noconflict tree
* expandable sections in the conflict tabisanae2019-05-201-3/+62
|
* added third tree with non-conflicting filesisanae2019-05-201-1/+10
|
* if the number of selected items is low, check them to accurately show the ↵isanae2019-05-191-4/+52
| | | | hide/unhide items
* re-enabled unhide menu item in the conflict tree since hidden items can ↵isanae2019-05-191-5/+5
| | | | actually appear
* fixed filetree context menu for multiple selectionisanae2019-05-191-14/+54
|