hardsploit_gui 2.2 → 2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/bin/hardsploit_gui +2 -2
  3. data/lib/{Firmware → Firmwares}/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  4. data/lib/{Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd → Firmwares/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd} +0 -0
  5. data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
  6. data/lib/{Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd → Firmwares/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd} +0 -0
  7. data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
  8. data/lib/{Firmware → Firmwares}/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
  9. data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
  10. data/lib/{Firmware → Firmwares}/FPGA/VersionFPGA.rb +1 -1
  11. data/lib/{Firmware → Firmwares}/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
  12. data/lib/{Firmware → Firmwares}/UC/VersionUC.rb +1 -1
  13. data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -0
  14. data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -0
  15. data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -0
  16. data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -0
  17. data/lib/HardsploitAPI/{HardsploitAPI_PROGRESS.rb → Core/HardsploitAPI_PROGRESS.rb} +0 -0
  18. data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -0
  19. data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -0
  20. data/lib/HardsploitAPI/{HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb → Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb} +26 -49
  21. data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -0
  22. data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -0
  23. data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -0
  24. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -0
  25. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -0
  26. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -0
  27. data/lib/HardsploitAPI/{SWD → Modules/SWD}/HardsploitAPI_SWD_STM32.rb +32 -15
  28. data/lib/HardsploitAPI/{HardsploitAPI_TEST_INTERACT.rb → Modules/TEST/HardsploitAPI_TEST_INTERACT.rb} +1 -1
  29. data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -0
  30. data/lib/Hardsploit_gui.rb +96 -0
  31. data/lib/class/Chip_editor.rb +186 -330
  32. data/lib/class/Chip_management.rb +496 -0
  33. data/lib/class/Command_editor.rb +130 -182
  34. data/lib/class/Command_table.rb +16 -22
  35. data/lib/class/Console.rb +0 -2
  36. data/lib/class/ErrorMsg.rb +312 -0
  37. data/lib/class/Export.rb +140 -0
  38. data/lib/class/Export_manager.rb +43 -43
  39. data/lib/class/Firmware.rb +52 -11
  40. data/lib/class/Generic_commands.rb +180 -190
  41. data/lib/class/Import.rb +193 -0
  42. data/lib/class/Progress_bar.rb +1 -0
  43. data/lib/class/Signal_mapper.rb +120 -0
  44. data/lib/class/Wire_helper.rb +132 -148
  45. data/lib/class/{I2C → i2c}/I2c_command.rb +16 -13
  46. data/lib/class/i2c/I2c_export.rb +95 -0
  47. data/lib/class/i2c/I2c_import.rb +117 -0
  48. data/lib/class/i2c/I2c_scanner.rb +114 -0
  49. data/lib/class/i2c/I2c_settings.rb +148 -0
  50. data/lib/class/parallel/Parallel_export.rb +118 -0
  51. data/lib/class/parallel/Parallel_import.rb +113 -0
  52. data/lib/class/parallel/Parallel_settings.rb +81 -0
  53. data/lib/class/spi/Spi_export.rb +108 -0
  54. data/lib/class/spi/Spi_import.rb +159 -0
  55. data/lib/class/spi/Spi_settings.rb +108 -0
  56. data/lib/class/spi/Spi_sniffer.rb +101 -0
  57. data/lib/class/swd/Swd.rb +125 -0
  58. data/lib/class/swd/Swd_scanner.rb +121 -0
  59. data/lib/class/swd/Swd_settings.rb +76 -0
  60. data/lib/class/uart/Uart_baudrate.rb +62 -0
  61. data/lib/class/uart/Uart_console.rb +115 -0
  62. data/lib/class/uart/Uart_settings.rb +102 -0
  63. data/lib/db/associations.rb +42 -29
  64. data/lib/db/database.rb +4 -0
  65. data/lib/db/development.sqlite3 +0 -0
  66. data/lib/db/migrate/004_create_manufacturers.rb +13 -0
  67. data/lib/db/migrate/005_create_packages.rb +13 -0
  68. data/lib/db/migrate/006_create_chip_types.rb +11 -0
  69. data/lib/db/migrate/007_create_buses.rb +11 -0
  70. data/lib/db/migrate/008_create_signals.rb +14 -0
  71. data/lib/db/migrate/009_create_chips.rb +25 -0
  72. data/lib/db/migrate/010_create_commands.rb +21 -0
  73. data/lib/db/migrate/011_create_bytes.rb +19 -0
  74. data/lib/db/migrate/012_create_i2c_settings.rb +21 -0
  75. data/lib/db/migrate/013_create_spi_settings.rb +26 -0
  76. data/lib/db/migrate/014_create_parallel_settings.rb +21 -0
  77. data/lib/db/migrate/015_create_pins.rb +19 -0
  78. data/lib/db/migrate/016_create_uses.rb +17 -0
  79. data/lib/db/migrate/017_create_swd_settings.rb +19 -0
  80. data/lib/db/migrate/018_create_uart_settings.rb +22 -0
  81. data/lib/db/schema.rb +157 -0
  82. data/lib/db/seeds.rb +161 -0
  83. data/lib/gui/gui_chip_editor.rb +23 -22
  84. data/lib/gui/gui_chip_management.rb +43 -38
  85. data/lib/gui/gui_command_editor.rb +2 -1
  86. data/lib/gui/gui_export.rb +132 -0
  87. data/lib/gui/gui_generic_commands.rb +69 -31
  88. data/lib/gui/gui_generic_export.rb +18 -2
  89. data/lib/gui/gui_generic_import.rb +18 -2
  90. data/lib/gui/gui_i2c_command.rb +2 -1
  91. data/lib/gui/gui_i2c_settings.rb +2 -2
  92. data/lib/gui/gui_import.rb +131 -0
  93. data/lib/gui/gui_parallel_settings.rb +2 -1
  94. data/lib/gui/gui_progress_bar.rb +2 -1
  95. data/lib/gui/gui_signal_mapper.rb +121 -0
  96. data/lib/gui/gui_signal_scanner.rb +146 -0
  97. data/lib/gui/gui_spi_settings.rb +6 -2
  98. data/lib/gui/gui_spi_sniffer.rb +112 -0
  99. data/lib/gui/gui_swd_settings.rb +166 -0
  100. data/lib/gui/gui_uart_baudrate.rb +114 -0
  101. data/lib/gui/gui_uart_console.rb +164 -0
  102. data/lib/gui/gui_uart_settings.rb +243 -0
  103. data/lib/gui_designer/gui_chip_editor.ui +9 -6
  104. data/lib/gui_designer/gui_chip_management.ui +79 -35
  105. data/lib/gui_designer/gui_command_editor.ui +3 -0
  106. data/lib/gui_designer/gui_export.ui +171 -0
  107. data/lib/gui_designer/gui_generic_commands.ui +274 -190
  108. data/lib/gui_designer/gui_generic_export.ui +24 -1
  109. data/lib/gui_designer/gui_generic_import.ui +25 -2
  110. data/lib/gui_designer/gui_i2c_command.ui +3 -0
  111. data/lib/gui_designer/gui_i2c_settings.ui +2 -2
  112. data/lib/gui_designer/gui_import.ui +168 -0
  113. data/lib/gui_designer/gui_parallel_settings.ui +4 -1
  114. data/lib/gui_designer/gui_progress_bar.ui +3 -0
  115. data/lib/gui_designer/gui_signal_mapper.ui +179 -0
  116. data/lib/gui_designer/gui_signal_scanner.ui +261 -0
  117. data/lib/gui_designer/gui_spi_settings.ui +15 -2
  118. data/lib/gui_designer/gui_spi_sniffer.ui +156 -0
  119. data/lib/gui_designer/gui_swd_settings.ui +189 -0
  120. data/lib/gui_designer/gui_uart_baudrate.ui +161 -0
  121. data/lib/gui_designer/gui_uart_console.ui +284 -0
  122. data/lib/gui_designer/gui_uart_settings.ui +280 -0
  123. data/lib/logs/error.log +63 -0
  124. data/lib/models/bus.rb +19 -0
  125. data/lib/models/byte.rb +29 -0
  126. data/lib/models/chip.rb +41 -0
  127. data/lib/models/chip_type.rb +14 -0
  128. data/lib/models/command.rb +20 -0
  129. data/lib/models/i2c_setting.rb +41 -0
  130. data/lib/models/manufacturer.rb +14 -0
  131. data/lib/models/package.rb +26 -0
  132. data/lib/models/parallel_setting.rb +37 -0
  133. data/lib/models/pin.rb +14 -0
  134. data/lib/models/signall.rb +20 -0
  135. data/lib/models/spi_setting.rb +67 -0
  136. data/lib/models/swd_setting.rb +25 -0
  137. data/lib/models/uart_setting.rb +52 -0
  138. data/lib/models/use.rb +6 -0
  139. data/lib/startHardsploit.rb +2 -2
  140. metadata +106 -41
  141. data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
  142. data/lib/HardsploitAPI/HardsploitAPI.rb +0 -133
  143. data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +0 -145
  144. data/lib/HardsploitAPI/HardsploitAPI_ERROR.rb +0 -38
  145. data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +0 -311
  146. data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +0 -360
  147. data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +0 -369
  148. data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +0 -148
  149. data/lib/HardsploitAPI/LICENSE.txt +0 -674
  150. data/lib/HardsploitAPI/README.md +0 -22
  151. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +0 -249
  152. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +0 -102
  153. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +0 -78
  154. data/lib/HardsploitAPI/TRADEMARK +0 -3
  155. data/lib/class/HardsploitGUI.rb +0 -463
  156. data/lib/class/I2C/I2c_export.rb +0 -118
  157. data/lib/class/I2C/I2c_import.rb +0 -79
  158. data/lib/class/I2C/I2c_settings.rb +0 -129
  159. data/lib/class/PARALLEL/Parallel_export.rb +0 -146
  160. data/lib/class/PARALLEL/Parallel_import.rb +0 -88
  161. data/lib/class/PARALLEL/Parallel_settings.rb +0 -102
  162. data/lib/class/SPI/Spi_export.rb +0 -138
  163. data/lib/class/SPI/Spi_import.rb +0 -113
  164. data/lib/class/SPI/Spi_settings.rb +0 -134
  165. data/lib/db/hs.db +0 -0
  166. data/lib/hardsploit.rb +0 -131
