From: <keo...@us...> - 2007-02-28 11:08:13
|
Revision: 5193 http://svn.sourceforge.net/translate/?rev=5193&view=rev Author: keosophon Date: 2007-02-28 03:08:10 -0800 (Wed, 28 Feb 2007) Log Message: ----------- recode plural show in TUView, remove useless code Modified Paths: -------------- src/trunk/pootling/modules/MainEditor.py src/trunk/pootling/modules/TUview.py src/trunk/pootling/ui/TUview.ui src/trunk/pootling/ui/Ui_TUview.py Modified: src/trunk/pootling/modules/MainEditor.py =================================================================== --- src/trunk/pootling/modules/MainEditor.py 2007-02-28 08:51:37 UTC (rev 5192) +++ src/trunk/pootling/modules/MainEditor.py 2007-02-28 11:08:10 UTC (rev 5193) @@ -280,8 +280,7 @@ self.ui.actionRedo.setEnabled(bool) def showGoto(self): - value, ok = QtGui.QInputDialog.getInteger(self, self.tr("Goto"), - self.tr("Unit Index:"), 1, 1, self.status.numTotal) + value, ok = QtGui.QInputDialog.getInteger(self, self.tr("Goto"), self.tr("Unit Index:"), 1, 1, self.operator.status.numTotal) if ok: self.dockOverview.gotoRow(value) Modified: src/trunk/pootling/modules/TUview.py =================================================================== --- src/trunk/pootling/modules/TUview.py 2007-02-28 08:51:37 UTC (rev 5192) +++ src/trunk/pootling/modules/TUview.py 2007-02-28 11:08:10 UTC (rev 5193) @@ -21,6 +21,7 @@ from PyQt4 import QtCore, QtGui from pootling.ui.Ui_TUview import Ui_TUview +from pootling.ui.Ui_PluralTab import Ui_PluralTab from translate.storage import po from pootling.modules import World @@ -72,7 +73,7 @@ def initSearch(self, index, length): self.index = index self.length = length - + class TUview(QtGui.QDockWidget): def __init__(self, parent): QtGui.QDockWidget.__init__(self, parent) @@ -86,13 +87,11 @@ self.ui.lblComment.hide() self.ui.txtTarget.setReadOnly(True) #support only qt4.2 -## self.ui.txtTarget.moveCursor(QtGui.QTextCursor.Start, QtGui.QTextCursor.MoveAnchor ) self.ui.txtTarget.setWhatsThis("<h3>Translated String</h3>This editor displays and lets you edit the translation of the currently displayed string.") self.ui.txtSource.setWhatsThis("<h3>Original String</h3>This part of the window shows you the original string of the currently displayed entry. <br>You can not edit this string.") self.ui.lblComment.setWhatsThis("<h3>Important Comment</h3>Hints from the developer to the translator are displayed in this area. This area will be hidden if there is no hint. ") self.ui.fileScrollBar.setWhatsThis("<h3>Navigation Scrollbar</h3>It allows you do navigate in the current file. If you filter your strings you get only the filtered list. <br>It also gives you visual feedback about the postion of the current entry. The Tooltip also shows you the current number and the total numbers of strings.") self.applySettings() - self.connect(self.ui.fileScrollBar, QtCore.SIGNAL("valueChanged(int)"), self.emitCurrentIndex) # create highlight font @@ -102,35 +101,12 @@ self.highlightFormat.setBackground(QtCore.Qt.darkMagenta) self.highlightRange = QtGui.QTextLayout.FormatRange() self.highlightRange.format = self.highlightFormat - self.tabForPlural() - self.unitHasPlural = False - self.targetModified = False + self.sourceLength = 0 self.sourceHighlight = Highlighter(self.ui.txtSource) self.targetHighlight = Highlighter(self.ui.txtTarget) - - def tabForPlural(self): - self.tabSourcePlurals = [] - self.tabTargetPlurals = [] - self.gridlayoutSList = [] - self.gridlayoutTarList = [] - self.txtSourceList = [] - self.txtTargetList = [] - # tab for plural - self.tabSource = QtGui.QTabWidget(self.form) - self.tabSource.setObjectName("tabSource") - self.ui.gridlayout.addWidget(self.tabSource,0,0,1,1) - self.tabTarget = QtGui.QTabWidget(self.form) - self.tabTarget.setObjectName("tabTarget") - self.ui.gridlayout.addWidget(self.tabTarget,1,0,1,1) - - self.ui.gridlayout.addWidget(self.ui.fileScrollBar,0,2,3,1) - - self.tabSource.hide() - self.tabTarget.hide() - def closeEvent(self, event): """ set text of action object to 'show Detail' before closing TUview @@ -180,7 +156,7 @@ Then recalculate scrollbar maximum value. @param unit: unit to set in target and source. @param index: value in the scrollbar to be removed.""" - self.disconnect(self.ui.txtTarget, QtCore.SIGNAL("textChanged()"), self.checkModified) + self.disconnect(self.ui.txtTarget, QtCore.SIGNAL("textChanged()"), self.emitTargetChanged) if (not unit) or (not hasattr(unit, "x_editor_filterIndex")): self.ui.lblComment.hide() self.ui.txtSource.clear() @@ -197,137 +173,33 @@ else: self.ui.lblComment.show() self.ui.lblComment.setText(unicode(comment)) - if unit.hasplural(): - self.unitPlural(unit) - else: - self.unitSingle(unit) + self.showUnit(unit) # set the scrollbar position self.setScrollbarValue(unit.x_editor_filterIndex) - self.connect(self.ui.txtTarget, QtCore.SIGNAL("textChanged()"), self.checkModified) - - def unitPlural(self, unit): - """This will be call when unit is plural. - @param unit: unit to consider if plural or not.""" - #show tab for plural unit and hide the normal text box. - self.unitHasPlural = True - self.tabSource.show() - self.tabTarget.show() - self.ui.gridlayout.addWidget(self.ui.fileScrollBar,0,2,3,1) - self.ui.txtSource.hide() - self.ui.txtTarget.hide() - # source section - self.sourceLength = len(unit.source.strings) - # if plural unit is already detected once then no need to create more tab. - if (self.tabSource.count() == self.sourceLength): - for i in range(self.sourceLength): - self.txtSourceList[i].setPlainText(unit.source.strings[i]) - else: - # create tab regarding to the number of strings in source. - for i in range(self.sourceLength): - tabSourcePlural = QtGui.QWidget(self.tabSource) - self.tabSourcePlurals.append(tabSourcePlural) - self.tabSourcePlurals[i].setObjectName("tabSourcePlural%d" % i) - - self.gridlayoutS = QtGui.QGridLayout(self.tabSourcePlurals[i]) - self.gridlayoutSList.append(self.gridlayoutS) - self.gridlayoutSList[i].setMargin(0) - self.gridlayoutSList[i].setSpacing(0) - self.gridlayoutSList[i].setObjectName("gridlayoutS%d" % i) - - self.txtSource = QtGui.QTextEdit(self.tabSourcePlurals[i]) - self.txtSourceList.append(self.txtSource) - self.txtSourceList[i].setObjectName("txtSource%d" % i) - self.txtSourceList[i].setTabChangesFocus(True) - self.txtSourceList[i].setUndoRedoEnabled(False) - self.txtSourceList[i].setReadOnly(True) - self.gridlayoutSList[i].addWidget(self.txtSourceList[i],0,0,1,1) - self.txtSourceList[i].setPlainText(unit.source.strings[i]) - - self.tabSource.addTab(self.tabSourcePlurals[i], "") - self.tabSource.setTabText(self.tabSource.indexOf(self.tabSourcePlurals[i]), self.tr("Plural%d" % i)) - - # target section - # nplurals will be adapted to the language set in preference. - self.nplurals = World.settings.value("nPlural").toInt()[0] - # if plural unit is already detected once then no need to create more tab. - if (self.tabTarget.count() == self.nplurals): - for i in range(self.nplurals): - # if the plural unit is not translated yet. - if (len(unit.target.strings) == 1): - self.txtTargetList[i].clear() - else: - self.txtTargetList[i].setPlainText(unit.target.strings[i]) - else: - # create tab regarding to the number plural form - for i in range(self.nplurals): - tabTargetPlural = QtGui.QWidget(self.tabTarget) - self.tabTargetPlurals.append(tabTargetPlural) - self.tabTargetPlurals[i].setObjectName("tabTargetPlural%d" % i) - - self.gridlayoutTar = QtGui.QGridLayout(self.tabTargetPlurals[i]) - self.gridlayoutTarList.append(self.gridlayoutTar) - self.gridlayoutTarList[i].setMargin(0) - self.gridlayoutTarList[i].setSpacing(0) - self.gridlayoutTarList[i].setObjectName("gridlayoutTar%d" % i) - - self.tabTarget.addTab(self.tabTargetPlurals[i], "") - self.tabTarget.setTabText(self.tabTarget.indexOf(self.tabTargetPlurals[i]), self.tr("Plural%d"% i)) - - self.txtTarget = QtGui.QTextEdit(self.tabTargetPlurals[i]) - self.txtTargetList.append(self.txtTarget) - self.txtTargetList[i].setObjectName("txtTarget%d"% i) - self.gridlayoutTarList[i].addWidget(self.txtTargetList[i],0,0,1,1) - #the plural unit is not translated yet. - if (len(unit.target.strings) == 1): - self.txtTargetList[i].clear() - else: - # list index out of range when the unit is not translate yet.it has only msgstr[0] - self.txtTargetList[i].setPlainText(unit.target.strings[i]) -# self.connect(self.txtTargetList[i], QtCore.SIGNAL("textChanged()"), self.emitReadyForSave) - - def unitSingle(self, unit): - """This will be called when unit is singular. + self.connect(self.ui.txtTarget, QtCore.SIGNAL("textChanged()"), self.emitTargetChanged) + + def showUnit(self, unit): + if (not unit.hasplural()): + """This will be called when unit is singular. @param unit: unit to consider if signal or not.""" - #hide tab for plural unit and show the normal text boxes for signal unit. - self.unitHasPlural = False - self.tabSource.hide() - self.tabTarget.hide() - self.ui.txtSource.show() - self.ui.txtTarget.show() - - self.ui.txtSource.setPlainText(unit.source) - self.ui.txtTarget.setPlainText(unit.target) -# self.connect(self.ui.txtTarget, QtCore.SIGNAL("textChanged()"), self.emitReadyForSave) - - def checkModified(self): - """Check if target is modified, send target as unicode string for single unit and list of unicode string for plural unit. - @signal targetChanged: emitted with target.""" - if self.ui.txtTarget.document().isModified(): - self.emit(QtCore.SIGNAL("targetChanged"), unicode(self.ui.txtTarget.toPlainText())) - self.ui.txtTarget.document().setModified(False) -# if (not self.unitHasPlural): -# if self.ui.txtTarget.document().isModified(): -# self.emit(QtCore.SIGNAL("targetChanged"), unicode(self.ui.txtTarget.toPlainText())) -# self.ui.txtTarget.document().setModified(False) -# else: -# targetList = [] -# for i in range(self.nplurals): -# if self.txtTargetList[i].document().isModified(): -# for i in range(self.nplurals): -# targetList.append(unicode(self.txtTargetList[i].toPlainText())) -# self.txtTargetList[i].document().setModified(False) -# self.emit(QtCore.SIGNAL("targetChanged"), targetList) + #hide tab for plural unit and show the normal text boxes for signal unit. + self.ui.sourceStacked.setCurrentIndex(0) + self.ui.targetStacked.setCurrentIndex(0) + self.ui.txtSource.setPlainText(unit.source) + if (unicode(unit.target) != unicode(self.ui.txtTarget.toPlainText())): + self.ui.txtTarget.setPlainText(unit.target) + else: + # TODO: continue this block tomorrow + self.ui.sourceStacked.setCurrentIndex(1) + nplurals = World.settings.value("nPlural").toInt()[0] + self.ui.targetStacked.setCurrentIndex((nplurals > 1) and 1 or 0) - + def emitTargetChanged(self): + self.emit(QtCore.SIGNAL("targetChanged"), unicode(self.ui.txtTarget.toPlainText())) + def source2target(self): """Copy the text from source to target.""" - self.ui.txtTarget.selectAll() - self.ui.txtTarget.insertPlainText(self.ui.txtSource.toPlainText()) - self.checkModified() - - def setTarget(self, text): - if (text != unicode(self.ui.txtTarget.toPlainText())): - self.ui.txtTarget.setText(text) + self.ui.txtTarget.setText(self.ui.txtSource.toPlainText()) def highlightSearch(self, textField, position, length = 0): """Highlight the text at specified position, length, and textField. @@ -361,8 +233,6 @@ text = self.ui.txtTarget.toPlainText() text.replace(position, length, replacedText); self.ui.txtTarget.setPlainText(text) - self.ui.txtTarget.document().setModified() - self.checkModified() def applySettings(self): """ set font and color to txtSource and txtTarget""" Modified: src/trunk/pootling/ui/TUview.ui =================================================================== --- src/trunk/pootling/ui/TUview.ui 2007-02-28 08:51:37 UTC (rev 5192) +++ src/trunk/pootling/ui/TUview.ui 2007-02-28 11:08:10 UTC (rev 5193) @@ -1,7 +1,4 @@ <ui version="4.0" > - <author></author> - <comment></comment> - <exportmacro></exportmacro> <class>TUview</class> <widget class="QWidget" name="TUview" > <property name="enabled" > @@ -49,287 +46,541 @@ <number>0</number> </property> <item row="0" column="0" > - <widget class="QSplitter" name="" > + <widget class="QSplitter" name="splitter" > <property name="orientation" > <enum>Qt::Vertical</enum> </property> - <widget class="QTextEdit" name="txtSource" > - <property name="tabChangesFocus" > - <bool>true</bool> + <widget class="QStackedWidget" name="sourceStacked" > + <property name="currentIndex" > + <number>0</number> </property> - <property name="undoRedoEnabled" > - <bool>false</bool> - </property> - <property name="readOnly" > - <bool>true</bool> - </property> - <property name="tabStopWidth" > - <number>79</number> - </property> + <widget class="QWidget" name="page1" > + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTextEdit" name="txtSource" > + <property name="tabChangesFocus" > + <bool>true</bool> + </property> + <property name="undoRedoEnabled" > + <bool>false</bool> + </property> + <property name="readOnly" > + <bool>true</bool> + </property> + <property name="tabStopWidth" > + <number>79</number> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="page2" > + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTabWidget" name="tabWidgetSource" > + <property name="currentIndex" > + <number>0</number> + </property> + <widget class="QWidget" name="tabSource1" > + <attribute name="title" > + <string>Source1</string> + </attribute> + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTextEdit" name="txtPluralSource1" /> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> </widget> <widget class="QLabel" name="lblComment" > <property name="palette" > <palette> <active> - <color> - <red>255</red> - <green>10</green> - <blue>26</blue> - </color> - <color> - <red>221</red> - <green>223</green> - <blue>228</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>85</red> - <green>85</green> - <blue>85</blue> - </color> - <color> - <red>199</red> - <green>199</green> - <blue>199</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>239</red> - <green>239</green> - <blue>239</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>103</red> - <green>141</green> - <blue>178</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>238</blue> - </color> - <color> - <red>82</red> - <green>24</green> - <blue>139</blue> - </color> - <color> - <red>232</red> - <green>232</green> - <blue>232</blue> - </color> + <colorrole role="WindowText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>10</green> + <blue>26</blue> + </color> + </brush> + </colorrole> + <colorrole role="Button" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>221</red> + <green>223</green> + <blue>228</blue> + </color> + </brush> + </colorrole> + <colorrole role="Light" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Dark" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>85</red> + <green>85</green> + <blue>85</blue> + </color> + </brush> + </colorrole> + <colorrole role="Mid" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>199</red> + <green>199</green> + <blue>199</blue> + </color> + </brush> + </colorrole> + <colorrole role="Text" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="BrightText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="ButtonText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>239</red> + <green>239</green> + <blue>239</blue> + </color> + </brush> + </colorrole> + <colorrole role="Shadow" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="Highlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>103</red> + <green>141</green> + <blue>178</blue> + </color> + </brush> + </colorrole> + <colorrole role="HighlightedText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Link" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>238</blue> + </color> + </brush> + </colorrole> + <colorrole role="LinkVisited" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>82</red> + <green>24</green> + <blue>139</blue> + </color> + </brush> + </colorrole> + <colorrole role="AlternateBase" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>232</red> + <green>232</green> + <blue>232</blue> + </color> + </brush> + </colorrole> </active> <inactive> - <color> - <red>255</red> - <green>10</green> - <blue>26</blue> - </color> - <color> - <red>221</red> - <green>223</green> - <blue>228</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>85</red> - <green>85</green> - <blue>85</blue> - </color> - <color> - <red>199</red> - <green>199</green> - <blue>199</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>239</red> - <green>239</green> - <blue>239</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>103</red> - <green>141</green> - <blue>178</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>238</blue> - </color> - <color> - <red>82</red> - <green>24</green> - <blue>139</blue> - </color> - <color> - <red>232</red> - <green>232</green> - <blue>232</blue> - </color> + <colorrole role="WindowText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>10</green> + <blue>26</blue> + </color> + </brush> + </colorrole> + <colorrole role="Button" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>221</red> + <green>223</green> + <blue>228</blue> + </color> + </brush> + </colorrole> + <colorrole role="Light" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Dark" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>85</red> + <green>85</green> + <blue>85</blue> + </color> + </brush> + </colorrole> + <colorrole role="Mid" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>199</red> + <green>199</green> + <blue>199</blue> + </color> + </brush> + </colorrole> + <colorrole role="Text" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="BrightText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="ButtonText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>239</red> + <green>239</green> + <blue>239</blue> + </color> + </brush> + </colorrole> + <colorrole role="Shadow" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="Highlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>103</red> + <green>141</green> + <blue>178</blue> + </color> + </brush> + </colorrole> + <colorrole role="HighlightedText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Link" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>238</blue> + </color> + </brush> + </colorrole> + <colorrole role="LinkVisited" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>82</red> + <green>24</green> + <blue>139</blue> + </color> + </brush> + </colorrole> + <colorrole role="AlternateBase" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>232</red> + <green>232</green> + <blue>232</blue> + </color> + </brush> + </colorrole> </inactive> <disabled> - <color> - <red>128</red> - <green>128</green> - <blue>128</blue> - </color> - <color> - <red>221</red> - <green>223</green> - <blue>228</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>85</red> - <green>85</green> - <blue>85</blue> - </color> - <color> - <red>199</red> - <green>199</green> - <blue>199</blue> - </color> - <color> - <red>199</red> - <green>199</green> - <blue>199</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>128</red> - <green>128</green> - <blue>128</blue> - </color> - <color> - <red>239</red> - <green>239</green> - <blue>239</blue> - </color> - <color> - <red>239</red> - <green>239</green> - <blue>239</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - </color> - <color> - <red>86</red> - <green>117</green> - <blue>148</blue> - </color> - <color> - <red>255</red> - <green>255</green> - <blue>255</blue> - </color> - <color> - <red>0</red> - <green>0</green> - <blue>238</blue> - </color> - <color> - <red>82</red> - <green>24</green> - <blue>139</blue> - </color> - <color> - <red>232</red> - <green>232</green> - <blue>232</blue> - </color> + <colorrole role="WindowText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>128</red> + <green>128</green> + <blue>128</blue> + </color> + </brush> + </colorrole> + <colorrole role="Button" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>221</red> + <green>223</green> + <blue>228</blue> + </color> + </brush> + </colorrole> + <colorrole role="Light" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Midlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Dark" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>85</red> + <green>85</green> + <blue>85</blue> + </color> + </brush> + </colorrole> + <colorrole role="Mid" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>199</red> + <green>199</green> + <blue>199</blue> + </color> + </brush> + </colorrole> + <colorrole role="Text" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>199</red> + <green>199</green> + <blue>199</blue> + </color> + </brush> + </colorrole> + <colorrole role="BrightText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="ButtonText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>128</red> + <green>128</green> + <blue>128</blue> + </color> + </brush> + </colorrole> + <colorrole role="Base" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>239</red> + <green>239</green> + <blue>239</blue> + </color> + </brush> + </colorrole> + <colorrole role="Window" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>239</red> + <green>239</green> + <blue>239</blue> + </color> + </brush> + </colorrole> + <colorrole role="Shadow" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + <colorrole role="Highlight" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>86</red> + <green>117</green> + <blue>148</blue> + </color> + </brush> + </colorrole> + <colorrole role="HighlightedText" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>255</red> + <green>255</green> + <blue>255</blue> + </color> + </brush> + </colorrole> + <colorrole role="Link" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>0</red> + <green>0</green> + <blue>238</blue> + </color> + </brush> + </colorrole> + <colorrole role="LinkVisited" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>82</red> + <green>24</green> + <blue>139</blue> + </color> + </brush> + </colorrole> + <colorrole role="AlternateBase" > + <brush brushstyle="SolidPattern" > + <color alpha="255" > + <red>232</red> + <green>232</green> + <blue>232</blue> + </color> + </brush> + </colorrole> </disabled> </palette> </property> @@ -337,10 +588,69 @@ <string/> </property> </widget> - <widget class="QTextEdit" name="txtTarget" > - <property name="whatsThis" > - <string/> + <widget class="QStackedWidget" name="targetStacked" > + <property name="currentIndex" > + <number>1</number> </property> + <widget class="QWidget" name="page3" > + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTextEdit" name="txtTarget" > + <property name="tabChangesFocus" > + <bool>true</bool> + </property> + <property name="undoRedoEnabled" > + <bool>false</bool> + </property> + <property name="readOnly" > + <bool>true</bool> + </property> + <property name="tabStopWidth" > + <number>79</number> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="page4" > + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTabWidget" name="tabWidgetTarget" > + <property name="currentIndex" > + <number>0</number> + </property> + <widget class="QWidget" name="tabTarget1" > + <attribute name="title" > + <string>Target1</string> + </attribute> + <layout class="QGridLayout" > + <property name="margin" > + <number>9</number> + </property> + <property name="spacing" > + <number>6</number> + </property> + <item row="0" column="0" > + <widget class="QTextEdit" name="txtPluralTarget1" /> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> </widget> </widget> </item> @@ -389,10 +699,6 @@ </item> </layout> </widget> - <pixmapfunction></pixmapfunction> - <tabstops> - <tabstop>txtSource</tabstop> - </tabstops> <resources/> <connections/> </ui> Modified: src/trunk/pootling/ui/Ui_TUview.py =================================================================== --- src/trunk/pootling/ui/Ui_TUview.py 2007-02-28 08:51:37 UTC (rev 5192) +++ src/trunk/pootling/ui/Ui_TUview.py 2007-02-28 11:08:10 UTC (rev 5193) @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file '/home/ks/programming/wordforge/trunk/pootling/ui/TUview.ui' # -# Created: Tue Feb 20 10:26:40 2007 +# Created: Wed Feb 28 17:30:07 2007 # by: PyQt4 UI code generator 4-snapshot-20070212 # # WARNING! All changes made in this file will be lost! @@ -33,72 +33,307 @@ self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") - self.txtSource = QtGui.QTextEdit(self.splitter) + self.sourceStacked = QtGui.QStackedWidget(self.splitter) + self.sourceStacked.setObjectName("sourceStacked") + + self.page1 = QtGui.QWidget() + self.page1.setObjectName("page1") + + self.gridlayout1 = QtGui.QGridLayout(self.page1) + self.gridlayout1.setMargin(9) + self.gridlayout1.setSpacing(6) + self.gridlayout1.setObjectName("gridlayout1") + + self.txtSource = QtGui.QTextEdit(self.page1) self.txtSource.setTabChangesFocus(True) self.txtSource.setUndoRedoEnabled(False) self.txtSource.setReadOnly(True) self.txtSource.setTabStopWidth(79) self.txtSource.setObjectName("txtSource") + self.gridlayout1.addWidget(self.txtSource,0,0,1,1) + self.sourceStacked.addWidget(self.page1) + self.page2 = QtGui.QWidget() + self.page2.setObjectName("page2") + + self.gridlayout2 = QtGui.QGridLayout(self.page2) + self.gridlayout2.setMargin(9) + self.gridlayout2.setSpacing(6) + self.gridlayout2.setObjectName("gridlayout2") + + self.tabWidgetSource = QtGui.QTabWidget(self.page2) + self.tabWidgetSource.setObjectName("tabWidgetSource") + + self.tabSource1 = QtGui.QWidget() + self.tabSource1.setObjectName("tabSource1") + + self.gridlayout3 = QtGui.QGridLayout(self.tabSource1) + self.gridlayout3.setMargin(9) + self.gridlayout3.setSpacing(6) + self.gridlayout3.setObjectName("gridlayout3") + + self.txtPluralSource1 = QtGui.QTextEdit(self.tabSource1) + self.txtPluralSource1.setObjectName("txtPluralSource1") + self.gridlayout3.addWidget(self.txtPluralSource1,0,0,1,1) + self.tabWidgetSource.addTab(self.tabSource1,"") + self.gridlayout2.addWidget(self.tabWidgetSource,0,0,1,1) + self.sourceStacked.addWidget(self.page2) + self.lblComment = QtGui.QLabel(self.splitter) palette = QtGui.QPalette() - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(0),QtGui.QColor(255,10,26)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(1),QtGui.QColor(221,223,228)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(2),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(3),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(4),QtGui.QColor(85,85,85)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(5),QtGui.QColor(199,199,199)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(6),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(7),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(8),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(9),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(10),QtGui.QColor(239,239,239)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(11),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(12),QtGui.QColor(103,141,178)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(13),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(14),QtGui.QColor(0,0,238)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(15),QtGui.QColor(82,24,139)) - palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(16),QtGui.QColor(232,232,232)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(0),QtGui.QColor(255,10,26)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(1),QtGui.QColor(221,223,228)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(2),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(3),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(4),QtGui.QColor(85,85,85)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(5),QtGui.QColor(199,199,199)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(6),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(7),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(8),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(9),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(10),QtGui.QColor(239,239,239)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(11),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(12),QtGui.QColor(103,141,178)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(13),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(14),QtGui.QColor(0,0,238)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(15),QtGui.QColor(82,24,139)) - palette.setColor(QtGui.QPalette.Inactive,QtGui.QPalette.ColorRole(16),QtGui.QColor(232,232,232)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(0),QtGui.QColor(128,128,128)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(1),QtGui.QColor(221,223,228)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(2),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(3),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(4),QtGui.QColor(85,85,85)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(5),QtGui.QColor(199,199,199)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(6),QtGui.QColor(199,199,199)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(7),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(8),QtGui.QColor(128,128,128)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(9),QtGui.QColor(239,239,239)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(10),QtGui.QColor(239,239,239)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(11),QtGui.QColor(0,0,0)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(12),QtGui.QColor(86,117,148)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(13),QtGui.QColor(255,255,255)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(14),QtGui.QColor(0,0,238)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(15),QtGui.QColor(82,24,139)) - palette.setColor(QtGui.QPalette.Disabled,QtGui.QPalette.ColorRole(16),QtGui.QColor(232,232,232)) + + brush = QtGui.QBrush(QtGui.QColor(255,10,26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.WindowText,brush) + + brush = QtGui.QBrush(QtGui.QColor(221,223,228)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Button,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Light,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Midlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(85,85,85)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Dark,brush) + + brush = QtGui.QBrush(QtGui.QColor(199,199,199)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Mid,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Text,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.BrightText,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.ButtonText,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Base,brush) + + brush = QtGui.QBrush(QtGui.QColor(239,239,239)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Window,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Shadow,brush) + + brush = QtGui.QBrush(QtGui.QColor(103,141,178)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Highlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.HighlightedText,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,238)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.Link,brush) + + brush = QtGui.QBrush(QtGui.QColor(82,24,139)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.LinkVisited,brush) + + brush = QtGui.QBrush(QtGui.QColor(232,232,232)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active,QtGui.QPalette.AlternateBase,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,10,26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.WindowText,brush) + + brush = QtGui.QBrush(QtGui.QColor(221,223,228)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Button,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Light,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Midlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(85,85,85)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Dark,brush) + + brush = QtGui.QBrush(QtGui.QColor(199,199,199)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Mid,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Text,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.BrightText,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.ButtonText,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Base,brush) + + brush = QtGui.QBrush(QtGui.QColor(239,239,239)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Window,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Shadow,brush) + + brush = QtGui.QBrush(QtGui.QColor(103,141,178)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Highlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.HighlightedText,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,238)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.Link,brush) + + brush = QtGui.QBrush(QtGui.QColor(82,24,139)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.LinkVisited,brush) + + brush = QtGui.QBrush(QtGui.QColor(232,232,232)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive,QtGui.QPalette.AlternateBase,brush) + + brush = QtGui.QBrush(QtGui.QColor(128,128,128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.WindowText,brush) + + brush = QtGui.QBrush(QtGui.QColor(221,223,228)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Button,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Light,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Midlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(85,85,85)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Dark,brush) + + brush = QtGui.QBrush(QtGui.QColor(199,199,199)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Mid,brush) + + brush = QtGui.QBrush(QtGui.QColor(199,199,199)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Text,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.BrightText,brush) + + brush = QtGui.QBrush(QtGui.QColor(128,128,128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.ButtonText,brush) + + brush = QtGui.QBrush(QtGui.QColor(239,239,239)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Base,brush) + + brush = QtGui.QBrush(QtGui.QColor(239,239,239)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Window,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Shadow,brush) + + brush = QtGui.QBrush(QtGui.QColor(86,117,148)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Highlight,brush) + + brush = QtGui.QBrush(QtGui.QColor(255,255,255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.HighlightedText,brush) + + brush = QtGui.QBrush(QtGui.QColor(0,0,238)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.Link,brush) + + brush = QtGui.QBrush(QtGui.QColor(82,24,139)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.LinkVisited,brush) + + brush = QtGui.QBrush(QtGui.QColor(232,232,232)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled,QtGui.QPalette.AlternateBase,brush) self.lblComment.setPalette(palette) self.lblComment.setObjectName("lblComment") - self.txtTarget = QtGui.QTextEdit(self.splitter) + self.targetStacked = QtGui.QStackedWidget(self.splitter) + self.targetStacked.setObjectName("targetStacked") + + self.page3 = QtGui.QWidget() + self.page3.setObjectName("page3") + + self.gridlayout4 = QtGui.QGridLayout(self.page3) + self.gridlayout4.setMargin(9) + self.gridlayout4.setSpacing(6) + self.gridlayout4.setObjectName("gridlayout4") + + self.txtTarget = QtGui.QTextEdit(self.page3) + self.txtTarget.setTabChangesFocus(True) + self.txtTarget.setUndoRedoEnabled(False) + self.txtTarget.setReadOnly(True) + self.txtTarget.setTabStopWidth(79) self.txtTarget.setObjectName("txtTarget") + self.gridlayout4.addWidget(self.txtTarget,0,0,1,1) + self.targetStacked.addWidget(self.page3) + + self.page4 = QtGui.QWidget() + self.page4.setObjectName("page4") + + self.gridlayout5 = QtGui.QGridLayout(self.page4) + self.gridlayout5.setMargin(9) + self.gridlayout5.setSpacing(6) + self.gridlayout5.setObjectName("gridlayout5") + + self.tabWidgetTarget = QtGui.QTabWidget(self.page4) + self.tabWidgetTarget.setObjectName("tabWidgetTarget") + + self.tabTarget1 = QtGui.QWidget() + self.tabTarget1.setObjectName("tabTarget1") + + self.gridlayout6 = QtGui.QGridLayout(self.tabTarget1) + self.gridlayout6.setMargin(9) + self.gridlayout6.setSpacing(6) + self.gridlayout6.setObjectName("gridlayout6") + + self.txtPluralTarget1 = QtGui.QTextEdit(self.tabTarget1) + self.txtPluralTarget1.setObjectName("txtPluralTarget1") + self.gridlayout6.addWidget(self.txtPluralTarget1,0,0,1,1) + self.tabWidgetTarget.addTab(self.tabTarget1,"") + self.gridlayout5.addWidget(self.tabWidgetTarget,0,0,1,1) + self.targetStacked.addWidget(self.page4) self.gridlayout.addWidget(self.splitter,0,0,1,1) spacerItem = QtGui.QSpacerItem(16,588,QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Minimum) @@ -119,10 +354,16 @@ self.gridlayout.addWidget(self.fileScrollBar,0,2,1,1) self.retranslateUi(TUview) + self.sourceStacked.setCurrentIndex(0) + self.tabWidgetSource.setCurrentIndex(0) + self.targetStacked.setCurrentIndex(1) + self.tabWidgetTarget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(TUview) def retranslateUi(self, TUview): TUview.setWindowTitle(QtGui.QApplication.translate("TUview", "Detail", None, QtGui.QApplication.UnicodeUTF8)) + self.tabWidgetSource.setTabText(self.tabWidgetSource.indexOf(self.tabSource1), QtGui.QApplication.translate("TUview", "Source1", None, QtGui.QApplication.UnicodeUTF8)) + self.tabWidgetTarget.setTabText(self.tabWidgetTarget.indexOf(self.tabTarget1), QtGui.QApplication.translate("TUview", "Target1", None, QtGui.QApplication.UnicodeUTF8)) self.fileScrollBar.setToolTip(QtGui.QApplication.translate("TUview", "Navigate in your file", None, QtGui.QApplication.UnicodeUTF8)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |