FindAndReplaceUi.ui: Use groupboxes to tell the user where to insert what, patch from Tommaso

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31076 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-08-16 00:51:02 +00:00
parent 572b12c70b
commit 5eeeea31e2

View File

@ -1,281 +1,439 @@
<ui version="4.0" > <ui version="4.0">
<class>FindAndReplaceUi</class> <class>FindAndReplaceUi</class>
<widget class="QWidget" name="FindAndReplaceUi" > <widget class="QWidget" name="FindAndReplaceUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>240</width> <width>266</width>
<height>400</height> <height>494</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<hsizetype>3</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize" > <property name="minimumSize">
<size> <size>
<width>240</width> <width>220</width>
<height>400</height> <height>360</height>
</size> </size>
</property> </property>
<property name="baseSize" > <property name="maximumSize">
<size>
<width>16777215</width>
<height>500</height>
</size>
</property>
<property name="baseSize">
<size> <size>
<width>300</width> <width>300</width>
<height>400</height> <height>400</height>
</size> </size>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Find LyX Text</string> <string>Find LyX Text</string>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string/> <string/>
</property> </property>
<widget class="QTabWidget" name="tabWidget" > <layout class="QVBoxLayout" name="verticalLayout">
<property name="geometry" > <item>
<rect> <widget class="QTabWidget" name="tabWidget">
<x>0</x> <property name="sizePolicy">
<y>0</y> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<width>231</width>
<height>381</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex" > <property name="currentIndex">
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab_3" > <widget class="QWidget" name="tab_3">
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<attribute name="title" > <attribute name="title">
<string>Basic</string> <string>Basic</string>
</attribute> </attribute>
<widget class="QWidget" name="layoutWidget" > <layout class="QGridLayout" name="gridLayout_3">
<property name="geometry" > <item row="0" column="0">
<rect> <layout class="QGridLayout" name="gridLayout">
<x>0</x> <property name="sizeConstraint">
<y>0</y>
<width>221</width>
<height>351</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout" >
<property name="sizeConstraint" >
<enum>QLayout::SetNoConstraint</enum> <enum>QLayout::SetNoConstraint</enum>
</property> </property>
<item row="0" column="0" colspan="2" > <item row="2" column="0">
<widget class="lyx::frontend::EmbeddedWorkArea" name="find_work_area_" > <widget class="QCheckBox" name="wordsCB">
<property name="baseSize" > <property name="enabled">
<size>
<width>0</width>
<height>128</height>
</size>
</property>
<property name="widgetResizable" >
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>215</width>
<height>89</height>
</rect>
</property>
</widget>
</widget>
</item>
<item row="2" column="0" >
<widget class="QCheckBox" name="wordsCB" >
<property name="enabled" >
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Whole &amp;words</string> <string>Whole &amp;words</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" > <item row="3" column="0">
<widget class="QPushButton" name="findNextPB" > <widget class="QPushButton" name="findNextPB">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Find &amp;Next</string> <string>Find &amp;Next</string>
</property> </property>
<property name="default" > <property name="default">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" > <item row="6" column="0">
<widget class="QPushButton" name="replaceNextPB" > <widget class="QPushButton" name="replaceNextPB">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Replace Ne&amp;xt</string> <string>Replace Ne&amp;xt</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" > <item row="7" column="0">
<widget class="QPushButton" name="replaceallPB" > <widget class="QPushButton" name="replaceallPB">
<property name="enabled" > <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Replace &amp;All</string> <string>Replace &amp;All</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1" > <item row="7" column="1">
<widget class="QPushButton" name="closePB" > <widget class="QPushButton" name="closePB">
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Close</string> <string>&amp;Close</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0" colspan="2" > <item row="3" column="1">
<widget class="lyx::frontend::EmbeddedWorkArea" name="replace_work_area_" > <widget class="QPushButton" name="findPrevPB">
<property name="baseSize" > <property name="enabled">
<size>
<width>0</width>
<height>128</height>
</size>
</property>
<property name="widgetResizable" >
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QWidget" name="scrollAreaWidgetContents_2" > <property name="sizePolicy">
<property name="geometry" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<rect> <horstretch>0</horstretch>
<x>0</x> <verstretch>0</verstretch>
<y>0</y> </sizepolicy>
<width>215</width>
<height>89</height>
</rect>
</property> </property>
</widget> <property name="text">
</widget>
</item>
<item row="3" column="1" >
<widget class="QPushButton" name="findPrevPB" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="text" >
<string>Find &amp;Prev</string> <string>Find &amp;Prev</string>
</property> </property>
<property name="default" > <property name="default">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" > <item row="6" column="1">
<widget class="QPushButton" name="replacePrevPB" > <widget class="QPushButton" name="replacePrevPB">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Replace P&amp;rev</string> <string>Replace P&amp;rev</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QCheckBox" name="caseCB" > <widget class="QCheckBox" name="caseCB">
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Case &amp;sensitive</string> <string>Case &amp;sensitive</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" > <item row="1" column="1">
<widget class="QCheckBox" name="ignoreFormatCB" > <widget class="QCheckBox" name="ignoreFormatCB">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text" > <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Ignore For&amp;mat</string> <string>Ignore For&amp;mat</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1" > <item row="2" column="1">
<widget class="QComboBox" name="regexpInsertCombo" > <widget class="QComboBox" name="regexpInsertCombo">
<property name="enabled" > <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<item> <item>
<property name="text" > <property name="text">
<string>Match...</string> <string>Match...</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Anything</string> <string>Anything</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Any non-empty</string> <string>Any non-empty</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Any word</string> <string>Any word</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text" > <property name="text">
<string>Any number</string> <string>Any number</string>
</property> </property>
</item> </item>
</widget> </widget>
</item> </item>
</layout> <item row="0" column="0" colspan="2">
</widget> <widget class="QGroupBox" name="groupBox">
</widget> <property name="sizePolicy">
<widget class="QWidget" name="tab_4" > <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<attribute name="title" > <property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>128</height>
</size>
</property>
<property name="toolTip">
<string>Enter the text to search for in this full-featured LyX editing area</string>
</property>
<property name="title">
<string>Search for...</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="1" column="0">
<widget class="lyx::frontend::EmbeddedWorkArea" name="find_work_area_">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>48</height>
</size>
</property>
<property name="toolTip">
<string>Enter the text to search for in this full-featured LyX editing area</string>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>208</width>
<height>97</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Enter the text to replace in this full-featured LyX editing area</string>
</property>
<property name="title">
<string>Replace with...</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="lyx::frontend::EmbeddedWorkArea" name="replace_work_area_">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>48</height>
</size>
</property>
<property name="toolTip">
<string>Enter the text to replace in this full-featured LyX editing area</string>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>208</width>
<height>96</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<attribute name="title">
<string>Advanced</string> <string>Advanced</string>
</attribute> </attribute>
<widget class="QWidget" name="gridLayoutWidget" > <widget class="QWidget" name="gridLayoutWidget">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -283,31 +441,29 @@
<height>143</height> <height>143</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2" > <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" > <item row="0" column="0">
<widget class="QGroupBox" name="groupBox_2" > <widget class="QGroupBox" name="groupBox_2">
<property name="enabled" > <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize" > <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>111</height> <height>111</height>
</size> </size>
</property> </property>
<property name="title" > <property name="title">
<string>Sco&amp;pe</string> <string>Sco&amp;pe</string>
</property> </property>
<widget class="QRadioButton" name="scopeRB" > <widget class="QRadioButton" name="scopeRB">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>40</y> <y>40</y>
@ -315,18 +471,18 @@
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Current buffer only</string> <string>Current buffer only</string>
</property> </property>
<property name="text" > <property name="text">
<string>Buffer</string> <string>Buffer</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" name="scopeRB_3" > <widget class="QRadioButton" name="scopeRB_3">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>60</y> <y>60</y>
@ -334,15 +490,15 @@
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Current file and all included files</string> <string>Current file and all included files</string>
</property> </property>
<property name="text" > <property name="text">
<string>Document</string> <string>Document</string>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" name="scopeRB_2" > <widget class="QRadioButton" name="scopeRB_2">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>20</y> <y>20</y>
@ -350,18 +506,18 @@
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Current paragraph only</string> <string>Current paragraph only</string>
</property> </property>
<property name="text" > <property name="text">
<string>Paragraph</string> <string>Paragraph</string>
</property> </property>
<property name="checked" > <property name="checked">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" name="scopeRB_4" > <widget class="QRadioButton" name="scopeRB_4">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>80</y> <y>80</y>
@ -369,21 +525,21 @@
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>All open buffers</string> <string>All open buffers</string>
</property> </property>
<property name="text" > <property name="text">
<string>Open buffers</string> <string>Open buffers</string>
</property> </property>
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="1" column="0" > <item row="1" column="0">
<widget class="QCheckBox" name="expandMacrosCB" > <widget class="QCheckBox" name="expandMacrosCB">
<property name="enabled" > <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text" > <property name="text">
<string>&amp;Expand macros</string> <string>&amp;Expand macros</string>
</property> </property>
</widget> </widget>
@ -392,17 +548,19 @@
</widget> </widget>
</widget> </widget>
</widget> </widget>
</item>
</layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
<class>lyx::frontend::EmbeddedWorkArea</class> <class>lyx::frontend::EmbeddedWorkArea</class>
<extends>QScrollArea</extends> <extends>QScrollArea</extends>
<header location="global" >GuiWorkArea.h</header> <header location="global">GuiWorkArea.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<includes> <includes>
<include location="local" >qt_helpers.h</include> <include location="local">qt_helpers.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>