From d394235ee0040b061504ae50daaea10d3c80500c Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 11 Mar 2022 18:03:21 -0300 Subject: refactor: Create a more clear hierarchy for some instance pages Previously, the Shaders, Texture packs and Resource packs tabs had as parent the ModFolderPage, making it so that making changes only to the Mods page would require checking the id of the page for the correct one. This was hackish and error-prone. Now, those pages all inherit from a single class, ExternalResourcesPage, that handles the basic behaviour of all of them, while allowing for individual modification in code. This is still not a clear separation, since internally, all those resources are derived from Mods, so for now there's still some awkward common code :/ --- .../ui/pages/instance/ExternalResourcesPage.ui | 164 +++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 launcher/ui/pages/instance/ExternalResourcesPage.ui (limited to 'launcher/ui/pages/instance/ExternalResourcesPage.ui') diff --git a/launcher/ui/pages/instance/ExternalResourcesPage.ui b/launcher/ui/pages/instance/ExternalResourcesPage.ui new file mode 100644 index 00000000..3982b6ee --- /dev/null +++ b/launcher/ui/pages/instance/ExternalResourcesPage.ui @@ -0,0 +1,164 @@ + + + ExternalResourcesPage + + + + 0 + 0 + 1042 + 501 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + true + + + + + + + Filter: + + + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + true + + + QAbstractItemView::DropOnly + + + + + + + + Actions + + + Qt::ToolButtonTextOnly + + + RightToolBarArea + + + false + + + + + + + + + + + + &Add + + + Add + + + + + &Remove + + + Remove selected item + + + + + &Enable + + + Enable selected item + + + + + &Disable + + + Disable selected item + + + + + View &Configs + + + Open the 'config' folder in the system file manager. + + + + + View &Folder + + + + + + ModListView + QTreeView +
ui/widgets/ModListView.h
+
+ + MCModInfoFrame + QFrame +
ui/widgets/MCModInfoFrame.h
+ 1 +
+ + WideBar + QToolBar +
ui/widgets/WideBar.h
+
+
+ + treeView + filterEdit + + + +
-- cgit