TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

editshortcutbase.ui 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
  2. <class>EditShortcutBase</class>
  3. <widget class="TQWidget">
  4. <property name="name">
  5. <cstring>EditShortcutBase</cstring>
  6. </property>
  7. <property name="geometry">
  8. <rect>
  9. <x>0</x>
  10. <y>0</y>
  11. <width>587</width>
  12. <height>402</height>
  13. </rect>
  14. </property>
  15. <vbox>
  16. <property name="name">
  17. <cstring>unnamed</cstring>
  18. </property>
  19. <widget class="TQLabel">
  20. <property name="name">
  21. <cstring>textLabel2</cstring>
  22. </property>
  23. <property name="text">
  24. <string>A single shortcut can be easily assigned or cleared using the two buttons. Only shortcuts with modifiers can be used.&lt;p&gt;
  25. It is possible to have several possible shortcuts, and the first available shortcut will be used. The shortcuts are specified using space-separated shortcut sets. One set is specified as &lt;i&gt;base&lt;/i&gt;+(&lt;i&gt;list&lt;/i&gt;), where base are modifiers and list is a list of keys.&lt;br&gt;
  26. For example "&lt;b&gt;Shift+Alt+(123) Shift+Ctrl+(ABC)&lt;/b&gt;" will first try &lt;b&gt;Shift+Alt+1&lt;/b&gt;, then others with &lt;b&gt;Shift+Ctrl+C&lt;/b&gt; as the last one.</string>
  27. </property>
  28. <property name="textFormat">
  29. <enum>RichText</enum>
  30. </property>
  31. </widget>
  32. <widget class="Line">
  33. <property name="name">
  34. <cstring>line1</cstring>
  35. </property>
  36. <property name="frameShape">
  37. <enum>HLine</enum>
  38. </property>
  39. <property name="frameShadow">
  40. <enum>Sunken</enum>
  41. </property>
  42. <property name="orientation">
  43. <enum>Horizontal</enum>
  44. </property>
  45. </widget>
  46. <widget class="KLineEdit">
  47. <property name="name">
  48. <cstring>shortcut</cstring>
  49. </property>
  50. </widget>
  51. <widget class="TQLayoutWidget">
  52. <property name="name">
  53. <cstring>layout2</cstring>
  54. </property>
  55. <hbox>
  56. <property name="name">
  57. <cstring>unnamed</cstring>
  58. </property>
  59. <spacer>
  60. <property name="name">
  61. <cstring>spacer1</cstring>
  62. </property>
  63. <property name="orientation">
  64. <enum>Horizontal</enum>
  65. </property>
  66. <property name="sizeType">
  67. <enum>Expanding</enum>
  68. </property>
  69. <property name="sizeHint">
  70. <size>
  71. <width>40</width>
  72. <height>20</height>
  73. </size>
  74. </property>
  75. </spacer>
  76. <widget class="TQPushButton">
  77. <property name="name">
  78. <cstring>pushButton1</cstring>
  79. </property>
  80. <property name="text">
  81. <string>&amp;Single Shortcut</string>
  82. </property>
  83. </widget>
  84. <spacer>
  85. <property name="name">
  86. <cstring>spacer2</cstring>
  87. </property>
  88. <property name="orientation">
  89. <enum>Horizontal</enum>
  90. </property>
  91. <property name="sizeType">
  92. <enum>Expanding</enum>
  93. </property>
  94. <property name="sizeHint">
  95. <size>
  96. <width>40</width>
  97. <height>20</height>
  98. </size>
  99. </property>
  100. </spacer>
  101. <widget class="TQPushButton">
  102. <property name="name">
  103. <cstring>pushButton2</cstring>
  104. </property>
  105. <property name="text">
  106. <string>C&amp;lear</string>
  107. </property>
  108. </widget>
  109. <spacer>
  110. <property name="name">
  111. <cstring>spacer3</cstring>
  112. </property>
  113. <property name="orientation">
  114. <enum>Horizontal</enum>
  115. </property>
  116. <property name="sizeType">
  117. <enum>Expanding</enum>
  118. </property>
  119. <property name="sizeHint">
  120. <size>
  121. <width>40</width>
  122. <height>20</height>
  123. </size>
  124. </property>
  125. </spacer>
  126. </hbox>
  127. </widget>
  128. <widget class="Line">
  129. <property name="name">
  130. <cstring>line2</cstring>
  131. </property>
  132. <property name="frameShape">
  133. <enum>HLine</enum>
  134. </property>
  135. <property name="frameShadow">
  136. <enum>Sunken</enum>
  137. </property>
  138. <property name="orientation">
  139. <enum>Horizontal</enum>
  140. </property>
  141. </widget>
  142. </vbox>
  143. </widget>
  144. <connections>
  145. <connection>
  146. <sender>pushButton1</sender>
  147. <signal>clicked()</signal>
  148. <receiver>EditShortcutBase</receiver>
  149. <slot>editShortcut()</slot>
  150. </connection>
  151. <connection>
  152. <sender>pushButton2</sender>
  153. <signal>clicked()</signal>
  154. <receiver>EditShortcutBase</receiver>
  155. <slot>clearShortcut()</slot>
  156. </connection>
  157. </connections>
  158. <Q_SLOTS>
  159. <slot access="protected" specifier="pure virtual">editShortcut()</slot>
  160. <slot access="protected" specifier="pure virtual">clearShortcut()</slot>
  161. </Q_SLOTS>
  162. <layoutdefaults spacing="6" margin="11"/>
  163. <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
  164. <includes>
  165. <include location="global" impldecl="in implementation">klineedit.h</include>
  166. </includes>
  167. </UI>