@@ -2,6 +2,9 @@
2
2
  <ui version="4.0">
3
3
  <class>Command_editor</class>
4
4
  <widget class="QWidget" name="Command_editor">
5
+ <property name="windowModality">
6
+ <enum>Qt::ApplicationModal</enum>
7
+ </property>
5
8
  <property name="geometry">
6
9
  <rect>
7
10
  <x>0</x>
@@ -0,0 +1,171 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>Export</class>
4
+ <widget class="QWidget" name="Export">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>303</width>
10
+ <height>120</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Export</string>
15
+ </property>
16
+ <layout class="QGridLayout" name="gridLayout">
17
+ <item row="0" column="0">
18
+ <layout class="QVBoxLayout" name="vl">
19
+ <item>
20
+ <widget class="QLabel" name="lbl_export">
21
+ <property name="text">
22
+ <string>Export:</string>
23
+ </property>
24
+ </widget>
25
+ </item>
26
+ <item>
27
+ <layout class="QHBoxLayout" name="hl2">
28
+ <item>
29
+ <widget class="QRadioButton" name="rbn_comp">
30
+ <property name="text">
31
+ <string>Component</string>
32
+ </property>
33
+ <property name="checked">
34
+ <bool>true</bool>
35
+ </property>
36
+ </widget>
37
+ </item>
38
+ <item>
39
+ <widget class="QRadioButton" name="rbn_cmds">
40
+ <property name="text">
41
+ <string>Commands</string>
42
+ </property>
43
+ </widget>
44
+ </item>
45
+ <item>
46
+ <widget class="QRadioButton" name="rbn_both">
47
+ <property name="text">
48
+ <string>Both</string>
49
+ </property>
50
+ <property name="checked">
51
+ <bool>false</bool>
52
+ </property>
53
+ </widget>
54
+ </item>
55
+ </layout>
56
+ </item>
57
+ <item>
58
+ <layout class="QHBoxLayout" name="hl3">
59
+ <item>
60
+ <widget class="QPushButton" name="btn_file">
61
+ <property name="text">
62
+ <string>File...</string>
63
+ </property>
64
+ </widget>
65
+ </item>
66
+ <item>
67
+ <spacer name="hs2">
68
+ <property name="orientation">
69
+ <enum>Qt::Horizontal</enum>
70
+ </property>
71
+ <property name="sizeHint" stdset="0">
72
+ <size>
73
+ <width>40</width>
74
+ <height>20</height>
75
+ </size>
76
+ </property>
77
+ </spacer>
78
+ </item>
79
+ </layout>
80
+ </item>
81
+ <item>
82
+ <layout class="QHBoxLayout" name="hl">
83
+ <item>
84
+ <spacer name="hs">
85
+ <property name="orientation">
86
+ <enum>Qt::Horizontal</enum>
87
+ </property>
88
+ <property name="sizeHint" stdset="0">
89
+ <size>
90
+ <width>40</width>
91
+ <height>20</height>
92
+ </size>
93
+ </property>
94
+ </spacer>
95
+ </item>
96
+ <item>
97
+ <widget class="QPushButton" name="btn_cancel">
98
+ <property name="text">
99
+ <string>Cancel</string>
100
+ </property>
101
+ </widget>
102
+ </item>
103
+ <item>
104
+ <widget class="QPushButton" name="btn_export">
105
+ <property name="text">
106
+ <string>Export</string>
107
+ </property>
108
+ </widget>
109
+ </item>
110
+ </layout>
111
+ </item>
112
+ </layout>
113
+ </item>
114
+ </layout>
115
+ </widget>
116
+ <resources/>
117
+ <connections>
118
+ <connection>
119
+ <sender>btn_cancel</sender>
120
+ <signal>clicked()</signal>
121
+ <receiver>Export</receiver>
122
+ <slot>close()</slot>
123
+ <hints>
124
+ <hint type="sourcelabel">
125
+ <x>200</x>
126
+ <y>94</y>
127
+ </hint>
128
+ <hint type="destinationlabel">
129
+ <x>2</x>
130
+ <y>90</y>
131
+ </hint>
132
+ </hints>
133
+ </connection>
134
+ <connection>
135
+ <sender>btn_export</sender>
136
+ <signal>clicked()</signal>
137
+ <receiver>Export</receiver>
138
+ <slot>export()</slot>
139
+ <hints>
140
+ <hint type="sourcelabel">
141
+ <x>291</x>
142
+ <y>108</y>
143
+ </hint>
144
+ <hint type="destinationlabel">
145
+ <x>337</x>
146
+ <y>100</y>
147
+ </hint>
148
+ </hints>
149
+ </connection>
150
+ <connection>
151
+ <sender>btn_file</sender>
152
+ <signal>clicked()</signal>
153
+ <receiver>Export</receiver>
154
+ <slot>export_file()</slot>
155
+ <hints>
156
+ <hint type="sourcelabel">
157
+ <x>15</x>
158
+ <y>67</y>
159
+ </hint>
160
+ <hint type="destinationlabel">
161
+ <x>1</x>
162
+ <y>67</y>
163
+ </hint>
164
+ </hints>
165
+ </connection>
166
+ </connections>
167
+ <slots>
168
+ <slot>export()</slot>
169
+ <slot>export_file()</slot>
170
+ </slots>
171
+ </ui>
@@ -1,201 +1,218 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <ui version="4.0">
3
3
  <class>Generic_commands</class>
