Tweaks to page dialog and version page.
This commit is contained in:
		| @@ -25,6 +25,18 @@ public: | ||||
| 	virtual QString id() = 0; | ||||
| 	virtual QString displayName() = 0; | ||||
| 	virtual QIcon icon() = 0; | ||||
| 	virtual bool accept() | ||||
| 	{ | ||||
| 		return true; | ||||
| 	} | ||||
| 	virtual bool reject() | ||||
| 	{ | ||||
| 		return true; | ||||
| 	} | ||||
| 	virtual bool apply() | ||||
| 	{ | ||||
| 		return true; | ||||
| 	} | ||||
| 	virtual bool shouldDisplay() | ||||
| 	{ | ||||
| 		return true; | ||||
|   | ||||
| @@ -79,6 +79,7 @@ VersionPage::VersionPage(OneSixInstance *inst, QWidget *parent) | ||||
| 		main_model->setSourceModel(m_version.get()); | ||||
| 		ui->libraryTreeView->setModel(main_model); | ||||
| 		ui->libraryTreeView->installEventFilter(this); | ||||
| 		ui->libraryTreeView->setSelectionMode(QAbstractItemView::SingleSelection); | ||||
| 		connect(ui->libraryTreeView->selectionModel(), &QItemSelectionModel::currentChanged, | ||||
| 				this, &VersionPage::versionCurrent); | ||||
| 		updateVersionControls(); | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>400</width> | ||||
|     <height>326</height> | ||||
|     <height>475</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
| @@ -51,6 +51,16 @@ | ||||
|    </item> | ||||
|    <item> | ||||
|     <layout class="QVBoxLayout" name="verticalLayout_4"> | ||||
|      <item> | ||||
|       <widget class="QLabel" name="label"> | ||||
|        <property name="text"> | ||||
|         <string>Selection</string> | ||||
|        </property> | ||||
|        <property name="alignment"> | ||||
|         <set>Qt::AlignCenter</set> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="changeMCVersionBtn"> | ||||
|        <property name="text"> | ||||
| @@ -58,6 +68,46 @@ | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="moveLibraryUpBtn"> | ||||
|        <property name="toolTip"> | ||||
|         <string>This isn't implemented yet.</string> | ||||
|        </property> | ||||
|        <property name="text"> | ||||
|         <string>Move up</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="moveLibraryDownBtn"> | ||||
|        <property name="toolTip"> | ||||
|         <string>This isn't implemented yet.</string> | ||||
|        </property> | ||||
|        <property name="text"> | ||||
|         <string>Move down</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="removeLibraryBtn"> | ||||
|        <property name="text"> | ||||
|         <string>Remove</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="LineSeparator" name="separator" native="true"/> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QLabel" name="label_2"> | ||||
|        <property name="text"> | ||||
|         <string>Install</string> | ||||
|        </property> | ||||
|        <property name="alignment"> | ||||
|         <set>Qt::AlignCenter</set> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="forgeBtn"> | ||||
|        <property name="toolTip"> | ||||
| @@ -83,50 +133,15 @@ | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="Line" name="line"> | ||||
|        <property name="orientation"> | ||||
|         <enum>Qt::Horizontal</enum> | ||||
|        </property> | ||||
|       </widget> | ||||
|       <widget class="LineSeparator" name="widget" native="true"/> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="reloadLibrariesBtn"> | ||||
|       <widget class="QLabel" name="label_5"> | ||||
|        <property name="text"> | ||||
|         <string>Reload</string> | ||||
|         <string>List</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="removeLibraryBtn"> | ||||
|        <property name="text"> | ||||
|         <string>Remove</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="Line" name="line_2"> | ||||
|        <property name="orientation"> | ||||
|         <enum>Qt::Horizontal</enum> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="moveLibraryUpBtn"> | ||||
|        <property name="toolTip"> | ||||
|         <string>This isn't implemented yet.</string> | ||||
|        </property> | ||||
|        <property name="text"> | ||||
|         <string>Move up</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="moveLibraryDownBtn"> | ||||
|        <property name="toolTip"> | ||||
|         <string>This isn't implemented yet.</string> | ||||
|        </property> | ||||
|        <property name="text"> | ||||
|         <string>Move down</string> | ||||
|        <property name="alignment"> | ||||
|         <set>Qt::AlignCenter</set> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
| @@ -140,6 +155,13 @@ | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <widget class="QPushButton" name="reloadLibrariesBtn"> | ||||
|        <property name="text"> | ||||
|         <string>Reload</string> | ||||
|        </property> | ||||
|       </widget> | ||||
|      </item> | ||||
|      <item> | ||||
|       <spacer name="verticalSpacer_7"> | ||||
|        <property name="orientation"> | ||||
| @@ -163,6 +185,12 @@ | ||||
|    <extends>QTreeView</extends> | ||||
|    <header>gui/widgets/ModListView.h</header> | ||||
|   </customwidget> | ||||
|   <customwidget> | ||||
|    <class>LineSeparator</class> | ||||
|    <extends>QWidget</extends> | ||||
|    <header>gui/widgets/LineSeparator.h</header> | ||||
|    <container>1</container> | ||||
|   </customwidget> | ||||
|  </customwidgets> | ||||
|  <resources/> | ||||
|  <connections/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user