hardsploit_gui 2.3 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -22
  3. data/Rakefile +1 -1
  4. data/bin/hardsploit_gui +3 -3
  5. data/lib/Firmwares/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  6. data/lib/Firmwares/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
  7. data/lib/Firmwares/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
  8. data/lib/Firmwares/FPGA/SPI/SPI_SNIFFER/HARDSPLOIT_FIRMWARE_FPGA_SPI_SNIFFER.rpd +0 -0
  9. data/lib/Firmwares/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
  10. data/lib/Firmwares/FPGA/UART/UART_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_UART_INTERACT.rpd +0 -0
  11. data/lib/Firmwares/FPGA/VersionFPGA.rb +5 -5
  12. data/lib/Firmwares/UC/VersionUC.rb +12 -12
  13. data/lib/HardsploitAPI/Core/HardsploitAPI.rb +210 -210
  14. data/lib/HardsploitAPI/Core/HardsploitAPI_CONSTANT.rb +150 -150
  15. data/lib/HardsploitAPI/Core/HardsploitAPI_ERROR.rb +109 -109
  16. data/lib/HardsploitAPI/Core/HardsploitAPI_FIRMWARE.rb +305 -305
  17. data/lib/HardsploitAPI/Core/HardsploitAPI_PROGRESS.rb +28 -28
  18. data/lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb +166 -166
  19. data/lib/HardsploitAPI/Modules/I2C/HardsploitAPI_I2C.rb +356 -356
  20. data/lib/HardsploitAPI/Modules/NO_MUX_PARALLEL_MEMORY/HardsploitAPI_NO_MUX_PARALLEL_MEMORY.rb +206 -206
  21. data/lib/HardsploitAPI/Modules/NRF24L01/HardsploitAPI_NRF24L01.rb +306 -306
  22. data/lib/HardsploitAPI/Modules/SPI/HardsploitAPI_SPI.rb +340 -340
  23. data/lib/HardsploitAPI/Modules/SPI_SNIFFER/HardsploitAPI_SPI_SNIFFER.rb +83 -83
  24. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD.rb +367 -367
  25. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_DEBUG.rb +89 -89
  26. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_MEM_AP.rb +61 -61
  27. data/lib/HardsploitAPI/Modules/SWD/HardsploitAPI_SWD_STM32.rb +121 -121
  28. data/lib/HardsploitAPI/Modules/TEST/HardsploitAPI_TEST_INTERACT.rb +98 -98
  29. data/lib/HardsploitAPI/Modules/UART/HardsploitAPI_UART.rb +196 -196
  30. data/lib/Hardsploit_gui.rb +96 -96
  31. data/lib/LICENSE.txt +674 -674
  32. data/lib/README.md +22 -22
  33. data/lib/TRADEMARK +2 -2
  34. data/lib/class/Chip_editor.rb +304 -304
  35. data/lib/class/Chip_management.rb +496 -496
  36. data/lib/class/Command_editor.rb +216 -216
  37. data/lib/class/Command_table.rb +233 -233
  38. data/lib/class/Console.rb +26 -26
  39. data/lib/class/ErrorMsg.rb +312 -312
  40. data/lib/class/Export.rb +140 -140
  41. data/lib/class/Export_manager.rb +124 -124
  42. data/lib/class/Firmware.rb +70 -70
  43. data/lib/class/Generic_commands.rb +260 -260
  44. data/lib/class/{i2c → I2C}/I2c_command.rb +51 -51
  45. data/lib/class/{i2c → I2C}/I2c_export.rb +95 -95
  46. data/lib/class/{i2c → I2C}/I2c_import.rb +117 -117
  47. data/lib/class/{i2c → I2C}/I2c_scanner.rb +114 -114
  48. data/lib/class/{i2c → I2C}/I2c_settings.rb +148 -148
  49. data/lib/class/Import.rb +193 -193
  50. data/lib/class/{parallel → PARALLEL}/Parallel_export.rb +118 -118
  51. data/lib/class/{parallel → PARALLEL}/Parallel_import.rb +113 -113
  52. data/lib/class/{parallel → PARALLEL}/Parallel_settings.rb +81 -81
  53. data/lib/class/Progress_bar.rb +32 -32
  54. data/lib/class/{spi → SPI}/Spi_export.rb +108 -108
  55. data/lib/class/{spi → SPI}/Spi_import.rb +159 -159
  56. data/lib/class/{spi → SPI}/Spi_settings.rb +108 -108
  57. data/lib/class/{spi → SPI}/Spi_sniffer.rb +101 -101
  58. data/lib/class/Signal_mapper.rb +120 -120
  59. data/lib/class/Wire_helper.rb +230 -230
  60. data/lib/class/swd/Swd.rb +125 -125
  61. data/lib/class/swd/Swd_scanner.rb +121 -121
  62. data/lib/class/swd/Swd_settings.rb +76 -76
  63. data/lib/class/uart/Uart_baudrate.rb +62 -62
  64. data/lib/class/uart/Uart_console.rb +115 -115
  65. data/lib/class/uart/Uart_settings.rb +102 -102
  66. data/lib/db/associations.rb +138 -138
  67. data/lib/db/database.rb +4 -4
  68. data/lib/db/development.sqlite3 +0 -0
  69. data/lib/db/migrate/004_create_manufacturers.rb +13 -13
  70. data/lib/db/migrate/005_create_packages.rb +13 -13
  71. data/lib/db/migrate/006_create_chip_types.rb +11 -11
  72. data/lib/db/migrate/007_create_buses.rb +11 -11
  73. data/lib/db/migrate/008_create_signals.rb +14 -14
  74. data/lib/db/migrate/009_create_chips.rb +25 -25
  75. data/lib/db/migrate/010_create_commands.rb +21 -21
  76. data/lib/db/migrate/011_create_bytes.rb +19 -19
  77. data/lib/db/migrate/012_create_i2c_settings.rb +21 -21
  78. data/lib/db/migrate/013_create_spi_settings.rb +26 -26
  79. data/lib/db/migrate/014_create_parallel_settings.rb +21 -21
  80. data/lib/db/migrate/015_create_pins.rb +19 -19
  81. data/lib/db/migrate/016_create_uses.rb +17 -17
  82. data/lib/db/migrate/017_create_swd_settings.rb +19 -19
  83. data/lib/db/migrate/018_create_uart_settings.rb +22 -22
  84. data/lib/db/schema.rb +157 -157
  85. data/lib/db/seeds.rb +161 -161
  86. data/lib/gui/gui_chip_editor.rb +349 -349
  87. data/lib/gui/gui_chip_management.rb +377 -377
  88. data/lib/gui/gui_command_editor.rb +219 -219
  89. data/lib/gui/gui_export.rb +132 -132
  90. data/lib/gui/gui_export_manager.rb +93 -93
  91. data/lib/gui/gui_generic_commands.rb +202 -202
  92. data/lib/gui/gui_generic_export.rb +164 -164
  93. data/lib/gui/gui_generic_import.rb +142 -142
  94. data/lib/gui/gui_i2c_command.rb +116 -116
  95. data/lib/gui/gui_i2c_settings.rb +230 -230
  96. data/lib/gui/gui_import.rb +131 -131
  97. data/lib/gui/gui_parallel_settings.rb +195 -195
  98. data/lib/gui/gui_progress_bar.rb +85 -85
  99. data/lib/gui/gui_signal_mapper.rb +121 -121
  100. data/lib/gui/gui_signal_scanner.rb +146 -146
  101. data/lib/gui/gui_spi_import.rb +126 -126
  102. data/lib/gui/gui_spi_settings.rb +313 -313
  103. data/lib/gui/gui_spi_sniffer.rb +112 -112
  104. data/lib/gui/gui_swd_settings.rb +166 -166
  105. data/lib/gui/gui_uart_baudrate.rb +114 -114
  106. data/lib/gui/gui_uart_console.rb +164 -164
  107. data/lib/gui/gui_uart_settings.rb +243 -243
  108. data/lib/gui/gui_wire_helper.rb +99 -99
  109. data/lib/gui_designer/gui_chip_editor.ui +549 -549
  110. data/lib/gui_designer/gui_chip_management.ui +886 -886
  111. data/lib/gui_designer/gui_command_editor.ui +350 -350
  112. data/lib/gui_designer/gui_export.ui +171 -171
  113. data/lib/gui_designer/gui_export_manager.ui +115 -115
  114. data/lib/gui_designer/gui_generic_commands.ui +342 -342
  115. data/lib/gui_designer/gui_generic_export.ui +202 -202
  116. data/lib/gui_designer/gui_generic_import.ui +165 -165
  117. data/lib/gui_designer/gui_i2c_command.ui +148 -148
  118. data/lib/gui_designer/gui_i2c_settings.ui +292 -292
  119. data/lib/gui_designer/gui_import.ui +168 -168
  120. data/lib/gui_designer/gui_parallel_settings.ui +247 -247
  121. data/lib/gui_designer/gui_progress_bar.ui +86 -86
  122. data/lib/gui_designer/gui_signal_mapper.ui +179 -179
  123. data/lib/gui_designer/gui_signal_scanner.ui +261 -261
  124. data/lib/gui_designer/gui_spi_settings.ui +446 -446
  125. data/lib/gui_designer/gui_spi_sniffer.ui +156 -156
  126. data/lib/gui_designer/gui_swd_settings.ui +189 -189
  127. data/lib/gui_designer/gui_uart_baudrate.ui +161 -161
  128. data/lib/gui_designer/gui_uart_console.ui +284 -284
  129. data/lib/gui_designer/gui_uart_settings.ui +280 -280
  130. data/lib/gui_designer/gui_wire_helper.ui +117 -117
  131. data/lib/images/search.png +0 -0
  132. data/lib/logs/error.log +0 -63
  133. data/lib/models/bus.rb +19 -19
  134. data/lib/models/byte.rb +29 -29
  135. data/lib/models/chip.rb +41 -41
  136. data/lib/models/chip_type.rb +14 -14
  137. data/lib/models/command.rb +20 -20
  138. data/lib/models/i2c_setting.rb +41 -41
  139. data/lib/models/manufacturer.rb +14 -14
  140. data/lib/models/package.rb +26 -26
  141. data/lib/models/parallel_setting.rb +37 -37
  142. data/lib/models/pin.rb +14 -14
  143. data/lib/models/signall.rb +20 -20
  144. data/lib/models/spi_setting.rb +67 -67
  145. data/lib/models/swd_setting.rb +25 -25
  146. data/lib/models/uart_setting.rb +52 -52
  147. data/lib/models/use.rb +6 -6
  148. data/lib/startHardsploit.rb +10 -10
  149. metadata +14 -14