4
- <widget class="QWidget" name="Generic_commands">
4
+ <widget class="QMainWindow" name="Generic_commands">
5
+ <property name="windowModality">
6
+ <enum>Qt::ApplicationModal</enum>
7
+ </property>
5
8
  <property name="geometry">
6
9
  <rect>
7
10
  <x>0</x>
8
11
  <y>0</y>
9
- <width>532</width>
10
- <height>384</height>
12
+ <width>542</width>
13
+ <height>383</height>
11
14
  </rect>
12
15
  </property>
13
- <property name="minimumSize">
14
- <size>
15
- <width>532</width>
16
- <height>384</height>
17
- </size>
18
- </property>
19
16
  <property name="windowTitle">
20
17
  <string>Hardsploit - Commands</string>
21
18
  </property>
22
- <layout class="QGridLayout" name="gridLayout">
23
- <item row="0" column="0">
24
- <layout class="QVBoxLayout" name="vl">
25
- <item>
26
- <layout class="QHBoxLayout" name="hl">
27
- <item>
28
- <widget class="QLabel" name="lbl_search">
29
- <property name="text">
30
- <string>Search</string>
31
- </property>
32
- </widget>
33
- </item>
34
- <item>
35
- <widget class="QLineEdit" name="lie_search">
36
- <property name="inputMask">
37
- <string/>
38
- </property>
39
- <property name="maxLength">
40
- <number>10</number>
41
- </property>
42
- </widget>
43
- </item>
44
- <item>
45
- <spacer name="hs">
46
- <property name="orientation">
47
- <enum>Qt::Horizontal</enum>
48
- </property>
49
- <property name="sizeHint" stdset="0">
50
- <size>
51
- <width>40</width>
52
- <height>20</height>
53
- </size>
54
- </property>
55
- </spacer>
56
- </item>
57
- <item>
58
- <widget class="QLabel" name="lbl_current_chip">
59
- <property name="text">
60
- <string>Current chip:</string>
61
- </property>
62
- </widget>
63
- </item>
64
- <item>
65
- <widget class="QLabel" name="lbl_chip">
66
- <property name="text">
67
- <string>[CHIP]</string>
68
- </property>
69
- </widget>
70
- </item>
71
- </layout>
72
- </item>
73
- <item>
74
- <layout class="QVBoxLayout" name="vl2">
75
- <item>
76
- <widget class="QTableWidget" name="tbl_cmd">
77
- <property name="font">
78
- <font>
79
- <family>Arial</family>
80
- </font>
81
- </property>
82
- <property name="sortingEnabled">
83
- <bool>true</bool>
84
- </property>
85
- <attribute name="horizontalHeaderVisible">
86
- <bool>true</bool>
87
- </attribute>
88
- <attribute name="horizontalHeaderCascadingSectionResizes">
89
- <bool>false</bool>
90
- </attribute>
91
- <attribute name="horizontalHeaderDefaultSectionSize">
92
- <number>110</number>
93
- </attribute>
94
- <attribute name="horizontalHeaderMinimumSectionSize">
95
- <number>36</number>
96
- </attribute>
97
- <attribute name="horizontalHeaderShowSortIndicator" stdset="0">
98
- <bool>true</bool>
99
- </attribute>
100
- <attribute name="horizontalHeaderStretchLastSection">
101
- <bool>true</bool>
102
- </attribute>
103
- <attribute name="verticalHeaderCascadingSectionResizes">
104
- <bool>false</bool>
105
- </attribute>
106
- <attribute name="verticalHeaderDefaultSectionSize">
107
- <number>30</number>
108
- </attribute>
109
- <attribute name="verticalHeaderStretchLastSection">
110
- <bool>true</bool>
111
- </attribute>
112
- <column>
19
+ <widget class="QWidget" name="centralwidget">
20
+ <layout class="QGridLayout" name="gridLayout">
21
+ <item row="0" column="0">
22
+ <layout class="QVBoxLayout" name="vl">
23
+ <item>
24
+ <layout class="QHBoxLayout" name="hl">
25
+ <item>
26
+ <widget class="QLabel" name="lbl_search">
27
+ <property name="text">
28
+ <string>Search</string>
29
+ </property>
30
+ </widget>
31
+ </item>
32
+ <item>
33
+ <widget class="QLineEdit" name="lie_search">
34
+ <property name="inputMask">
35
+ <string/>
36
+ </property>
37
+ <property name="maxLength">
38
+ <number>10</number>
39
+ </property>
40
+ </widget>
41
+ </item>
42
+ <item>
43
+ <spacer name="hs">
44
+ <property name="orientation">
45
+ <enum>Qt::Horizontal</enum>
46
+ </property>
47
+ <property name="sizeHint" stdset="0">
48
+ <size>
49
+ <width>40</width>
50
+ <height>20</height>
51
+ </size>
52
+ </property>
53
+ </spacer>
54
+ </item>
55
+ <item>
56
+ <widget class="QLabel" name="lbl_current_chip">
113
57
  <property name="text">
