mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
aa176fd56c
* src/frontends/qt4/CustomizedWidgets{cpp,h}: - rename ShortcutLineEdit to ShortcutWidget and build it on top of QLabel instead of QLineEdit * src/frontends/qt4/GuiPrefs.{cpp,h}: * src/frontends/qt4/ui/ShortcutUi.ui: - improve shortcut editing - rename shortcutLE to shortcutWG - add/improve tooltips git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25770 a592a061-630c-0410-9148-cb99ea01b6c8
147 lines
3.6 KiB
XML
147 lines
3.6 KiB
XML
<ui version="4.0" >
|
|
<class>shortcutUi</class>
|
|
<widget class="QDialog" name="shortcutUi" >
|
|
<property name="geometry" >
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>348</width>
|
|
<height>106</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle" >
|
|
<string>Edit shortcut</string>
|
|
</property>
|
|
<property name="sizeGripEnabled" >
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QGridLayout" >
|
|
<property name="margin" >
|
|
<number>9</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item row="1" column="1" >
|
|
<widget class="lyx::frontend::ShortcutWidget" name="shortcutWG" >
|
|
<property name="enabled" >
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip" >
|
|
<string>Type shortcut after clicking on this field. You can reset the content with the 'Clear' button</string>
|
|
</property>
|
|
<property name="text" >
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" colspan="2" >
|
|
<widget class="QLineEdit" name="lfunLE" >
|
|
<property name="toolTip" >
|
|
<string>Enter LyX function or command sequence</string>
|
|
</property>
|
|
<property name="text" >
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2" >
|
|
<widget class="QPushButton" name="clearPB" >
|
|
<property name="toolTip" >
|
|
<string>Clear current shortcut</string>
|
|
</property>
|
|
<property name="text" >
|
|
<string>C&lear</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" >
|
|
<widget class="QLabel" name="lfunLBL" >
|
|
<property name="text" >
|
|
<string>&Function:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>lfunLE</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" >
|
|
<widget class="QLabel" name="shortcutLBL" >
|
|
<property name="text" >
|
|
<string>&Shortcut:</string>
|
|
</property>
|
|
<property name="buddy" >
|
|
<cstring>shortcutWG</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="3" >
|
|
<layout class="QHBoxLayout" >
|
|
<property name="margin" >
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing" >
|
|
<number>6</number>
|
|
</property>
|
|
<item>
|
|
<spacer>
|
|
<property name="orientation" >
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType" >
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" >
|
|
<size>
|
|
<width>20</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="okPB" >
|
|
<property name="text" >
|
|
<string>&OK</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="default" >
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="cancelPB" >
|
|
<property name="text" >
|
|
<string>Cancel</string>
|
|
</property>
|
|
<property name="autoDefault" >
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>lyx::frontend::ShortcutWidget</class>
|
|
<extends>QLineEdit</extends>
|
|
<header>CustomizedWidgets.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>lfunLE</tabstop>
|
|
<tabstop>okPB</tabstop>
|
|
<tabstop>cancelPB</tabstop>
|
|
</tabstops>
|
|
<includes>
|
|
<include location="local" >qt_i18n.h</include>
|
|
</includes>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|