2014-06-02 04:19:53 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<class>ExternalResourcesPage</class>
|
|
|
|
<widget class="QMainWindow" name="ExternalResourcesPage">
|
2014-06-02 04:19:53 +05:30
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2019-07-16 05:00:53 +05:30
|
|
|
<width>1042</width>
|
|
|
|
<height>501</height>
|
2014-06-02 04:19:53 +05:30
|
|
|
</rect>
|
|
|
|
</property>
|
2019-07-16 05:00:53 +05:30
|
|
|
<widget class="QWidget" name="centralwidget">
|
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item row="4" column="1" colspan="3">
|
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
|
|
<item row="0" column="1">
|
2022-11-13 03:53:57 +05:30
|
|
|
<widget class="QLineEdit" name="filterEdit"/>
|
2019-07-16 05:00:53 +05:30
|
|
|
</item>
|
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QLabel" name="filterLabel">
|
|
|
|
<property name="text">
|
|
|
|
<string>Filter:</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
<item row="2" column="1" colspan="3">
|
2022-08-10 23:18:34 +05:30
|
|
|
<widget class="InfoFrame" name="frame">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="1" colspan="3">
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<widget class="ModListView" name="treeView">
|
2016-08-05 01:24:25 +05:30
|
|
|
<property name="sizePolicy">
|
2019-07-16 05:00:53 +05:30
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
2016-08-05 01:24:25 +05:30
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="acceptDrops">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="dragDropMode">
|
|
|
|
<enum>QAbstractItemView::DropOnly</enum>
|
|
|
|
</property>
|
2014-07-21 03:40:13 +05:30
|
|
|
</widget>
|
2019-07-16 05:00:53 +05:30
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
2019-07-23 04:18:14 +05:30
|
|
|
<widget class="WideBar" name="actionsToolbar">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="windowTitle">
|
|
|
|
<string>Actions</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolButtonStyle">
|
|
|
|
<enum>Qt::ToolButtonTextOnly</enum>
|
|
|
|
</property>
|
|
|
|
<attribute name="toolBarArea">
|
|
|
|
<enum>RightToolBarArea</enum>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="toolBarBreak">
|
|
|
|
<bool>false</bool>
|
|
|
|
</attribute>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<addaction name="actionAddItem"/>
|
2019-08-05 04:14:56 +05:30
|
|
|
<addaction name="separator"/>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<addaction name="actionRemoveItem"/>
|
|
|
|
<addaction name="actionEnableItem"/>
|
|
|
|
<addaction name="actionDisableItem"/>
|
|
|
|
<addaction name="actionViewConfigs"/>
|
|
|
|
<addaction name="actionViewFolder"/>
|
2019-07-16 05:00:53 +05:30
|
|
|
</widget>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionAddItem">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>&Add</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
2022-03-03 18:21:46 +05:30
|
|
|
<string>Add</string>
|
2022-03-03 09:40:10 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionRemoveItem">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>&Remove</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<string>Remove selected item</string>
|
2019-07-16 05:00:53 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionEnableItem">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>&Enable</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<string>Enable selected item</string>
|
2019-07-16 05:00:53 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionDisableItem">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>&Disable</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<string>Disable selected item</string>
|
2019-07-16 05:00:53 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionViewConfigs">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>View &Configs</string>
|
2019-07-16 05:00:53 +05:30
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Open the 'config' folder in the system file manager.</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<action name="actionViewFolder">
|
2019-07-16 05:00:53 +05:30
|
|
|
<property name="text">
|
2019-08-05 04:14:56 +05:30
|
|
|
<string>View &Folder</string>
|
2019-07-16 05:00:53 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
2022-05-30 20:06:30 +05:30
|
|
|
<action name="actionDownloadItem">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>&Download</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Download a new resource</string>
|
|
|
|
</property>
|
|
|
|
</action>
|
2022-06-05 05:48:51 +05:30
|
|
|
<action name="actionUpdateItem">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Check for &Updates</string>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
2022-07-19 21:33:45 +05:30
|
|
|
<string>Try to check or update all selected resources (all resources if none are selected)</string>
|
2022-06-05 05:48:51 +05:30
|
|
|
</property>
|
|
|
|
</action>
|
2014-06-02 04:19:53 +05:30
|
|
|
</widget>
|
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
|
|
|
<class>ModListView</class>
|
|
|
|
<extends>QTreeView</extends>
|
2021-11-22 08:25:16 +05:30
|
|
|
<header>ui/widgets/ModListView.h</header>
|
2014-06-02 04:19:53 +05:30
|
|
|
</customwidget>
|
|
|
|
<customwidget>
|
2022-08-10 23:18:34 +05:30
|
|
|
<class>InfoFrame</class>
|
2014-06-02 04:19:53 +05:30
|
|
|
<extends>QFrame</extends>
|
2022-08-10 23:18:34 +05:30
|
|
|
<header>ui/widgets/InfoFrame.h</header>
|
2014-06-02 04:19:53 +05:30
|
|
|
<container>1</container>
|
|
|
|
</customwidget>
|
2019-07-23 04:18:14 +05:30
|
|
|
<customwidget>
|
|
|
|
<class>WideBar</class>
|
|
|
|
<extends>QToolBar</extends>
|
2021-11-22 08:25:16 +05:30
|
|
|
<header>ui/widgets/WideBar.h</header>
|
2019-07-23 04:18:14 +05:30
|
|
|
</customwidget>
|
2014-06-02 04:19:53 +05:30
|
|
|
</customwidgets>
|
2019-08-05 04:14:56 +05:30
|
|
|
<tabstops>
|
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 :/
2022-03-12 02:33:21 +05:30
|
|
|
<tabstop>treeView</tabstop>
|
2019-08-05 04:14:56 +05:30
|
|
|
<tabstop>filterEdit</tabstop>
|
|
|
|
</tabstops>
|
2014-06-02 04:19:53 +05:30
|
|
|
<resources/>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|