114
- <string>Name</string>
58
+ <string>Current chip:</string>
115
59
  </property>
116
- </column>
117
- <column>
60
+ </widget>
61
+ </item>
62
+ <item>
63
+ <widget class="QLabel" name="lbl_chip">
118
64
  <property name="text">
119
- <string>Description</string>
65
+ <string>[CHIP]</string>
120
66
  </property>
121
- </column>
122
- </widget>
123
- </item>
124
- <item>
125
- <layout class="QHBoxLayout" name="hl3">
126
- <item>
127
- <widget class="QCheckBox" name="check_result">
67
+ </widget>
68
+ </item>
69
+ </layout>
70
+ </item>
71
+ <item>
72
+ <layout class="QVBoxLayout" name="vl2">
73
+ <item>
74
+ <widget class="QTableWidget" name="tbl_cmd">
75
+ <property name="font">
76
+ <font>
77
+ <family>Arial</family>
78
+ </font>
79
+ </property>
80
+ <property name="sortingEnabled">
81
+ <bool>true</bool>
82
+ </property>
83
+ <attribute name="horizontalHeaderVisible">
84
+ <bool>true</bool>
85
+ </attribute>
86
+ <attribute name="horizontalHeaderCascadingSectionResizes">
87
+ <bool>false</bool>
88
+ </attribute>
89
+ <attribute name="horizontalHeaderDefaultSectionSize">
90
+ <number>110</number>
91
+ </attribute>
92
+ <attribute name="horizontalHeaderMinimumSectionSize">
93
+ <number>36</number>
94
+ </attribute>
95
+ <attribute name="horizontalHeaderShowSortIndicator" stdset="0">
96
+ <bool>true</bool>
97
+ </attribute>
98
+ <attribute name="horizontalHeaderStretchLastSection">
99
+ <bool>true</bool>
100
+ </attribute>
101
+ <attribute name="verticalHeaderCascadingSectionResizes">
102
+ <bool>false</bool>
103
+ </attribute>
104
+ <attribute name="verticalHeaderDefaultSectionSize">
105
+ <number>30</number>
106
+ </attribute>
107
+ <attribute name="verticalHeaderStretchLastSection">
108
+ <bool>true</bool>
109
+ </attribute>
110
+ <column>
128
111
  <property name="text">
