mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-04 07:33:59 +00:00
Add more customizations to toolbar interface
This commit is contained in:
@@ -22,7 +22,7 @@ except AttributeError:
|
||||
class Ui_InterfaceOptionsPage(object):
|
||||
def setupUi(self, InterfaceOptionsPage):
|
||||
InterfaceOptionsPage.setObjectName(_fromUtf8("InterfaceOptionsPage"))
|
||||
InterfaceOptionsPage.resize(431, 289)
|
||||
InterfaceOptionsPage.resize(466, 500)
|
||||
self.vboxlayout = QtGui.QVBoxLayout(InterfaceOptionsPage)
|
||||
self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
|
||||
self.groupBox_2 = QtGui.QGroupBox(InterfaceOptionsPage)
|
||||
@@ -71,8 +71,49 @@ class Ui_InterfaceOptionsPage(object):
|
||||
self.horizontalLayout.addItem(spacerItem)
|
||||
self.vboxlayout1.addLayout(self.horizontalLayout)
|
||||
self.vboxlayout.addWidget(self.groupBox_2)
|
||||
spacerItem1 = QtGui.QSpacerItem(220, 61, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.vboxlayout.addItem(spacerItem1)
|
||||
self.customize_toolbar_box = QtGui.QGroupBox(InterfaceOptionsPage)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.customize_toolbar_box.sizePolicy().hasHeightForWidth())
|
||||
self.customize_toolbar_box.setSizePolicy(sizePolicy)
|
||||
self.customize_toolbar_box.setObjectName(_fromUtf8("customize_toolbar_box"))
|
||||
self.verticalLayout = QtGui.QVBoxLayout(self.customize_toolbar_box)
|
||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||
self.toolbar_layout_list = QtGui.QListWidget(self.customize_toolbar_box)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.toolbar_layout_list.sizePolicy().hasHeightForWidth())
|
||||
self.toolbar_layout_list.setSizePolicy(sizePolicy)
|
||||
self.toolbar_layout_list.setObjectName(_fromUtf8("toolbar_layout_list"))
|
||||
self.verticalLayout.addWidget(self.toolbar_layout_list)
|
||||
self.edit_button_box = QtGui.QWidget(self.customize_toolbar_box)
|
||||
self.edit_button_box.setObjectName(_fromUtf8("edit_button_box"))
|
||||
self.edit_box_layout = QtGui.QHBoxLayout(self.edit_button_box)
|
||||
self.edit_box_layout.setMargin(0)
|
||||
self.edit_box_layout.setObjectName(_fromUtf8("edit_box_layout"))
|
||||
self.add_button = QtGui.QToolButton(self.edit_button_box)
|
||||
self.add_button.setObjectName(_fromUtf8("add_button"))
|
||||
self.edit_box_layout.addWidget(self.add_button)
|
||||
self.insert_seperator_button = QtGui.QToolButton(self.edit_button_box)
|
||||
self.insert_seperator_button.setObjectName(_fromUtf8("insert_seperator_button"))
|
||||
self.edit_box_layout.addWidget(self.insert_seperator_button)
|
||||
spacerItem1 = QtGui.QSpacerItem(60, 20, QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Minimum)
|
||||
self.edit_box_layout.addItem(spacerItem1)
|
||||
self.up_button = QtGui.QToolButton(self.edit_button_box)
|
||||
self.up_button.setArrowType(QtCore.Qt.UpArrow)
|
||||
self.up_button.setObjectName(_fromUtf8("up_button"))
|
||||
self.edit_box_layout.addWidget(self.up_button)
|
||||
self.down_button = QtGui.QToolButton(self.edit_button_box)
|
||||
self.down_button.setArrowType(QtCore.Qt.DownArrow)
|
||||
self.down_button.setObjectName(_fromUtf8("down_button"))
|
||||
self.edit_box_layout.addWidget(self.down_button)
|
||||
self.remove_button = QtGui.QToolButton(self.edit_button_box)
|
||||
self.remove_button.setObjectName(_fromUtf8("remove_button"))
|
||||
self.edit_box_layout.addWidget(self.remove_button)
|
||||
self.verticalLayout.addWidget(self.edit_button_box)
|
||||
self.vboxlayout.addWidget(self.customize_toolbar_box)
|
||||
|
||||
self.retranslateUi(InterfaceOptionsPage)
|
||||
QtCore.QMetaObject.connectSlotsByName(InterfaceOptionsPage)
|
||||
@@ -87,4 +128,15 @@ class Ui_InterfaceOptionsPage(object):
|
||||
self.starting_directory.setText(_("Begin browsing in the following directory:"))
|
||||
self.starting_directory_browse.setText(_("Browse..."))
|
||||
self.label.setText(_("User interface language:"))
|
||||
self.customize_toolbar_box.setTitle(_("Customize Action Toolbar"))
|
||||
self.add_button.setToolTip(_("Add a new button to Toolbar"))
|
||||
self.add_button.setText(_("Add Action"))
|
||||
self.insert_seperator_button.setToolTip(_("Insert a seperator"))
|
||||
self.insert_seperator_button.setText(_("Add Seperator"))
|
||||
self.up_button.setToolTip(_("Move selected item up"))
|
||||
self.up_button.setText(_("..."))
|
||||
self.down_button.setToolTip(_("Move selected item down"))
|
||||
self.down_button.setText(_("..."))
|
||||
self.remove_button.setToolTip(_("Remove button from toolbar"))
|
||||
self.remove_button.setText(_("Remove"))
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>462</width>
|
||||
<width>466</width>
|
||||
<height>500</height>
|
||||
</rect>
|
||||
</property>
|
||||
@@ -115,6 +115,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="customize_toolbar_box">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Customize Action Toolbar</string>
|
||||
</property>
|
||||
@@ -150,7 +156,17 @@
|
||||
<string>Add a new button to Toolbar</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add Button</string>
|
||||
<string>Add Action</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="insert_seperator_button">
|
||||
<property name="toolTip">
|
||||
<string>Insert a seperator</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add Seperator</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -159,9 +175,12 @@
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::MinimumExpanding</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<width>60</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user