hardsploit_gui 2.3 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
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,164 +1,164 @@
1
- =begin
2
- ** Form generated from reading ui file 'gui_generic_export.ui'
3
- **
4
- ** Created: mar. juil. 12 16:04:54 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_export
11
- attr_reader :gridLayout
12
- attr_reader :vl
13
- attr_reader :hl2
14
- attr_reader :lbl_chip
15
- attr_reader :lbl_export
16
- attr_reader :hs
17
- attr_reader :fl
18
- attr_reader :lbl_start
19
- attr_reader :lie_start
20
- attr_reader :lbl_stop
21
- attr_reader :lie_stop
22
- attr_reader :lbl_file
23
- attr_reader :btn_file
24
- attr_reader :lbl_selected
25
- attr_reader :lbl_selected_file
26
- attr_reader :hl
27
- attr_reader :btn_export
28
- attr_reader :btn_full_export
29
-
30
- def setupUi(generic_export)
31
- if generic_export.objectName.nil?
32
- generic_export.objectName = "generic_export"
33
- end
34
- generic_export.windowModality = Qt::ApplicationModal
35
- generic_export.resize(254, 203)
36
- @gridLayout = Qt::GridLayout.new(generic_export)
37
- @gridLayout.objectName = "gridLayout"
38
- @vl = Qt::VBoxLayout.new()
39
- @vl.objectName = "vl"
40
- @hl2 = Qt::HBoxLayout.new()
41
- @hl2.objectName = "hl2"
42
- @lbl_chip = Qt::Label.new(generic_export)
43
- @lbl_chip.objectName = "lbl_chip"
44
-
45
- @hl2.addWidget(@lbl_chip)
46
-
47
- @lbl_export = Qt::Label.new(generic_export)
48
- @lbl_export.objectName = "lbl_export"
49
-
50
- @hl2.addWidget(@lbl_export)
51
-
52
- @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
53
-
54
- @hl2.addItem(@hs)
55
-
56
-
57
- @vl.addLayout(@hl2)
58
-
59
- @fl = Qt::FormLayout.new()
60
- @fl.objectName = "fl"
61
- @lbl_start = Qt::Label.new(generic_export)
62
- @lbl_start.objectName = "lbl_start"
63
-
64
- @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_start)
65
-
66
- @lie_start = Qt::LineEdit.new(generic_export)
67
- @lie_start.objectName = "lie_start"
68
- @lie_start.maxLength = 20
69
-
70
- @fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_start)
71
-
72
- @lbl_stop = Qt::Label.new(generic_export)
73
- @lbl_stop.objectName = "lbl_stop"
74
-
75
- @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_stop)
76
-
77
- @lie_stop = Qt::LineEdit.new(generic_export)
78
- @lie_stop.objectName = "lie_stop"
79
- @lie_stop.maxLength = 20
80
-
81
- @fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_stop)
82
-
83
- @lbl_file = Qt::Label.new(generic_export)
84
- @lbl_file.objectName = "lbl_file"
85
-
86
- @fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_file)
87
-
88
- @btn_file = Qt::PushButton.new(generic_export)
89
- @btn_file.objectName = "btn_file"
90
-
91
- @fl.setWidget(4, Qt::FormLayout::FieldRole, @btn_file)
92
-
93
- @lbl_selected = Qt::Label.new(generic_export)
94
- @lbl_selected.objectName = "lbl_selected"
95
-
96
- @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_selected)
97
-
98
- @lbl_selected_file = Qt::Label.new(generic_export)
99
- @lbl_selected_file.objectName = "lbl_selected_file"
100
- @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
101
-
102
- @fl.setWidget(5, Qt::FormLayout::FieldRole, @lbl_selected_file)
103
-
104
-
105
- @vl.addLayout(@fl)
106
-
107
- @hl = Qt::HBoxLayout.new()
108
- @hl.objectName = "hl"
109
- @btn_export = Qt::PushButton.new(generic_export)
110
- @btn_export.objectName = "btn_export"
111
- @btn_export.enabled = false
112
-
113
- @hl.addWidget(@btn_export)
114
-
115
- @btn_full_export = Qt::PushButton.new(generic_export)
116
- @btn_full_export.objectName = "btn_full_export"
117
- @btn_full_export.enabled = false
118
-
119
- @hl.addWidget(@btn_full_export)
120
-
121
-
122
- @vl.addLayout(@hl)
123
-
124
-
125
- @gridLayout.addLayout(@vl, 0, 0, 1, 1)
126
-
127
-
128
- retranslateUi(generic_export)
129
- Qt::Object.connect(@btn_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
130
- Qt::Object.connect(@btn_full_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
131
- Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_export, SLOT('select_export_file()'))
132
-
133
- Qt::MetaObject.connectSlotsByName(generic_export)
134
- end # setupUi
135
-
136
- def setup_ui(generic_export)
137
- setupUi(generic_export)
138
- end
139
-
140
- def retranslateUi(generic_export)
141
- generic_export.windowTitle = Qt::Application.translate("Generic_export", "Hardsploit - Export (Dump)", nil, Qt::Application::UnicodeUTF8)
142
- @lbl_chip.text = Qt::Application.translate("Generic_export", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
143
- @lbl_export.text = Qt::Application.translate("Generic_export", "Export (Dump)", nil, Qt::Application::UnicodeUTF8)
144
- @lbl_start.text = Qt::Application.translate("Generic_export", "Start address:", nil, Qt::Application::UnicodeUTF8)
145
- @lbl_stop.text = Qt::Application.translate("Generic_export", "Stop address:", nil, Qt::Application::UnicodeUTF8)
146
- @lbl_file.text = Qt::Application.translate("Generic_export", "File:", nil, Qt::Application::UnicodeUTF8)
147
- @btn_file.text = Qt::Application.translate("Generic_export", "File...", nil, Qt::Application::UnicodeUTF8)
148
- @lbl_selected.text = Qt::Application.translate("Generic_export", "Selected file:", nil, Qt::Application::UnicodeUTF8)
149
- @lbl_selected_file.text = Qt::Application.translate("Generic_export", "None", nil, Qt::Application::UnicodeUTF8)
150
- @btn_export.text = Qt::Application.translate("Generic_export", "Export", nil, Qt::Application::UnicodeUTF8)
151
- @btn_full_export.text = Qt::Application.translate("Generic_export", "Full export", nil, Qt::Application::UnicodeUTF8)
152
- end # retranslateUi
153
-
154
- def retranslate_ui(generic_export)
155
- retranslateUi(generic_export)
156
- end
157
-
158
- end
159
-
160
- module Ui
161
- class Generic_export < Ui_Generic_export
162
- end
163
- end # module Ui
164
-
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_export.ui'
3
+ **
4
+ ** Created: mar. juil. 12 16:04:54 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_export
11
+ attr_reader :gridLayout
12
+ attr_reader :vl
13
+ attr_reader :hl2
14
+ attr_reader :lbl_chip
15
+ attr_reader :lbl_export
16
+ attr_reader :hs
17
+ attr_reader :fl
18
+ attr_reader :lbl_start
19
+ attr_reader :lie_start
20
+ attr_reader :lbl_stop
21
+ attr_reader :lie_stop
22
+ attr_reader :lbl_file
23
+ attr_reader :btn_file
24
+ attr_reader :lbl_selected
25
+ attr_reader :lbl_selected_file
26
+ attr_reader :hl
27
+ attr_reader :btn_export
28
+ attr_reader :btn_full_export
29
+
30
+ def setupUi(generic_export)
31
+ if generic_export.objectName.nil?
32
+ generic_export.objectName = "generic_export"
33
+ end
34
+ generic_export.windowModality = Qt::ApplicationModal
35
+ generic_export.resize(254, 203)
36
+ @gridLayout = Qt::GridLayout.new(generic_export)
37
+ @gridLayout.objectName = "gridLayout"
38
+ @vl = Qt::VBoxLayout.new()
39
+ @vl.objectName = "vl"
40
+ @hl2 = Qt::HBoxLayout.new()
41
+ @hl2.objectName = "hl2"
42
+ @lbl_chip = Qt::Label.new(generic_export)
43
+ @lbl_chip.objectName = "lbl_chip"
44
+
45
+ @hl2.addWidget(@lbl_chip)
46
+
47
+ @lbl_export = Qt::Label.new(generic_export)
48
+ @lbl_export.objectName = "lbl_export"
49
+
50
+ @hl2.addWidget(@lbl_export)
51
+
52
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
53
+
54
+ @hl2.addItem(@hs)
55
+
56
+
57
+ @vl.addLayout(@hl2)
58
+
59
+ @fl = Qt::FormLayout.new()
60
+ @fl.objectName = "fl"
61
+ @lbl_start = Qt::Label.new(generic_export)
62
+ @lbl_start.objectName = "lbl_start"
63
+
64
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_start)
65
+
66
+ @lie_start = Qt::LineEdit.new(generic_export)
67
+ @lie_start.objectName = "lie_start"
68
+ @lie_start.maxLength = 20
69
+
70
+ @fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_start)
71
+
72
+ @lbl_stop = Qt::Label.new(generic_export)
73
+ @lbl_stop.objectName = "lbl_stop"
74
+
75
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_stop)
76
+
77
+ @lie_stop = Qt::LineEdit.new(generic_export)
78
+ @lie_stop.objectName = "lie_stop"
79
+ @lie_stop.maxLength = 20
80
+
81
+ @fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_stop)
82
+
83
+ @lbl_file = Qt::Label.new(generic_export)
84
+ @lbl_file.objectName = "lbl_file"
85
+
86
+ @fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_file)
87
+
88
+ @btn_file = Qt::PushButton.new(generic_export)
89
+ @btn_file.objectName = "btn_file"
90
+
91
+ @fl.setWidget(4, Qt::FormLayout::FieldRole, @btn_file)
92
+
93
+ @lbl_selected = Qt::Label.new(generic_export)
94
+ @lbl_selected.objectName = "lbl_selected"
95
+
96
+ @fl.setWidget(5, Qt::FormLayout::LabelRole, @lbl_selected)
97
+
98
+ @lbl_selected_file = Qt::Label.new(generic_export)
99
+ @lbl_selected_file.objectName = "lbl_selected_file"
100
+ @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
101
+
102
+ @fl.setWidget(5, Qt::FormLayout::FieldRole, @lbl_selected_file)
103
+
104
+
105
+ @vl.addLayout(@fl)
106
+
107
+ @hl = Qt::HBoxLayout.new()
108
+ @hl.objectName = "hl"
109
+ @btn_export = Qt::PushButton.new(generic_export)
110
+ @btn_export.objectName = "btn_export"
111
+ @btn_export.enabled = false
112
+
113
+ @hl.addWidget(@btn_export)
114
+
115
+ @btn_full_export = Qt::PushButton.new(generic_export)
116
+ @btn_full_export.objectName = "btn_full_export"
117
+ @btn_full_export.enabled = false
118
+
119
+ @hl.addWidget(@btn_full_export)
120
+
121
+
122
+ @vl.addLayout(@hl)
123
+
124
+
125
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
126
+
127
+
128
+ retranslateUi(generic_export)
129
+ Qt::Object.connect(@btn_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
130
+ Qt::Object.connect(@btn_full_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
131
+ Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_export, SLOT('select_export_file()'))
132
+
133
+ Qt::MetaObject.connectSlotsByName(generic_export)
134
+ end # setupUi
135
+
136
+ def setup_ui(generic_export)
137
+ setupUi(generic_export)
138
+ end
139
+
140
+ def retranslateUi(generic_export)
141
+ generic_export.windowTitle = Qt::Application.translate("Generic_export", "Hardsploit - Export (Dump)", nil, Qt::Application::UnicodeUTF8)
142
+ @lbl_chip.text = Qt::Application.translate("Generic_export", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
143
+ @lbl_export.text = Qt::Application.translate("Generic_export", "Export (Dump)", nil, Qt::Application::UnicodeUTF8)
144
+ @lbl_start.text = Qt::Application.translate("Generic_export", "Start address:", nil, Qt::Application::UnicodeUTF8)
145
+ @lbl_stop.text = Qt::Application.translate("Generic_export", "Stop address:", nil, Qt::Application::UnicodeUTF8)
146
+ @lbl_file.text = Qt::Application.translate("Generic_export", "File:", nil, Qt::Application::UnicodeUTF8)
147
+ @btn_file.text = Qt::Application.translate("Generic_export", "File...", nil, Qt::Application::UnicodeUTF8)
148
+ @lbl_selected.text = Qt::Application.translate("Generic_export", "Selected file:", nil, Qt::Application::UnicodeUTF8)
149
+ @lbl_selected_file.text = Qt::Application.translate("Generic_export", "None", nil, Qt::Application::UnicodeUTF8)
150
+ @btn_export.text = Qt::Application.translate("Generic_export", "Export", nil, Qt::Application::UnicodeUTF8)
151
+ @btn_full_export.text = Qt::Application.translate("Generic_export", "Full export", nil, Qt::Application::UnicodeUTF8)
152
+ end # retranslateUi
153
+
154
+ def retranslate_ui(generic_export)
155
+ retranslateUi(generic_export)
156
+ end
157
+
158
+ end
159
+
160
+ module Ui
161
+ class Generic_export < Ui_Generic_export
162
+ end
163
+ end # module Ui
164
+
@@ -1,142 +1,142 @@
1
- =begin
2
- ** Form generated from reading ui file 'gui_generic_import.ui'
3
- **
4
- ** Created: mar. juil. 19 13:51:01 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_import
11
- attr_reader :gridLayout
12
- attr_reader :vl
13
- attr_reader :hl2
14
- attr_reader :lbl_chip
15
- attr_reader :lbl_export
16
- attr_reader :hs
17
- attr_reader :fl
18
- attr_reader :lbl_start
19
- attr_reader :lie_start
20
- attr_reader :btn_file
21
- attr_reader :lbl_file
22
- attr_reader :lbl_selected
23
- attr_reader :lbl_selected_file
24
- attr_reader :hl
25
- attr_reader :btn_import
26
-
27
- def setupUi(generic_import)
28
- if generic_import.objectName.nil?
29
- generic_import.objectName = "generic_import"
30
- end
31
- generic_import.windowModality = Qt::ApplicationModal
32
- generic_import.resize(317, 155)
33
- @gridLayout = Qt::GridLayout.new(generic_import)
34
- @gridLayout.objectName = "gridLayout"
35
- @vl = Qt::VBoxLayout.new()
36
- @vl.objectName = "vl"
37
- @hl2 = Qt::HBoxLayout.new()
38
- @hl2.objectName = "hl2"
39
- @lbl_chip = Qt::Label.new(generic_import)
40
- @lbl_chip.objectName = "lbl_chip"
41
-
42
- @hl2.addWidget(@lbl_chip)
43
-
44
- @lbl_export = Qt::Label.new(generic_import)
45
- @lbl_export.objectName = "lbl_export"
46
-
47
- @hl2.addWidget(@lbl_export)
48
-
49
- @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
50
-
51
- @hl2.addItem(@hs)
52
-
53
-
54
- @vl.addLayout(@hl2)
55
-
56
- @fl = Qt::FormLayout.new()
57
- @fl.objectName = "fl"
58
- @lbl_start = Qt::Label.new(generic_import)
59
- @lbl_start.objectName = "lbl_start"
60
-
61
- @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_start)
62
-
63
- @lie_start = Qt::LineEdit.new(generic_import)
64
- @lie_start.objectName = "lie_start"
65
- @lie_start.maxLength = 20
66
-
67
- @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_start)
68
-
69
- @btn_file = Qt::PushButton.new(generic_import)
70
- @btn_file.objectName = "btn_file"
71
-
72
- @fl.setWidget(2, Qt::FormLayout::FieldRole, @btn_file)
73
-
74
- @lbl_file = Qt::Label.new(generic_import)
75
- @lbl_file.objectName = "lbl_file"
76
-
77
- @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_file)
78
-
79
- @lbl_selected = Qt::Label.new(generic_import)
80
- @lbl_selected.objectName = "lbl_selected"
81
-
82
- @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_selected)
83
-
84
- @lbl_selected_file = Qt::Label.new(generic_import)
85
- @lbl_selected_file.objectName = "lbl_selected_file"
86
- @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
87
-
88
- @fl.setWidget(3, Qt::FormLayout::FieldRole, @lbl_selected_file)
89
-
90
-
91
- @vl.addLayout(@fl)
92
-
93
- @hl = Qt::HBoxLayout.new()
94
- @hl.objectName = "hl"
95
- @btn_import = Qt::PushButton.new(generic_import)
96
- @btn_import.objectName = "btn_import"
97
- @btn_import.enabled = false
98
-
99
- @hl.addWidget(@btn_import)
100
-
101
-
102
- @vl.addLayout(@hl)
103
-
104
-
105
- @gridLayout.addLayout(@vl, 0, 0, 1, 1)
106
-
107
-
108
- retranslateUi(generic_import)
109
- Qt::Object.connect(@btn_import, SIGNAL('clicked()'), generic_import, SLOT('import()'))
110
- Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_import, SLOT('select_import_file()'))
111
-
112
- Qt::MetaObject.connectSlotsByName(generic_import)
113
- end # setupUi
114
-
115
- def setup_ui(generic_import)
116
- setupUi(generic_import)
117
- end
118
-
119
- def retranslateUi(generic_import)
120
- generic_import.windowTitle = Qt::Application.translate("Generic_import", "Hardsploit - Import", nil, Qt::Application::UnicodeUTF8)
121
- @lbl_chip.text = Qt::Application.translate("Generic_import", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
122
- @lbl_export.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
123
- @lbl_start.text = Qt::Application.translate("Generic_import", "Start address:", nil, Qt::Application::UnicodeUTF8)
124
- @lie_start.text = Qt::Application.translate("Generic_import", "0", nil, Qt::Application::UnicodeUTF8)
125
- @btn_file.text = Qt::Application.translate("Generic_import", "File...", nil, Qt::Application::UnicodeUTF8)
126
- @lbl_file.text = Qt::Application.translate("Generic_import", "File:", nil, Qt::Application::UnicodeUTF8)
127
- @lbl_selected.text = Qt::Application.translate("Generic_import", "Selected file:", nil, Qt::Application::UnicodeUTF8)
128
- @lbl_selected_file.text = Qt::Application.translate("Generic_import", "None", nil, Qt::Application::UnicodeUTF8)
129
- @btn_import.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
130
- end # retranslateUi
131
-
132
- def retranslate_ui(generic_import)
133
- retranslateUi(generic_import)
134
- end
135
-
136
- end
137
-
138
- module Ui
139
- class Generic_import < Ui_Generic_import
140
- end
141
- end # module Ui
142
-
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_import.ui'
3
+ **
4
+ ** Created: mar. juil. 19 13:51:01 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_import
11
+ attr_reader :gridLayout
12
+ attr_reader :vl
13
+ attr_reader :hl2
14
+ attr_reader :lbl_chip
15
+ attr_reader :lbl_export
16
+ attr_reader :hs
17
+ attr_reader :fl
18
+ attr_reader :lbl_start
19
+ attr_reader :lie_start
20
+ attr_reader :btn_file
21
+ attr_reader :lbl_file
22
+ attr_reader :lbl_selected
23
+ attr_reader :lbl_selected_file
24
+ attr_reader :hl
25
+ attr_reader :btn_import
26
+
27
+ def setupUi(generic_import)
28
+ if generic_import.objectName.nil?
29
+ generic_import.objectName = "generic_import"
30
+ end
31
+ generic_import.windowModality = Qt::ApplicationModal
32
+ generic_import.resize(317, 155)
33
+ @gridLayout = Qt::GridLayout.new(generic_import)
34
+ @gridLayout.objectName = "gridLayout"
35
+ @vl = Qt::VBoxLayout.new()
36
+ @vl.objectName = "vl"
37
+ @hl2 = Qt::HBoxLayout.new()
38
+ @hl2.objectName = "hl2"
39
+ @lbl_chip = Qt::Label.new(generic_import)
40
+ @lbl_chip.objectName = "lbl_chip"
41
+
42
+ @hl2.addWidget(@lbl_chip)
43
+
44
+ @lbl_export = Qt::Label.new(generic_import)
45
+ @lbl_export.objectName = "lbl_export"
46
+
47
+ @hl2.addWidget(@lbl_export)
48
+
49
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
50
+
51
+ @hl2.addItem(@hs)
52
+
53
+
54
+ @vl.addLayout(@hl2)
55
+
56
+ @fl = Qt::FormLayout.new()
57
+ @fl.objectName = "fl"
58
+ @lbl_start = Qt::Label.new(generic_import)
59
+ @lbl_start.objectName = "lbl_start"
60
+
61
+ @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_start)
62
+
63
+ @lie_start = Qt::LineEdit.new(generic_import)
64
+ @lie_start.objectName = "lie_start"
65
+ @lie_start.maxLength = 20
66
+
67
+ @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_start)
68
+
69
+ @btn_file = Qt::PushButton.new(generic_import)
70
+ @btn_file.objectName = "btn_file"
71
+
72
+ @fl.setWidget(2, Qt::FormLayout::FieldRole, @btn_file)
73
+
74
+ @lbl_file = Qt::Label.new(generic_import)
75
+ @lbl_file.objectName = "lbl_file"
76
+
77
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_file)
78
+
79
+ @lbl_selected = Qt::Label.new(generic_import)
80
+ @lbl_selected.objectName = "lbl_selected"
81
+
82
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_selected)
83
+
84
+ @lbl_selected_file = Qt::Label.new(generic_import)
85
+ @lbl_selected_file.objectName = "lbl_selected_file"
86
+ @lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)
87
+
88
+ @fl.setWidget(3, Qt::FormLayout::FieldRole, @lbl_selected_file)
89
+
90
+
91
+ @vl.addLayout(@fl)
92
+
93
+ @hl = Qt::HBoxLayout.new()
94
+ @hl.objectName = "hl"
95
+ @btn_import = Qt::PushButton.new(generic_import)
96
+ @btn_import.objectName = "btn_import"
97
+ @btn_import.enabled = false
98
+
99
+ @hl.addWidget(@btn_import)
100
+
101
+
102
+ @vl.addLayout(@hl)
103
+
104
+
105
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
106
+
107
+
108
+ retranslateUi(generic_import)
109
+ Qt::Object.connect(@btn_import, SIGNAL('clicked()'), generic_import, SLOT('import()'))
110
+ Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_import, SLOT('select_import_file()'))
111
+
112
+ Qt::MetaObject.connectSlotsByName(generic_import)
113
+ end # setupUi
114
+
115
+ def setup_ui(generic_import)
116
+ setupUi(generic_import)
117
+ end
118
+
119
+ def retranslateUi(generic_import)
120
+ generic_import.windowTitle = Qt::Application.translate("Generic_import", "Hardsploit - Import", nil, Qt::Application::UnicodeUTF8)
121
+ @lbl_chip.text = Qt::Application.translate("Generic_import", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
122
+ @lbl_export.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
123
+ @lbl_start.text = Qt::Application.translate("Generic_import", "Start address:", nil, Qt::Application::UnicodeUTF8)
124
+ @lie_start.text = Qt::Application.translate("Generic_import", "0", nil, Qt::Application::UnicodeUTF8)
125
+ @btn_file.text = Qt::Application.translate("Generic_import", "File...", nil, Qt::Application::UnicodeUTF8)
126
+ @lbl_file.text = Qt::Application.translate("Generic_import", "File:", nil, Qt::Application::UnicodeUTF8)
127
+ @lbl_selected.text = Qt::Application.translate("Generic_import", "Selected file:", nil, Qt::Application::UnicodeUTF8)
128
+ @lbl_selected_file.text = Qt::Application.translate("Generic_import", "None", nil, Qt::Application::UnicodeUTF8)
129
+ @btn_import.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
130
+ end # retranslateUi
131
+
132
+ def retranslate_ui(generic_import)
133
+ retranslateUi(generic_import)
134
+ end
135
+
136
+ end
137
+
138
+ module Ui
139
+ class Generic_import < Ui_Generic_import
140
+ end
141
+ end # module Ui
142
+