129
- <string>Show command result</string>
130
- </property>
131
- <property name="checked">
132
- <bool>true</bool>
133
- </property>
134
- </widget>
135
- </item>
136
- <item>
137
- <spacer name="hs2">
138
- <property name="orientation">
139
- <enum>Qt::Horizontal</enum>
112
+ <string>Name</string>
140
113
  </property>
141
- <property name="sizeHint" stdset="0">
142
- <size>
143
- <width>40</width>
144
- <height>20</height>
145
- </size>
146
- </property>
147
- </spacer>
148
- </item>
149
- <item>
150
- <widget class="QPushButton" name="btn_new_cmd">
114
+ </column>
115
+ <column>
151
116
  <property name="text">
152
- <string>New Command</string>
117
+ <string>Description</string>
153
118
  </property>
154
- </widget>
155
- </item>
156
- <item>
157
- <widget class="QComboBox" name="cbx_action">
158
- <item>
119
+ </column>
120
+ </widget>
121
+ </item>
122
+ <item>
123
+ <widget class="QLabel" name="label">
124
+ <property name="text">
125
+ <string>Right click on a command to open the menu</string>
126
+ </property>
127
+ </widget>
128
+ </item>
129
+ <item>
130
+ <layout class="QHBoxLayout" name="hl3">
131
+ <item>
132
+ <widget class="QCheckBox" name="check_result">
159
133
  <property name="text">
