summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* performance optimizations: text/ini tabs and advanced conflict list use ↵isanae2019-07-021-1/+19
| | | | | | views and custom models call update() after feedFiles() to allow some tabs to have post-processing after feedFiles()
* don't update invisible tabsisanae2019-07-021-18/+39
| | | | | update tabs when origin changes change setting name because 2.2.0 can't handle the text list
* changed "tab index" to "tab id", this was confusing the order in the widget ↵isanae2019-07-021-67/+137
| | | | | | and the id from the enum fixed reordering
* grey out tab names when they have no dataisanae2019-07-021-127/+231
| | | | | | remove tabs if they're can't handle the selected mod next/previous now load mods in place without reopening the dialog tab reordering is broken
* added missing iconsisanae2019-07-021-117/+56
| | | | | now passing tab index to allow enabling/disabling depending on mod type modinfodialog cleanup
* finished splitting filetree tabisanae2019-07-021-16/+16
| | | | forward delete shortcut to tabs
* splitting filetree tabisanae2019-07-021-402/+7
| | | | moved mod info dialog classes to a sub filter
* split notes tabisanae2019-07-021-13/+1
| | | | added new HTMLEditor that triggers an editingFinished() on focus our, used by notes tab
* split nexus tabisanae2019-07-021-217/+16
| | | | | | added OrganizerCore::loggedInAction() to execute a function only when logged in, replaces a bunch of copy/pasted stuff in mainwindow moved common variables in ModInfoDialogTab moved DescriptionPage to modinfodialognexus.h, renamed to NexusTabWebpage, deleted now empty descriptionpage.h
* split categories tabisanae2019-07-021-83/+5
|
* split ModInfoDialogTabisanae2019-07-021-36/+0
|
* pass parent widget to tabs for dialogsisanae2019-07-021-372/+72
| | | | finished moving over conflict tab to its own set of files
* 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