Finished moving Display Tags

This commit is contained in:
Tim Bentley 2011-02-20 20:23:33 +00:00
parent 338efdc543
commit 7e4b644f78
5 changed files with 269 additions and 402 deletions

View File

@ -29,171 +29,29 @@ from PyQt4 import QtCore, QtGui
from openlp.core.lib import translate, build_icon
from openlp.core.lib.ui import UiStrings, create_accept_reject_button_box
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_DisplayTagDialog(object):
def setupUi(self, displayTagDialog):
# displayTagDialog.setObjectName(u'displayTagDialog')
# displayTagDialog.resize(700, 500)
# displayTagDialog.setWindowIcon(
# build_icon(u':/system/system_settings.png'))
# self.settingsLayout = QtGui.QVBoxLayout(displayTagDialog)
# self.settingsLayout.setObjectName(u'settingsLayout')
# self.editGroupBox = QtGui.QGroupBox(displayTagDialog)
# self.editGroupBox.setGeometry(QtCore.QRect(10, 220, 650, 181))
# self.editGroupBox.setObjectName(u'editGroupBox')
# self.updatePushButton = QtGui.QPushButton(self.editGroupBox)
# self.updatePushButton.setGeometry(QtCore.QRect(550, 140, 71, 26))
# self.updatePushButton.setObjectName(u'updatePushButton')
# self.layoutWidget = QtGui.QWidget(self.editGroupBox)
# self.layoutWidget.setGeometry(QtCore.QRect(5, 20, 571, 114))
# self.layoutWidget.setObjectName(u'layoutWidget')
# self.formLayout = QtGui.QFormLayout(self.layoutWidget)
# self.formLayout.setObjectName(u'formLayout')
# self.descriptionLabel = QtGui.QLabel(self.layoutWidget)
# self.descriptionLabel.setAlignment(QtCore.Qt.AlignCenter)
# self.descriptionLabel.setObjectName(u'descriptionLabel')
# self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
# self.descriptionLabel)
# self.descriptionLineEdit = QtGui.QLineEdit(self.layoutWidget)
# self.descriptionLineEdit.setObjectName(u'descriptionLineEdit')
# self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
# self.descriptionLineEdit)
# self.tagLabel = QtGui.QLabel(self.layoutWidget)
# self.tagLabel.setAlignment(QtCore.Qt.AlignCenter)
# self.tagLabel.setObjectName(u'tagLabel')
# self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.tagLabel)
# self.tagLineEdit = QtGui.QLineEdit(self.layoutWidget)
# self.tagLineEdit.setMaximumSize(QtCore.QSize(50, 16777215))
# self.tagLineEdit.setMaxLength(5)
# self.tagLineEdit.setObjectName(u'tagLineEdit')
# self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
# self.tagLineEdit)
# self.startTagLabel = QtGui.QLabel(self.layoutWidget)
# self.startTagLabel.setAlignment(QtCore.Qt.AlignCenter)
# self.startTagLabel.setObjectName(u'startTagLabel')
# self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
# self.startTagLabel)
# self.startTagLineEdit = QtGui.QLineEdit(self.layoutWidget)
# self.startTagLineEdit.setObjectName(u'startTagLineEdit')
# self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
# self.startTagLineEdit)
# self.endTagLabel = QtGui.QLabel(self.layoutWidget)
# self.endTagLabel.setAlignment(QtCore.Qt.AlignCenter)
# self.endTagLabel.setObjectName(u'endTagLabel')
# self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
# self.endTagLabel)
# self.endTagLineEdit = QtGui.QLineEdit(self.layoutWidget)
# self.endTagLineEdit.setObjectName(u'endTagLineEdit')
# self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
# self.endTagLineEdit)
# self.defaultPushButton = QtGui.QPushButton(displayTagDialog)
# self.defaultPushButton.setGeometry(QtCore.QRect(430, 188, 71, 26))
# self.defaultPushButton.setObjectName(u'updatePushButton')
# self.deletePushButton = QtGui.QPushButton(displayTagDialog)
# self.deletePushButton.setGeometry(QtCore.QRect(510, 188, 71, 26))
# self.deletePushButton.setObjectName(u'deletePushButton')
# self.newPushButton = QtGui.QPushButton(displayTagDialog)
# self.newPushButton.setGeometry(QtCore.QRect(600, 188, 71, 26))
# self.newPushButton.setObjectName(u'newPushButton')
# self.tagTableWidget = QtGui.QTableWidget(displayTagDialog)
# self.tagTableWidget.setGeometry(QtCore.QRect(10, 10, 650, 171))
# self.tagTableWidget.setHorizontalScrollBarPolicy(
# QtCore.Qt.ScrollBarAlwaysOff)
# self.tagTableWidget.setEditTriggers(
# QtGui.QAbstractItemView.NoEditTriggers)
# self.tagTableWidget.setAlternatingRowColors(True)
# self.tagTableWidget.setSelectionMode(
# QtGui.QAbstractItemView.SingleSelection)
# self.tagTableWidget.setSelectionBehavior(
# QtGui.QAbstractItemView.SelectRows)
# self.tagTableWidget.setCornerButtonEnabled(False)
# self.tagTableWidget.setObjectName(u'tagTableWidget')
# self.tagTableWidget.setColumnCount(4)
# self.tagTableWidget.setRowCount(0)
# item = QtGui.QTableWidgetItem()
# self.tagTableWidget.setHorizontalHeaderItem(0, item)
# item = QtGui.QTableWidgetItem()
# self.tagTableWidget.setHorizontalHeaderItem(1, item)
# item = QtGui.QTableWidgetItem()
# self.tagTableWidget.setHorizontalHeaderItem(2, item)
# item = QtGui.QTableWidgetItem()
# self.tagTableWidget.setHorizontalHeaderItem(3, item)
#
# self.buttonBox = create_accept_reject_button_box(displayTagDialog, True)
# self.settingsLayout.addWidget(self.buttonBox)
# self.retranslateUi(displayTagDialog)
# QtCore.QMetaObject.connectSlotsByName(displayTagDialog)
displayTagDialog.setObjectName(_fromUtf8("displayTagDialog"))
displayTagDialog.resize(717, 554)
self.editGroupBox = QtGui.QGroupBox(displayTagDialog)
self.editGroupBox.setGeometry(QtCore.QRect(10, 320, 691, 181))
self.editGroupBox.setObjectName(_fromUtf8("editGroupBox"))
self.updatePushButton = QtGui.QPushButton(self.editGroupBox)
self.updatePushButton.setGeometry(QtCore.QRect(600, 140, 73, 26))
self.updatePushButton.setObjectName(_fromUtf8("updatePushButton"))
self.layoutWidget = QtGui.QWidget(self.editGroupBox)
self.layoutWidget.setGeometry(QtCore.QRect(20, 50, 571, 114))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.formLayout = QtGui.QFormLayout(self.layoutWidget)
self.formLayout.setMargin(0)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.descriptionLabel = QtGui.QLabel(self.layoutWidget)
self.descriptionLabel.setAlignment(QtCore.Qt.AlignCenter)
self.descriptionLabel.setObjectName(_fromUtf8("descriptionLabel"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.descriptionLabel)
self.descriptionLineEdit = QtGui.QLineEdit(self.layoutWidget)
self.descriptionLineEdit.setObjectName(_fromUtf8("descriptionLineEdit"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.descriptionLineEdit)
self.tagLabel = QtGui.QLabel(self.layoutWidget)
self.tagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.tagLabel.setObjectName(_fromUtf8("tagLabel"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.tagLabel)
self.tagLineEdit = QtGui.QLineEdit(self.layoutWidget)
self.tagLineEdit.setMaximumSize(QtCore.QSize(50, 16777215))
self.tagLineEdit.setMaxLength(5)
self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit"))
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.tagLineEdit)
self.startTagLabel = QtGui.QLabel(self.layoutWidget)
self.startTagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.startTagLabel.setObjectName(_fromUtf8("startTagLabel"))
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.startTagLabel)
self.startTagLineEdit = QtGui.QLineEdit(self.layoutWidget)
self.startTagLineEdit.setObjectName(_fromUtf8("startTagLineEdit"))
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.startTagLineEdit)
self.endTagLabel = QtGui.QLabel(self.layoutWidget)
self.endTagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.endTagLabel.setObjectName(_fromUtf8("endTagLabel"))
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.endTagLabel)
self.endTagLineEdit = QtGui.QLineEdit(self.layoutWidget)
self.endTagLineEdit.setObjectName(_fromUtf8("endTagLineEdit"))
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.endTagLineEdit)
self.addPushButton = QtGui.QPushButton(self.editGroupBox)
self.addPushButton.setGeometry(QtCore.QRect(600, 40, 71, 26))
self.addPushButton.setObjectName(_fromUtf8("addPushButton"))
self.newPushButton = QtGui.QPushButton(self.editGroupBox)
self.newPushButton.setGeometry(QtCore.QRect(600, 70, 71, 26))
self.newPushButton.setObjectName(_fromUtf8("newPushButton"))
self.buttonBox = QtGui.QDialogButtonBox(displayTagDialog)
self.buttonBox.setGeometry(QtCore.QRect(540, 510, 162, 26))
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.deletePushButton = QtGui.QPushButton(displayTagDialog)
self.deletePushButton.setGeometry(QtCore.QRect(630, 280, 71, 26))
self.deletePushButton.setObjectName(_fromUtf8("deletePushButton"))
self.tagTableWidget = QtGui.QTableWidget(displayTagDialog)
self.tagTableWidget.setGeometry(QtCore.QRect(10, 10, 691, 271))
self.tagTableWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.tagTableWidget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
displayTagDialog.setObjectName(u'displayTagDialog')
displayTagDialog.resize(725, 548)
self.widget = QtGui.QWidget(displayTagDialog)
self.widget.setGeometry(QtCore.QRect(10, 10, 701, 521))
self.widget.setObjectName(u'widget')
self.listdataGridLayout = QtGui.QGridLayout(self.widget)
self.listdataGridLayout.setMargin(0)
self.listdataGridLayout.setObjectName(u'listdataGridLayout')
self.tagTableWidget = QtGui.QTableWidget(self.widget)
self.tagTableWidget.setHorizontalScrollBarPolicy(
QtCore.Qt.ScrollBarAlwaysOff)
self.tagTableWidget.setEditTriggers(
QtGui.QAbstractItemView.NoEditTriggers)
self.tagTableWidget.setAlternatingRowColors(True)
self.tagTableWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.tagTableWidget.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
self.tagTableWidget.setSelectionMode(
QtGui.QAbstractItemView.SingleSelection)
self.tagTableWidget.setSelectionBehavior(
QtGui.QAbstractItemView.SelectRows)
self.tagTableWidget.setCornerButtonEnabled(False)
self.tagTableWidget.setObjectName(_fromUtf8("tagTableWidget"))
self.tagTableWidget.setObjectName(u'tagTableWidget')
self.tagTableWidget.setColumnCount(4)
self.tagTableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
@ -204,9 +62,62 @@ class Ui_DisplayTagDialog(object):
self.tagTableWidget.setHorizontalHeaderItem(2, item)
item = QtGui.QTableWidgetItem()
self.tagTableWidget.setHorizontalHeaderItem(3, item)
self.defaultPushButton = QtGui.QPushButton(displayTagDialog)
self.defaultPushButton.setGeometry(QtCore.QRect(550, 280, 71, 26))
self.defaultPushButton.setObjectName(_fromUtf8("defaultPushButton"))
self.listdataGridLayout.addWidget(self.tagTableWidget, 0, 0, 1, 1)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(u'horizontalLayout')
spacerItem = QtGui.QSpacerItem(40, 20,
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.defaultPushButton = QtGui.QPushButton(self.widget)
self.defaultPushButton.setObjectName(u'defaultPushButton')
self.horizontalLayout.addWidget(self.defaultPushButton)
self.deletePushButton = QtGui.QPushButton(self.widget)
self.deletePushButton.setObjectName(u'deletePushButton')
self.horizontalLayout.addWidget(self.deletePushButton)
self.listdataGridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.editGroupBox = QtGui.QGroupBox(self.widget)
self.editGroupBox.setObjectName(u'editGroupBox')
self.dataGridLayout = QtGui.QGridLayout(self.editGroupBox)
self.dataGridLayout.setObjectName(u'dataGridLayout')
self.descriptionLabel = QtGui.QLabel(self.editGroupBox)
self.descriptionLabel.setAlignment(QtCore.Qt.AlignCenter)
self.descriptionLabel.setObjectName(u'descriptionLabel')
self.dataGridLayout.addWidget(self.descriptionLabel, 0, 0, 1, 1)
self.descriptionLineEdit = QtGui.QLineEdit(self.editGroupBox)
self.descriptionLineEdit.setObjectName(u'descriptionLineEdit')
self.dataGridLayout.addWidget(self.descriptionLineEdit, 0, 1, 2, 1)
self.newPushButton = QtGui.QPushButton(self.editGroupBox)
self.newPushButton.setObjectName(u'newPushButton')
self.dataGridLayout.addWidget(self.newPushButton, 0, 2, 2, 1)
self.tagLabel = QtGui.QLabel(self.editGroupBox)
self.tagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.tagLabel.setObjectName(u'tagLabel')
self.dataGridLayout.addWidget(self.tagLabel, 2, 0, 1, 1)
self.tagLineEdit = QtGui.QLineEdit(self.editGroupBox)
self.tagLineEdit.setMaximumSize(QtCore.QSize(50, 16777215))
self.tagLineEdit.setMaxLength(5)
self.tagLineEdit.setObjectName(u'tagLineEdit')
self.dataGridLayout.addWidget(self.tagLineEdit, 2, 1, 1, 1)
self.startTagLabel = QtGui.QLabel(self.editGroupBox)
self.startTagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.startTagLabel.setObjectName(u'startTagLabel')
self.dataGridLayout.addWidget(self.startTagLabel, 3, 0, 1, 1)
self.startTagLineEdit = QtGui.QLineEdit(self.editGroupBox)
self.startTagLineEdit.setObjectName(u'startTagLineEdit')
self.dataGridLayout.addWidget(self.startTagLineEdit, 3, 1, 1, 1)
self.endTagLabel = QtGui.QLabel(self.editGroupBox)
self.endTagLabel.setAlignment(QtCore.Qt.AlignCenter)
self.endTagLabel.setObjectName(u'endTagLabel')
self.dataGridLayout.addWidget(self.endTagLabel, 4, 0, 1, 1)
self.endTagLineEdit = QtGui.QLineEdit(self.editGroupBox)
self.endTagLineEdit.setObjectName(u'endTagLineEdit')
self.dataGridLayout.addWidget(self.endTagLineEdit, 4, 1, 1, 1)
self.updatePushButton = QtGui.QPushButton(self.editGroupBox)
self.updatePushButton.setObjectName(u'updatePushButton')
self.dataGridLayout.addWidget(self.updatePushButton, 4, 2, 1, 1)
self.listdataGridLayout.addWidget(self.editGroupBox, 2, 0, 1, 1)
self.buttonBox = create_accept_reject_button_box(displayTagDialog)
self.listdataGridLayout.addWidget(self.buttonBox, 3, 0, 1, 1)
self.retranslateUi(displayTagDialog)
QtCore.QMetaObject.connectSlotsByName(displayTagDialog)
@ -228,33 +139,15 @@ class Ui_DisplayTagDialog(object):
self.defaultPushButton.setText(
translate('OpenLP.DisplayTagTab', 'Default'))
self.newPushButton.setText(UiStrings.New)
self.tagTableWidget.horizontalHeaderItem(0)\
self.tagTableWidget.horizontalHeaderItem(0) \
.setText(translate('OpenLP.DisplayTagTab', 'Description'))
self.tagTableWidget.horizontalHeaderItem(1)\
self.tagTableWidget.horizontalHeaderItem(1) \
.setText(translate('OpenLP.DisplayTagTab', 'Tag id'))
self.tagTableWidget.horizontalHeaderItem(2)\
self.tagTableWidget.horizontalHeaderItem(2) \
.setText(translate('OpenLP.DisplayTagTab', 'Start Html'))
self.tagTableWidget.horizontalHeaderItem(3)\
self.tagTableWidget.horizontalHeaderItem(3) \
.setText(translate('OpenLP.DisplayTagTab', 'End Html'))
self.tagTableWidget.setColumnWidth(0, 120)
self.tagTableWidget.setColumnWidth(1, 40)
self.tagTableWidget.setColumnWidth(2, 240)
self.tagTableWidget.setColumnWidth(3, 200)
displayTagDialog.setWindowTitle(QtGui.QApplication.translate("displayTagDialog", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.editGroupBox.setTitle(QtGui.QApplication.translate("displayTagDialog", "Edit Selection", None, QtGui.QApplication.UnicodeUTF8))
self.updatePushButton.setText(QtGui.QApplication.translate("displayTagDialog", "Update", None, QtGui.QApplication.UnicodeUTF8))
self.descriptionLabel.setText(QtGui.QApplication.translate("displayTagDialog", "Description", None, QtGui.QApplication.UnicodeUTF8))
self.tagLabel.setText(QtGui.QApplication.translate("displayTagDialog", "Tag", None, QtGui.QApplication.UnicodeUTF8))
self.startTagLabel.setText(QtGui.QApplication.translate("displayTagDialog", "Start tag", None, QtGui.QApplication.UnicodeUTF8))
self.endTagLabel.setText(QtGui.QApplication.translate("displayTagDialog", "End tag", None, QtGui.QApplication.UnicodeUTF8))
self.addPushButton.setText(QtGui.QApplication.translate("displayTagDialog", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.newPushButton.setText(QtGui.QApplication.translate("displayTagDialog", "New", None, QtGui.QApplication.UnicodeUTF8))
self.deletePushButton.setText(QtGui.QApplication.translate("displayTagDialog", "Delete", None, QtGui.QApplication.UnicodeUTF8))
self.tagTableWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("displayTagDialog", "Description", None, QtGui.QApplication.UnicodeUTF8))
self.tagTableWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("displayTagDialog", "Key", None, QtGui.QApplication.UnicodeUTF8))
self.tagTableWidget.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("displayTagDialog", "Start Tag", None, QtGui.QApplication.UnicodeUTF8))
self.tagTableWidget.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("displayTagDialog", "End Tag", None, QtGui.QApplication.UnicodeUTF8))
self.defaultPushButton.setText(QtGui.QApplication.translate("displayTagDialog", "Default", None, QtGui.QApplication.UnicodeUTF8))
self.tagTableWidget.setColumnWidth(3, 240)

View File

@ -63,6 +63,7 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
Load Display and set field state.
"""
# Create initial copy from master
self._resetTable()
DisplayTags.reset_html_tags()
user_expands = QtCore.QSettings().value(u'displayTags/html_tags',
QtCore.QVariant(u'')).toString()
@ -102,7 +103,7 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
self.startTagLineEdit.setEnabled(False)
self.endTagLineEdit.setEnabled(False)
def save(self):
def accept(self):
"""
Save Custom tags in a pickle .
"""
@ -117,13 +118,14 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
else:
QtCore.QSettings().setValue(u'displayTags/html_tags',
QtCore.QVariant(u''))
return QtGui.QDialog.accept(self)
def cancel(self):
def reject(self):
"""
Reset Custom tags from Settings.
"""
self.preLoad()
self._resetTable()
return QtGui.QDialog.reject(self)
def onRowSelected(self):
"""
@ -170,6 +172,7 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
self._resetTable()
# Highlight new row
self.tagTableWidget.selectRow(self.tagTableWidget.rowCount() - 1)
self.onRowSelected()
def onDefaultPushed(self):
"""
@ -217,7 +220,6 @@ class DisplayTagForm(QtGui.QDialog, Ui_DisplayTagDialog):
"""
self.tagTableWidget.clearContents()
self.tagTableWidget.setRowCount(0)
self.load()
def _strip(self, tag):
"""

View File

@ -243,7 +243,7 @@ class Ui_MainWindow(object):
u'SettingsShortcutsItem',
u':/system/system_configure_shortcuts.png')
self.DisplayTagItem = icon_action(mainWindow,
u'DisplayTagItem', u':/system/system_settings.png')
u'DisplayTagItem', u':/system/tag_editor.png')
self.SettingsConfigureItem = icon_action(mainWindow,
u'SettingsConfigureItem', u':/system/system_settings.png')
mainWindow.actionList.add_action(self.SettingsShortcutsItem,

View File

@ -6,174 +6,25 @@
<rect>
<x>0</x>
<y>0</y>
<width>717</width>
<height>554</height>
<width>725</width>
<height>548</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QGroupBox" name="editGroupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>320</y>
<width>691</width>
<height>181</height>
</rect>
</property>
<property name="title">
<string>Edit Selection</string>
</property>
<widget class="QPushButton" name="updatePushButton">
<property name="geometry">
<rect>
<x>600</x>
<y>140</y>
<width>73</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Update</string>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>571</width>
<height>114</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="descriptionLabel">
<property name="text">
<string>Description</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="descriptionLineEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="tagLabel">
<property name="text">
<string>Tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="tagLineEdit">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="maxLength">
<number>5</number>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="startTagLabel">
<property name="text">
<string>Start tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="startTagLineEdit"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="endTagLabel">
<property name="text">
<string>End tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="endTagLineEdit"/>
</item>
</layout>
</widget>
<widget class="QPushButton" name="addPushButton">
<property name="geometry">
<rect>
<x>600</x>
<y>40</y>
<width>71</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Add</string>
</property>
</widget>
<widget class="QPushButton" name="newPushButton">
<property name="geometry">
<rect>
<x>600</x>
<y>70</y>
<width>71</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>New</string>
</property>
</widget>
</widget>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>540</x>
<y>510</y>
<width>162</width>
<height>26</height>
</rect>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
</property>
</widget>
<widget class="QPushButton" name="deletePushButton">
<property name="geometry">
<rect>
<x>630</x>
<y>280</y>
<width>71</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Delete</string>
</property>
</widget>
<widget class="QTableWidget" name="tagTableWidget">
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>691</width>
<height>271</height>
<width>701</width>
<height>521</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QTableWidget" name="tagTableWidget">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
@ -216,19 +67,139 @@
</property>
</column>
</widget>
<widget class="QPushButton" name="defaultPushButton">
<property name="geometry">
<rect>
<x>550</x>
<y>280</y>
<width>71</width>
<height>26</height>
</rect>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="defaultPushButton">
<property name="text">
<string>Default</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="deletePushButton">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="editGroupBox">
<property name="title">
<string>Edit Selection</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="descriptionLabel">
<property name="text">
<string>Description</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="1" rowspan="2">
<widget class="QLineEdit" name="descriptionLineEdit"/>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="addPushButton">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item row="1" column="2" rowspan="2">
<widget class="QPushButton" name="newPushButton">
<property name="text">
<string>New</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="tagLabel">
<property name="text">
<string>Tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="tagLineEdit">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="maxLength">
<number>5</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="startTagLabel">
<property name="text">
<string>Start tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="startTagLineEdit"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="endTagLabel">
<property name="text">
<string>End tag</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="endTagLineEdit"/>
</item>
<item row="4" column="2">
<widget class="QPushButton" name="updatePushButton">
<property name="text">
<string>Update</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>

View File

@ -116,6 +116,7 @@
<file>system_exit.png</file>
<file>settings_plugin_list.png</file>
<file>system_settings.png</file>
<file>tag_editor.png</file>
<file>system_configure.png</file>
<file>system_edit_copy.png</file>
<file>system_configure_shortcuts.png</file>