160
- <string>Action...</string>
134
+ <string>Show command result</string>
161
135
  </property>
162
- </item>
163
- <item>
164
- <property name="text">
165
- <string>Execute</string>
136
+ <property name="checked">
137
+ <bool>true</bool>
166
138
  </property>
167
- </item>
168
- <item>
169
- <property name="text">
170
- <string>Edit</string>
139
+ </widget>
140
+ </item>
141
+ <item>
142
+ <spacer name="hs2">
143
+ <property name="orientation">
144
+ <enum>Qt::Horizontal</enum>
171
145
  </property>
172
- </item>
173
- <item>
174
- <property name="text">
175
- <string>Template</string>
146
+ <property name="sizeHint" stdset="0">
147
+ <size>
148
+ <width>40</width>
149
+ <height>20</height>
150
+ </size>
176
151
  </property>
177
- </item>
178
- <item>
152
+ </spacer>
153
+ </item>
154
+ <item>
155
+ <widget class="QPushButton" name="btn_new_cmd">
179
156
  <property name="text">
180
- <string>Delete</string>
157
+ <string>New Command</string>
181
158
  </property>
182
- </item>
183
- </widget>
184
- </item>
185
- <item>
186
- <widget class="QPushButton" name="btn_next">
187
- <property name="text">
188
- <string>Next</string>
189
- </property>
190
- </widget>
191
- </item>
192
- </layout>
193
- </item>
194
- </layout>
195
- </item>
196
- </layout>
197
- </item>
198
- </layout>
159
+ </widget>
160
+ </item>
161
+ </layout>
162
+ </item>
163
+ </layout>
164
+ </item>
165
+ </layout>
166
+ </item>
167
+ </layout>
168
+ </widget>
169
+ <widget class="QMenuBar" name="menubar">
170
+ <property name="geometry">
171
+ <rect>
172
+ <x>0</x>
173
+ <y>0</y>
174
+ <width>542</width>
175
+ <height>21</height>
176
+ </rect>
177
+ </property>
178
+ <widget class="QMenu" name="menuCommandes">
179
+ <property name="title">
180
+ <string>Commandes...</string>
181
+ </property>
182
+ <addaction name="actionExecute"/>
183
+ <addaction name="actionEdit"/>
184
+ <addaction name="actionTemplate"/>
185
+ <addaction name="actionDelete"/>
186
+ <addaction name="actionConcatenate"/>
187
+ </widget>
188
+ <addaction name="menuCommandes"/>
189
+ </widget>
190
+ <widget class="QStatusBar" name="statusbar"/>
191
+ <action name="actionExecute">
192
+ <property name="text">
193
+ <string>Execute</string>
194
+ </property>
195
+ </action>
196
+ <action name="actionEdit">
197
+ <property name="text">
198
+ <string>Edit</string>
199
+ </property>
200
+ </action>
201
+ <action name="actionTemplate">
202
+ <property name="text">
203
+ <string>Template</string>
204
+ </property>
205
+ </action>
206
+ <action name="actionDelete">
207
+ <property name="text">
208
+ <string>Delete</string>
209
+ </property>
210
+ </action>
211
+ <action name="actionConcatenate">
212
+ <property name="text">
213
+ <string>Concatenate</string>
214
+ </property>
215
+ </action>
199
216
  </widget>