@@ -1,93 +1,93 @@
1
- =begin
2
- ** Form generated from reading ui file 'gui_export_manager.ui'
3
- **
4
- ** Created: jeu. déc. 17 11:12:21 2015
5
- ** by: Qt User Interface Compiler version 4.8.6
6
- **
7
- ** WARNING! All changes made in this file will be lost when recompiling ui file!
8
- =end
9
-
10
- class Ui_Export_manager
11
- attr_reader :gridLayout
12
- attr_reader :verticalLayout
13
- attr_reader :lbl_result
14
- attr_reader :tbl_result
15
- attr_reader :horizontalLayout
16
- attr_reader :horizontalSpacer
17
- attr_reader :cbx_export
18
- attr_reader :btn_save
19
-
20
- def setupUi(export_manager)
21
- if export_manager.objectName.nil?
22
- export_manager.objectName = "export_manager"
23
- end
24
- export_manager.windowModality = Qt::ApplicationModal
25
- export_manager.resize(276, 601)
26
- @gridLayout = Qt::GridLayout.new(export_manager)
27
- @gridLayout.objectName = "gridLayout"
28
- @verticalLayout = Qt::VBoxLayout.new()
29
- @verticalLayout.objectName = "verticalLayout"
30
- @lbl_result = Qt::Label.new(export_manager)
31
- @lbl_result.objectName = "lbl_result"
32
- @lbl_result.minimumSize = Qt::Size.new(241, 16)
33
- @lbl_result.maximumSize = Qt::Size.new(240, 16)
34
-
35
- @verticalLayout.addWidget(@lbl_result)
36
-
37
- @tbl_result = Qt::TableWidget.new(export_manager)
38
- @tbl_result.objectName = "tbl_result"
39
-
40
- @verticalLayout.addWidget(@tbl_result)
41
-
42
- @horizontalLayout = Qt::HBoxLayout.new()
43
- @horizontalLayout.objectName = "horizontalLayout"
44
- @horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
45
-
46
- @horizontalLayout.addItem(@horizontalSpacer)
47
-
48
- @cbx_export = Qt::ComboBox.new(export_manager)
49
- @cbx_export.objectName = "cbx_export"
50
-
51
- @horizontalLayout.addWidget(@cbx_export)
52
-
53
- @btn_save = Qt::PushButton.new(export_manager)
54
- @btn_save.objectName = "btn_save"
55
-
56
- @horizontalLayout.addWidget(@btn_save)
57
-
58
-
59
- @verticalLayout.addLayout(@horizontalLayout)
60
-
61
-
62
- @gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
63
-
64
-
65
- retranslateUi(export_manager)
66
- Qt::Object.connect(@btn_save, SIGNAL('clicked()'), export_manager, SLOT('save_result()'))
67
-
68
- Qt::MetaObject.connectSlotsByName(export_manager)
69
- end # setupUi
70
-
71
- def setup_ui(export_manager)
72
- setupUi(export_manager)
73
- end
74
-
75
- def retranslateUi(export_manager)
76
- export_manager.windowTitle = Qt::Application.translate("Export_manager", "Hardsploit - Export", nil, Qt::Application::UnicodeUTF8)
77
- @lbl_result.text = Qt::Application.translate("Export_manager", "Command result:", nil, Qt::Application::UnicodeUTF8)
78
- @cbx_export.insertItems(0, [Qt::Application.translate("Export_manager", "Debug (CSV file)", nil, Qt::Application::UnicodeUTF8),
79
- Qt::Application.translate("Export_manager", "Data only (Read)", nil, Qt::Application::UnicodeUTF8)])
80
- @btn_save.text = Qt::Application.translate("Export_manager", "Save...", nil, Qt::Application::UnicodeUTF8)
81
- end # retranslateUi
82
-
83
- def retranslate_ui(export_manager)
84
- retranslateUi(export_manager)
85
- end
86
-
87
- end
88
-
89
- module Ui
90
- class Export_manager < Ui_Export_manager
91
- end
92
- end # module Ui
93
-
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_export_manager.ui'
3
+ **
4
+ ** Created: jeu. déc. 17 11:12:21 2015
5
+ ** by: Qt User Interface Compiler version 4.8.6
6
+ **
7
+ ** WARNING! All changes made in this file will be lost when recompiling ui file!
8
+ =end
9
+
10
+ class Ui_Export_manager
11
+ attr_reader :gridLayout
12
+ attr_reader :verticalLayout
13
+ attr_reader :lbl_result
14
+ attr_reader :tbl_result
15
+ attr_reader :horizontalLayout
16
+ attr_reader :horizontalSpacer
17
+ attr_reader :cbx_export
18
+ attr_reader :btn_save
19
+
20
+ def setupUi(export_manager)
21
+ if export_manager.objectName.nil?
22
+ export_manager.objectName = "export_manager"
23
+ end
24
+ export_manager.windowModality = Qt::ApplicationModal
25
+ export_manager.resize(276, 601)
26
+ @gridLayout = Qt::GridLayout.new(export_manager)
27
+ @gridLayout.objectName = "gridLayout"
28
+ @verticalLayout = Qt::VBoxLayout.new()
29
+ @verticalLayout.objectName = "verticalLayout"
30
+ @lbl_result = Qt::Label.new(export_manager)
31
+ @lbl_result.objectName = "lbl_result"
32
+ @lbl_result.minimumSize = Qt::Size.new(241, 16)
33
+ @lbl_result.maximumSize = Qt::Size.new(240, 16)
34
+
35
+ @verticalLayout.addWidget(@lbl_result)
36
+
37
+ @tbl_result = Qt::TableWidget.new(export_manager)
38
+ @tbl_result.objectName = "tbl_result"
39
+
40
+ @verticalLayout.addWidget(@tbl_result)
41
+
42
+ @horizontalLayout = Qt::HBoxLayout.new()
43
+ @horizontalLayout.objectName = "horizontalLayout"
44
+ @horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
45
+
46
+ @horizontalLayout.addItem(@horizontalSpacer)
47
+
48
+ @cbx_export = Qt::ComboBox.new(export_manager)
49
+ @cbx_export.objectName = "cbx_export"
50
+
51
+ @horizontalLayout.addWidget(@cbx_export)
52
+
53
+ @btn_save = Qt::PushButton.new(export_manager)
54
+ @btn_save.objectName = "btn_save"
55
+
56
+ @horizontalLayout.addWidget(@btn_save)
57
+
58
+
59
+ @verticalLayout.addLayout(@horizontalLayout)
60
+
61
+
62
+ @gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
63
+
64
+
65
+ retranslateUi(export_manager)
66
+ Qt::Object.connect(@btn_save, SIGNAL('clicked()'), export_manager, SLOT('save_result()'))
67
+
68
+ Qt::MetaObject.connectSlotsByName(export_manager)
69
+ end # setupUi
70
+
71
+ def setup_ui(export_manager)
72
+ setupUi(export_manager)
73
+ end
74
+
75
+ def retranslateUi(export_manager)
76
+ export_manager.windowTitle = Qt::Application.translate("Export_manager", "Hardsploit - Export", nil, Qt::Application::UnicodeUTF8)
77
+ @lbl_result.text = Qt::Application.translate("Export_manager", "Command result:", nil, Qt::Application::UnicodeUTF8)
78
+ @cbx_export.insertItems(0, [Qt::Application.translate("Export_manager", "Debug (CSV file)", nil, Qt::Application::UnicodeUTF8),
79
+ Qt::Application.translate("Export_manager", "Data only (Read)", nil, Qt::Application::UnicodeUTF8)])
80
+ @btn_save.text = Qt::Application.translate("Export_manager", "Save...", nil, Qt::Application::UnicodeUTF8)
81
+ end # retranslateUi
82
+
83
+ def retranslate_ui(export_manager)
84
+ retranslateUi(export_manager)
85
+ end
86
+
87
+ end
88
+
89
+ module Ui
90
+ class Export_manager < Ui_Export_manager
91
+ end
92
+ end # module Ui
93
+
@@ -1,202 +1,202 @@
1
- =begin
2
- ** Form generated from reading ui file 'gui_generic_commands.ui'
3
- **
4
- ** Created: jeu. mai 26 15:29:15 2016
5
- ** by: Qt User Interface Compiler version 4.8.6
6
- **
7
- ** WARNING! All changes made in this file will be lost when recompiling ui file!
8
- =end
9
-
10
- class Ui_Generic_commands
11
- attr_reader :actionExecute
12
- attr_reader :actionEdit
13
- attr_reader :actionTemplate
14
- attr_reader :actionDelete
15
- attr_reader :actionConcatenate
16
- attr_reader :centralwidget
17
- attr_reader :gridLayout
18
- attr_reader :vl
19
- attr_reader :hl
20
- attr_reader :lbl_search
21
- attr_reader :lie_search
22
- attr_reader :hs
23
- attr_reader :lbl_current_chip
24
- attr_reader :lbl_chip
25
- attr_reader :vl2
26
- attr_reader :tbl_cmd
27
- attr_reader :label
28
- attr_reader :hl3
29
- attr_reader :check_result
30
- attr_reader :hs2
31
- attr_reader :btn_new_cmd
32
- attr_reader :menubar
33
- attr_reader :menuCommandes
34
- attr_reader :statusbar
35
-
36
- def setupUi(generic_commands)
37
- if generic_commands.objectName.nil?
38
- generic_commands.objectName = "generic_commands"
39
- end
40
- generic_commands.windowModality = Qt::ApplicationModal
41
- generic_commands.resize(542, 383)
42
- @actionExecute = Qt::Action.new(generic_commands)
43
- @actionExecute.objectName = "actionExecute"
44
- @actionEdit = Qt::Action.new(generic_commands)
45
- @actionEdit.objectName = "actionEdit"
46
- @actionTemplate = Qt::Action.new(generic_commands)
47
- @actionTemplate.objectName = "actionTemplate"
48
- @actionDelete = Qt::Action.new(generic_commands)
49
- @actionDelete.objectName = "actionDelete"
50
- @actionConcatenate = Qt::Action.new(generic_commands)
51
- @actionConcatenate.objectName = "actionConcatenate"
52
- @centralwidget = Qt::Widget.new(generic_commands)
53
- @centralwidget.objectName = "centralwidget"
54
- @gridLayout = Qt::GridLayout.new(@centralwidget)
55
- @gridLayout.objectName = "gridLayout"
56
- @vl = Qt::VBoxLayout.new()
57
- @vl.objectName = "vl"
58
- @hl = Qt::HBoxLayout.new()
59
- @hl.objectName = "hl"
60
- @lbl_search = Qt::Label.new(@centralwidget)
61
- @lbl_search.objectName = "lbl_search"
62
-
63
- @hl.addWidget(@lbl_search)
64
-
65
- @lie_search = Qt::LineEdit.new(@centralwidget)
66
- @lie_search.objectName = "lie_search"
67
- @lie_search.maxLength = 10
68
-
69
- @hl.addWidget(@lie_search)
70
-
71
- @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
72
-
73
- @hl.addItem(@hs)
74
-
75
- @lbl_current_chip = Qt::Label.new(@centralwidget)
76
- @lbl_current_chip.objectName = "lbl_current_chip"
77
-
78
- @hl.addWidget(@lbl_current_chip)
79
-
80
- @lbl_chip = Qt::Label.new(@centralwidget)
81
- @lbl_chip.objectName = "lbl_chip"
82
-
83
- @hl.addWidget(@lbl_chip)
84
-
85
-
86
- @vl.addLayout(@hl)
87
-
88
- @vl2 = Qt::VBoxLayout.new()
89
- @vl2.objectName = "vl2"
90
- @tbl_cmd = Qt::TableWidget.new(@centralwidget)
91
- @tbl_cmd.objectName = "tbl_cmd"
92
- @font = Qt::Font.new
93
- @font.family = "Arial"
94
- @tbl_cmd.font = @font
95
- @tbl_cmd.sortingEnabled = true
96
-
97
- @vl2.addWidget(@tbl_cmd)
98
-
99
- @label = Qt::Label.new(@centralwidget)
100
- @label.objectName = "label"
101
-
102
- @vl2.addWidget(@label)
103
-
104
- @hl3 = Qt::HBoxLayout.new()
105
- @hl3.objectName = "hl3"
106
- @check_result = Qt::CheckBox.new(@centralwidget)
107
- @check_result.objectName = "check_result"
108
- @check_result.checked = true
109
-
110
- @hl3.addWidget(@check_result)
111
-
112
- @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
113
-
114
- @hl3.addItem(@hs2)
115
-
116
- @btn_new_cmd = Qt::PushButton.new(@centralwidget)
117
- @btn_new_cmd.objectName = "btn_new_cmd"
118
-
119
- @hl3.addWidget(@btn_new_cmd)
120
-
121
-
122
- @vl2.addLayout(@hl3)
123
-
124
-
125
- @vl.addLayout(@vl2)
126
-
127
-
128
- @gridLayout.addLayout(@vl, 0, 0, 1, 1)
129
-
130
- generic_commands.centralWidget = @centralwidget
131
- @menubar = Qt::MenuBar.new(generic_commands)
132
- @menubar.objectName = "menubar"
133
- @menubar.geometry = Qt::Rect.new(0, 0, 542, 21)
134
- @menuCommandes = Qt::Menu.new(@menubar)
135
- @menuCommandes.objectName = "menuCommandes"
136
- generic_commands.setMenuBar(@menubar)
137
- @statusbar = Qt::StatusBar.new(generic_commands)
138
- @statusbar.objectName = "statusbar"
139
- generic_commands.statusBar = @statusbar
140
-
141
- @menubar.addAction(@menuCommandes.menuAction())
142
- @menuCommandes.addAction(@actionExecute)
143
- @menuCommandes.addAction(@actionEdit)
144
- @menuCommandes.addAction(@actionTemplate)
145
- @menuCommandes.addAction(@actionDelete)
146
- @menuCommandes.addAction(@actionConcatenate)
147
-
148
- retranslateUi(generic_commands)
149
- Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
150
- Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('create()'))
151
- Qt::Object.connect(@actionExecute, SIGNAL('triggered()'), generic_commands, SLOT('execute()'))
152
- Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), generic_commands, SLOT('edit()'))
153
- Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), generic_commands, SLOT('delete()'))
154
- Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), generic_commands, SLOT('template()'))
155
- Qt::Object.connect(@actionConcatenate, SIGNAL('triggered()'), generic_commands, SLOT('concatenate()'))
156
-
157
- Qt::MetaObject.connectSlotsByName(generic_commands)
158
- end # setupUi
159
-
160
- def setup_ui(generic_commands)
161
- setupUi(generic_commands)
162
- end
163
-
164
- def retranslateUi(generic_commands)
165
- generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
166
- @actionExecute.text = Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8)
167
- @actionEdit.text = Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8)
168
- @actionTemplate.text = Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)
169
- @actionDelete.text = Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8)
170
- @actionConcatenate.text = Qt::Application.translate("Generic_commands", "Concatenate", nil, Qt::Application::UnicodeUTF8)
171
- @lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
172
- @lie_search.inputMask = ''
173
- @lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
174
- @lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
175
- if @tbl_cmd.columnCount < 2
176
- @tbl_cmd.columnCount = 2
177
- end
178
-
179
- __colItem = Qt::TableWidgetItem.new
180
- __colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
181
- @tbl_cmd.setHorizontalHeaderItem(0, __colItem)
182
-
183
- __colItem1 = Qt::TableWidgetItem.new
184
- __colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
185
- @tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
186
- @label.text = Qt::Application.translate("Generic_commands", "Right click on a command to open the menu", nil, Qt::Application::UnicodeUTF8)
187
- @check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
188
- @btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
189
- @menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
190
- end # retranslateUi
191
-
192
- def retranslate_ui(generic_commands)
193
- retranslateUi(generic_commands)
194
- end
195
-
196
- end
197
-
198
- module Ui
199
- class Generic_commands < Ui_Generic_commands
200
- end
201
- end # module Ui
202
-
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_commands.ui'
3
+ **
4
+ ** Created: jeu. mai 26 15:29:15 2016
5
+ ** by: Qt User Interface Compiler version 4.8.6
6
+ **
7
+ ** WARNING! All changes made in this file will be lost when recompiling ui file!
8
+ =end
9
+
10
+ class Ui_Generic_commands
11
+ attr_reader :actionExecute
12
+ attr_reader :actionEdit
13
+ attr_reader :actionTemplate
14
+ attr_reader :actionDelete
15
+ attr_reader :actionConcatenate
16
+ attr_reader :centralwidget
17
+ attr_reader :gridLayout
18
+ attr_reader :vl
19
+ attr_reader :hl
20
+ attr_reader :lbl_search
21
+ attr_reader :lie_search
22
+ attr_reader :hs
23
+ attr_reader :lbl_current_chip
24
+ attr_reader :lbl_chip
25
+ attr_reader :vl2
26
+ attr_reader :tbl_cmd
27
+ attr_reader :label
28
+ attr_reader :hl3
29
+ attr_reader :check_result
30
+ attr_reader :hs2
31
+ attr_reader :btn_new_cmd
32
+ attr_reader :menubar
33
+ attr_reader :menuCommandes
34
+ attr_reader :statusbar
35
+
36
+ def setupUi(generic_commands)
37
+ if generic_commands.objectName.nil?
38
+ generic_commands.objectName = "generic_commands"
39
+ end
40
+ generic_commands.windowModality = Qt::ApplicationModal
41
+ generic_commands.resize(542, 383)
42
+ @actionExecute = Qt::Action.new(generic_commands)
43
+ @actionExecute.objectName = "actionExecute"
44
+ @actionEdit = Qt::Action.new(generic_commands)
45
+ @actionEdit.objectName = "actionEdit"
46
+ @actionTemplate = Qt::Action.new(generic_commands)
47
+ @actionTemplate.objectName = "actionTemplate"
48
+ @actionDelete = Qt::Action.new(generic_commands)
49
+ @actionDelete.objectName = "actionDelete"
50
+ @actionConcatenate = Qt::Action.new(generic_commands)
51
+ @actionConcatenate.objectName = "actionConcatenate"
52
+ @centralwidget = Qt::Widget.new(generic_commands)
53
+ @centralwidget.objectName = "centralwidget"
54
+ @gridLayout = Qt::GridLayout.new(@centralwidget)
55
+ @gridLayout.objectName = "gridLayout"
56
+ @vl = Qt::VBoxLayout.new()
57
+ @vl.objectName = "vl"
58
+ @hl = Qt::HBoxLayout.new()
59
+ @hl.objectName = "hl"
60
+ @lbl_search = Qt::Label.new(@centralwidget)
61
+ @lbl_search.objectName = "lbl_search"
62
+
63
+ @hl.addWidget(@lbl_search)
64
+
65
+ @lie_search = Qt::LineEdit.new(@centralwidget)
66
+ @lie_search.objectName = "lie_search"
67
+ @lie_search.maxLength = 10
68
+
69
+ @hl.addWidget(@lie_search)
70
+
71
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
72
+
73
+ @hl.addItem(@hs)
74
+
75
+ @lbl_current_chip = Qt::Label.new(@centralwidget)
76
+ @lbl_current_chip.objectName = "lbl_current_chip"
77
+
78
+ @hl.addWidget(@lbl_current_chip)
79
+
80
+ @lbl_chip = Qt::Label.new(@centralwidget)
81
+ @lbl_chip.objectName = "lbl_chip"
82
+
83
+ @hl.addWidget(@lbl_chip)
84
+
85
+
86
+ @vl.addLayout(@hl)
87
+
88
+ @vl2 = Qt::VBoxLayout.new()
89
+ @vl2.objectName = "vl2"
90
+ @tbl_cmd = Qt::TableWidget.new(@centralwidget)
91
+ @tbl_cmd.objectName = "tbl_cmd"
92
+ @font = Qt::Font.new
93
+ @font.family = "Arial"
94
+ @tbl_cmd.font = @font
95
+ @tbl_cmd.sortingEnabled = true
96
+
97
+ @vl2.addWidget(@tbl_cmd)
98
+
99
+ @label = Qt::Label.new(@centralwidget)
100
+ @label.objectName = "label"
101
+
102
+ @vl2.addWidget(@label)
103
+
104
+ @hl3 = Qt::HBoxLayout.new()
105
+ @hl3.objectName = "hl3"
106
+ @check_result = Qt::CheckBox.new(@centralwidget)
107
+ @check_result.objectName = "check_result"
108
+ @check_result.checked = true
109
+
110
+ @hl3.addWidget(@check_result)
111
+
112
+ @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
113
+
114
+ @hl3.addItem(@hs2)
115
+
116
+ @btn_new_cmd = Qt::PushButton.new(@centralwidget)
117
+ @btn_new_cmd.objectName = "btn_new_cmd"
118
+
119
+ @hl3.addWidget(@btn_new_cmd)
120
+
121
+
122
+ @vl2.addLayout(@hl3)
123
+
124
+
125
+ @vl.addLayout(@vl2)
126
+
127
+
128
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
129
+
130
+ generic_commands.centralWidget = @centralwidget
131
+ @menubar = Qt::MenuBar.new(generic_commands)
132
+ @menubar.objectName = "menubar"
133
+ @menubar.geometry = Qt::Rect.new(0, 0, 542, 21)
134
+ @menuCommandes = Qt::Menu.new(@menubar)
135
+ @menuCommandes.objectName = "menuCommandes"
136
+ generic_commands.setMenuBar(@menubar)
137
+ @statusbar = Qt::StatusBar.new(generic_commands)
138
+ @statusbar.objectName = "statusbar"
139
+ generic_commands.statusBar = @statusbar
140
+
141
+ @menubar.addAction(@menuCommandes.menuAction())
142
+ @menuCommandes.addAction(@actionExecute)
143
+ @menuCommandes.addAction(@actionEdit)
144
+ @menuCommandes.addAction(@actionTemplate)
145
+ @menuCommandes.addAction(@actionDelete)
146
+ @menuCommandes.addAction(@actionConcatenate)
147
+
148
+ retranslateUi(generic_commands)
149
+ Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
150
+ Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('create()'))
151
+ Qt::Object.connect(@actionExecute, SIGNAL('triggered()'), generic_commands, SLOT('execute()'))
152
+ Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), generic_commands, SLOT('edit()'))
153
+ Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), generic_commands, SLOT('delete()'))
154
+ Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), generic_commands, SLOT('template()'))
155
+ Qt::Object.connect(@actionConcatenate, SIGNAL('triggered()'), generic_commands, SLOT('concatenate()'))
156
+
157
+ Qt::MetaObject.connectSlotsByName(generic_commands)
158
+ end # setupUi
159
+
160
+ def setup_ui(generic_commands)
161
+ setupUi(generic_commands)
162
+ end
163
+
164
+ def retranslateUi(generic_commands)
165
+ generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
166
+ @actionExecute.text = Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8)
167
+ @actionEdit.text = Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8)
168
+ @actionTemplate.text = Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)
169
+ @actionDelete.text = Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8)
170
+ @actionConcatenate.text = Qt::Application.translate("Generic_commands", "Concatenate", nil, Qt::Application::UnicodeUTF8)
171
+ @lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
172
+ @lie_search.inputMask = ''
173
+ @lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
174
+ @lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
175
+ if @tbl_cmd.columnCount < 2
176
+ @tbl_cmd.columnCount = 2
177
+ end
178
+
179
+ __colItem = Qt::TableWidgetItem.new
180
+ __colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
181
+ @tbl_cmd.setHorizontalHeaderItem(0, __colItem)
182
+
183
+ __colItem1 = Qt::TableWidgetItem.new
184
+ __colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
185
+ @tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
186
+ @label.text = Qt::Application.translate("Generic_commands", "Right click on a command to open the menu", nil, Qt::Application::UnicodeUTF8)
187
+ @check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
188
+ @btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
189
+ @menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
190
+ end # retranslateUi
191
+
192
+ def retranslate_ui(generic_commands)
193
+ retranslateUi(generic_commands)
194
+ end
195
+
196
+ end
197
+
198
+ module Ui
199
+ class Generic_commands < Ui_Generic_commands
200
+ end
201
+ end # module Ui
202
+