ctkEventBusDemoMainWindow.ui 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ctkEventBusDemoMainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>395</width>
  10. <height>352</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  15. <horstretch>0</horstretch>
  16. <verstretch>0</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="minimumSize">
  20. <size>
  21. <width>392</width>
  22. <height>223</height>
  23. </size>
  24. </property>
  25. <property name="maximumSize">
  26. <size>
  27. <width>16777215</width>
  28. <height>16777215</height>
  29. </size>
  30. </property>
  31. <property name="windowTitle">
  32. <string>EventBus Demo App</string>
  33. </property>
  34. <widget class="QWidget" name="centralWidget">
  35. <widget class="QWidget" name="layoutWidget">
  36. <property name="geometry">
  37. <rect>
  38. <x>20</x>
  39. <y>0</y>
  40. <width>361</width>
  41. <height>311</height>
  42. </rect>
  43. </property>
  44. <layout class="QVBoxLayout" name="verticalLayout">
  45. <item>
  46. <layout class="QHBoxLayout" name="horizontalLayout">
  47. <item>
  48. <widget class="QLineEdit" name="hostLineEdit">
  49. <property name="text">
  50. <string>127.0.0.1</string>
  51. </property>
  52. </widget>
  53. </item>
  54. <item>
  55. <widget class="QLineEdit" name="portLineEdit">
  56. <property name="text">
  57. <string>8000</string>
  58. </property>
  59. </widget>
  60. </item>
  61. <item>
  62. <widget class="QPushButton" name="connectButton">
  63. <property name="text">
  64. <string>connect</string>
  65. </property>
  66. </widget>
  67. </item>
  68. </layout>
  69. </item>
  70. <item>
  71. <widget class="QLabel" name="lblAnswer">
  72. <property name="text">
  73. <string>Chat:</string>
  74. </property>
  75. </widget>
  76. </item>
  77. <item>
  78. <widget class="QTextBrowser" name="textBrowser">
  79. <property name="horizontalScrollBarPolicy">
  80. <enum>Qt::ScrollBarAlwaysOff</enum>
  81. </property>
  82. </widget>
  83. </item>
  84. <item>
  85. <widget class="QPlainTextEdit" name="txtParameter">
  86. <property name="enabled">
  87. <bool>false</bool>
  88. </property>
  89. <property name="sizePolicy">
  90. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  91. <horstretch>0</horstretch>
  92. <verstretch>40</verstretch>
  93. </sizepolicy>
  94. </property>
  95. <property name="minimumSize">
  96. <size>
  97. <width>0</width>
  98. <height>30</height>
  99. </size>
  100. </property>
  101. <property name="maximumSize">
  102. <size>
  103. <width>16777215</width>
  104. <height>30</height>
  105. </size>
  106. </property>
  107. </widget>
  108. </item>
  109. <item>
  110. <widget class="QPushButton" name="btnSend">
  111. <property name="enabled">
  112. <bool>false</bool>
  113. </property>
  114. <property name="text">
  115. <string>Send</string>
  116. </property>
  117. </widget>
  118. </item>
  119. </layout>
  120. </widget>
  121. </widget>
  122. <widget class="QMenuBar" name="menuBar">
  123. <property name="geometry">
  124. <rect>
  125. <x>0</x>
  126. <y>0</y>
  127. <width>395</width>
  128. <height>22</height>
  129. </rect>
  130. </property>
  131. </widget>
  132. <widget class="QToolBar" name="mainToolBar">
  133. <property name="maximumSize">
  134. <size>
  135. <width>0</width>
  136. <height>0</height>
  137. </size>
  138. </property>
  139. <attribute name="toolBarArea">
  140. <enum>TopToolBarArea</enum>
  141. </attribute>
  142. <attribute name="toolBarBreak">
  143. <bool>false</bool>
  144. </attribute>
  145. </widget>
  146. <widget class="QStatusBar" name="statusBar">
  147. <property name="minimumSize">
  148. <size>
  149. <width>0</width>
  150. <height>20</height>
  151. </size>
  152. </property>
  153. </widget>
  154. </widget>
  155. <layoutdefault spacing="6" margin="11"/>
  156. <resources/>
  157. <connections/>
  158. <slots>
  159. <slot>sendEvent()</slot>
  160. </slots>
  161. </ui>