200
217
  <resources/>
201
218
  <connections>
@@ -206,12 +223,12 @@
206
223
  <slot>feed_cmd_array()</slot>
207
224
  <hints>
208
225
  <hint type="sourcelabel">
209
- <x>221</x>
210
- <y>20</y>
226
+ <x>227</x>
227
+ <y>39</y>
211
228
  </hint>
212
229
  <hint type="destinationlabel">
213
- <x>234</x>
214
- <y>5</y>
230
+ <x>284</x>
231
+ <y>40</y>
215
232
  </hint>
216
233
  </hints>
217
234
  </connection>
@@ -219,40 +236,107 @@
219
236
  <sender>btn_new_cmd</sender>
220
237
  <signal>clicked()</signal>
221
238
  <receiver>Generic_commands</receiver>
222
- <slot>open_cmd_form()</slot>
239
+ <slot>create()</slot>
223
240
  <hints>
224
241
  <hint type="sourcelabel">
225
- <x>362</x>
226
- <y>371</y>
242
+ <x>491</x>
243
+ <y>348</y>
227
244
  </hint>
228
245
  <hint type="destinationlabel">
229
- <x>526</x>
230
- <y>45</y>
246
+ <x>336</x>
247
+ <y>362</y>
231
248
  </hint>
232
249
  </hints>
233
250
  </connection>
234
251
  <connection>
235
- <sender>btn_next</sender>
236
- <signal>clicked()</signal>
252
+ <sender>actionExecute</sender>
253
+ <signal>triggered()</signal>
254
+ <receiver>Generic_commands</receiver>
255
+ <slot>execute()</slot>
256
+ <hints>
257
+ <hint type="sourcelabel">
258
+ <x>-1</x>
259
+ <y>-1</y>
260
+ </hint>
261
+ <hint type="destinationlabel">
262
+ <x>270</x>
263
+ <y>191</y>
264
+ </hint>
265
+ </hints>
266
+ </connection>
267
+ <connection>
268
+ <sender>actionEdit</sender>
269
+ <signal>triggered()</signal>
270
+ <receiver>Generic_commands</receiver>
271
+ <slot>edit()</slot>
272
+ <hints>
273
+ <hint type="sourcelabel">
274
+ <x>-1</x>
275
+ <y>-1</y>
276
+ </hint>
277
+ <hint type="destinationlabel">
278
+ <x>270</x>
279
+ <y>191</y>
280
+ </hint>
281
+ </hints>
282
+ </connection>
283
+ <connection>
284
+ <sender>actionDelete</sender>
285
+ <signal>triggered()</signal>
286
+ <receiver>Generic_commands</receiver>
287
+ <slot>delete()</slot>
288
+ <hints>
289
+ <hint type="sourcelabel">
290
+ <x>-1</x>
291
+ <y>-1</y>
292
+ </hint>
293
+ <hint type="destinationlabel">
294
+ <x>270</x>
295
+ <y>191</y>
296
+ </hint>
297
+ </hints>
298
+ </connection>
299
+ <connection>
300
+ <sender>actionTemplate</sender>
301
+ <signal>triggered()</signal>
302
+ <receiver>Generic_commands</receiver>
303
+ <slot>template()</slot>
304
+ <hints>
305
+ <hint type="sourcelabel">
306
+ <x>-1</x>
307
+ <y>-1</y>
308
+ </hint>
309
+ <hint type="destinationlabel">
310
+ <x>270</x>
311
+ <y>191</y>
312
+ </hint>
313
+ </hints>
314
+ </connection>
315
+ <connection>
316
+ <sender>actionConcatenate</sender>
317
+ <signal>triggered()</signal>
237
318
  <receiver>Generic_commands</receiver>
238
- <slot>exec_action()</slot>
319
+ <slot>concatenate()</slot>
239
320
  <hints>
240
321
  <hint type="sourcelabel">
241
- <x>519</x>
242
- <y>371</y>
322
+ <x>-1</x>
323
+ <y>-1</y>
243
324
  </hint>
244
325
  <hint type="destinationlabel">
245
- <x>524</x>
246
- <y>81</y>
326
+ <x>270</x>
327
+ <y>191</y>
247
328
  </hint>
248
329
  </hints>
249
330
  </connection>
250
331
  </connections>
251
332
  <slots>
252
333
  <slot>feed_cmd_array()</slot>
253
- <slot>show_result(bool)</slot>
254
- <slot>open_cmd_form()</slot>
255
334
  <slot>exec_action()</slot>
256
- <slot>save_param()</slot>
335
+ <slot>execute()</slot>
336
+ <slot>template()</slot>
337
+ <slot>edit()</slot>
338
+ <slot>concatenate()</slot>
339
+ <slot>delete()</slot>
340
+ <slot>create()</slot>
257
341
  </slots>
258
342
  </ui>