hardsploit_gui 2.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 (81) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +22 -0
  3. data/Rakefile +1 -0
  4. data/bin/hardsploit_gui +3 -0
  5. data/lib/Firmware/FPGA/I2C/I2C_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_I2C_INTERACT.rpd +0 -0
  6. data/lib/Firmware/FPGA/PARALLEL/NO_MUX_PARALLEL_MEMORY/HARDSPLOIT_FIRMWARE_FPGA_NO_MUX_PARALLEL_MEMORY.rpd +0 -0
  7. data/lib/Firmware/FPGA/SPI/SPI_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SPI_INTERACT.rpd +0 -0
  8. data/lib/Firmware/FPGA/SWD/SWD_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_SWD_INTERACT.rpd +0 -0
  9. data/lib/Firmware/FPGA/TEST/TEST_INTERACT/HARDSPLOIT_FIRMWARE_FPGA_TEST_INTERACT.rpd +0 -0
  10. data/lib/Firmware/FPGA/VersionFPGA.rb +5 -0
  11. data/lib/Firmware/UC/HARDSPLOIT_FIRMWARE_UC.bin +0 -0
  12. data/lib/Firmware/UC/VersionUC.rb +12 -0
  13. data/lib/HardsploitAPI/HardsploitAPI.rb +134 -0
  14. data/lib/HardsploitAPI/HardsploitAPI_CONSTANT.rb +145 -0
  15. data/lib/HardsploitAPI/HardsploitAPI_FIRMWARE.rb +311 -0
  16. data/lib/HardsploitAPI/HardsploitAPI_I2C.rb +218 -0
  17. data/lib/HardsploitAPI/HardsploitAPI_NO_MUX_PARALLELE_MEMORY.rb +229 -0
  18. data/lib/HardsploitAPI/HardsploitAPI_SPI.rb +179 -0
  19. data/lib/HardsploitAPI/HardsploitAPI_TEST_INTERACT.rb +98 -0
  20. data/lib/HardsploitAPI/HardsploitAPI_USB_COMMUNICATION.rb +149 -0
  21. data/lib/HardsploitAPI/LICENSE.txt +674 -0
  22. data/lib/HardsploitAPI/README.md +22 -0
  23. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD.rb +249 -0
  24. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_DEBUG.rb +102 -0
  25. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_MEM_AP.rb +78 -0
  26. data/lib/HardsploitAPI/SWD/HardsploitAPI_SWD_STM32.rb +104 -0
  27. data/lib/HardsploitAPI/TRADEMARK +3 -0
  28. data/lib/LICENSE.txt +674 -0
  29. data/lib/README.md +22 -0
  30. data/lib/TRADEMARK +3 -0
  31. data/lib/class/Chip_editor.rb +448 -0
  32. data/lib/class/Command_editor.rb +268 -0
  33. data/lib/class/Command_table.rb +239 -0
  34. data/lib/class/Console.rb +28 -0
  35. data/lib/class/Export_manager.rb +124 -0
  36. data/lib/class/Firmware.rb +29 -0
  37. data/lib/class/Generic_commands.rb +275 -0
  38. data/lib/class/HardsploitGUI.rb +462 -0
  39. data/lib/class/I2C/I2c_command.rb +48 -0
  40. data/lib/class/I2C/I2c_export.rb +121 -0
  41. data/lib/class/I2C/I2c_import.rb +92 -0
  42. data/lib/class/I2C/I2c_settings.rb +117 -0
  43. data/lib/class/PARALLEL/Parallel_export.rb +146 -0
  44. data/lib/class/PARALLEL/Parallel_import.rb +88 -0
  45. data/lib/class/PARALLEL/Parallel_settings.rb +102 -0
  46. data/lib/class/SPI/Spi_export.rb +141 -0
  47. data/lib/class/SPI/Spi_import.rb +112 -0
  48. data/lib/class/SPI/Spi_settings.rb +90 -0
  49. data/lib/class/Wire_helper.rb +246 -0
  50. data/lib/db/associations.rb +125 -0
  51. data/lib/db/hs.db +0 -0
  52. data/lib/gui/gui_chip_editor.rb +355 -0
  53. data/lib/gui/gui_chip_management.rb +372 -0
  54. data/lib/gui/gui_command_editor.rb +218 -0
  55. data/lib/gui/gui_export_manager.rb +93 -0
  56. data/lib/gui/gui_generic_commands.rb +164 -0
  57. data/lib/gui/gui_generic_export.rb +148 -0
  58. data/lib/gui/gui_generic_import.rb +126 -0
  59. data/lib/gui/gui_i2c_command.rb +115 -0
  60. data/lib/gui/gui_i2c_settings.rb +201 -0
  61. data/lib/gui/gui_parallel_settings.rb +194 -0
  62. data/lib/gui/gui_spi_import.rb +126 -0
  63. data/lib/gui/gui_spi_settings.rb +187 -0
  64. data/lib/gui/gui_wire_helper.rb +99 -0
  65. data/lib/gui_designer/gui_chip_editor.ui +553 -0
  66. data/lib/gui_designer/gui_chip_management.ui +842 -0
  67. data/lib/gui_designer/gui_command_editor.ui +347 -0
  68. data/lib/gui_designer/gui_export_manager.ui +115 -0
  69. data/lib/gui_designer/gui_generic_commands.ui +258 -0
  70. data/lib/gui_designer/gui_generic_export.ui +179 -0
  71. data/lib/gui_designer/gui_generic_import.ui +142 -0
  72. data/lib/gui_designer/gui_i2c_command.ui +145 -0
  73. data/lib/gui_designer/gui_i2c_settings.ui +261 -0
  74. data/lib/gui_designer/gui_parallel_settings.ui +244 -0
  75. data/lib/gui_designer/gui_processing.ui +81 -0
  76. data/lib/gui_designer/gui_spi_settings.ui +321 -0
  77. data/lib/gui_designer/gui_wire_helper.ui +117 -0
  78. data/lib/hardsploit.rb +122 -0
  79. data/lib/images/search.png +0 -0
  80. data/lib/logs/error.log +0 -0
  81. metadata +236 -0
@@ -0,0 +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
+
@@ -0,0 +1,164 @@
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_commands.ui'
3
+ **
4
+ ** Created: jeu. déc. 3 15:41:54 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_Generic_commands
11
+ attr_reader :gridLayout
12
+ attr_reader :vl
13
+ attr_reader :hl
14
+ attr_reader :lbl_search
15
+ attr_reader :lie_search
16
+ attr_reader :hs
17
+ attr_reader :lbl_current_chip
18
+ attr_reader :lbl_chip
19
+ attr_reader :vl2
20
+ attr_reader :tbl_cmd
21
+ attr_reader :hl3
22
+ attr_reader :check_result
23
+ attr_reader :hs2
24
+ attr_reader :btn_new_cmd
25
+ attr_reader :cbx_action
26
+ attr_reader :btn_next
27
+
28
+ def setupUi(generic_commands)
29
+ if generic_commands.objectName.nil?
30
+ generic_commands.objectName = "generic_commands"
31
+ end
32
+ generic_commands.resize(532, 384)
33
+ generic_commands.minimumSize = Qt::Size.new(532, 384)
34
+ @gridLayout = Qt::GridLayout.new(generic_commands)
35
+ @gridLayout.objectName = "gridLayout"
36
+ @vl = Qt::VBoxLayout.new()
37
+ @vl.objectName = "vl"
38
+ @hl = Qt::HBoxLayout.new()
39
+ @hl.objectName = "hl"
40
+ @lbl_search = Qt::Label.new(generic_commands)
41
+ @lbl_search.objectName = "lbl_search"
42
+
43
+ @hl.addWidget(@lbl_search)
44
+
45
+ @lie_search = Qt::LineEdit.new(generic_commands)
46
+ @lie_search.objectName = "lie_search"
47
+ @lie_search.maxLength = 10
48
+
49
+ @hl.addWidget(@lie_search)
50
+
51
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
52
+
53
+ @hl.addItem(@hs)
54
+
55
+ @lbl_current_chip = Qt::Label.new(generic_commands)
56
+ @lbl_current_chip.objectName = "lbl_current_chip"
57
+
58
+ @hl.addWidget(@lbl_current_chip)
59
+
60
+ @lbl_chip = Qt::Label.new(generic_commands)
61
+ @lbl_chip.objectName = "lbl_chip"
62
+
63
+ @hl.addWidget(@lbl_chip)
64
+
65
+
66
+ @vl.addLayout(@hl)
67
+
68
+ @vl2 = Qt::VBoxLayout.new()
69
+ @vl2.objectName = "vl2"
70
+ @tbl_cmd = Qt::TableWidget.new(generic_commands)
71
+ @tbl_cmd.objectName = "tbl_cmd"
72
+ @font = Qt::Font.new
73
+ @font.family = "Arial"
74
+ @tbl_cmd.font = @font
75
+ @tbl_cmd.sortingEnabled = true
76
+
77
+ @vl2.addWidget(@tbl_cmd)
78
+
79
+ @hl3 = Qt::HBoxLayout.new()
80
+ @hl3.objectName = "hl3"
81
+ @check_result = Qt::CheckBox.new(generic_commands)
82
+ @check_result.objectName = "check_result"
83
+
84
+ @hl3.addWidget(@check_result)
85
+
86
+ @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
87
+
88
+ @hl3.addItem(@hs2)
89
+
90
+ @btn_new_cmd = Qt::PushButton.new(generic_commands)
91
+ @btn_new_cmd.objectName = "btn_new_cmd"
92
+
93
+ @hl3.addWidget(@btn_new_cmd)
94
+
95
+ @cbx_action = Qt::ComboBox.new(generic_commands)
96
+ @cbx_action.objectName = "cbx_action"
97
+
98
+ @hl3.addWidget(@cbx_action)
99
+
100
+ @btn_next = Qt::PushButton.new(generic_commands)
101
+ @btn_next.objectName = "btn_next"
102
+
103
+ @hl3.addWidget(@btn_next)
104
+
105
+
106
+ @vl2.addLayout(@hl3)
107
+
108
+
109
+ @vl.addLayout(@vl2)
110
+
111
+
112
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
113
+
114
+
115
+ retranslateUi(generic_commands)
116
+ Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
117
+ Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('open_cmd_form()'))
118
+ Qt::Object.connect(@btn_next, SIGNAL('clicked()'), generic_commands, SLOT('exec_action()'))
119
+
120
+ Qt::MetaObject.connectSlotsByName(generic_commands)
121
+ end # setupUi
122
+
123
+ def setup_ui(generic_commands)
124
+ setupUi(generic_commands)
125
+ end
126
+
127
+ def retranslateUi(generic_commands)
128
+ generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
129
+ @lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
130
+ @lie_search.inputMask = ''
131
+ @lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
132
+ @lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
133
+ if @tbl_cmd.columnCount < 2
134
+ @tbl_cmd.columnCount = 2
135
+ end
136
+
137
+ __colItem = Qt::TableWidgetItem.new
138
+ __colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
139
+ @tbl_cmd.setHorizontalHeaderItem(0, __colItem)
140
+
141
+ __colItem1 = Qt::TableWidgetItem.new
142
+ __colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
143
+ @tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
144
+ @check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
145
+ @btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
146
+ @cbx_action.insertItems(0, [Qt::Application.translate("Generic_commands", "Action...", nil, Qt::Application::UnicodeUTF8),
147
+ Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8),
148
+ Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8),
149
+ Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8),
150
+ Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)])
151
+ @btn_next.text = Qt::Application.translate("Generic_commands", "Next", nil, Qt::Application::UnicodeUTF8)
152
+ end # retranslateUi
153
+
154
+ def retranslate_ui(generic_commands)
155
+ retranslateUi(generic_commands)
156
+ end
157
+
158
+ end
159
+
160
+ module Ui
161
+ class Generic_commands < Ui_Generic_commands
162
+ end
163
+ end # module Ui
164
+
@@ -0,0 +1,148 @@
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_export.ui'
3
+ **
4
+ ** Created: mar. déc. 8 10:22:41 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_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 :hl
25
+ attr_reader :btn_export
26
+ attr_reader :btn_full_export
27
+
28
+ def setupUi(generic_export)
29
+ if generic_export.objectName.nil?
30
+ generic_export.objectName = "generic_export"
31
+ end
32
+ generic_export.resize(254, 168)
33
+ @gridLayout = Qt::GridLayout.new(generic_export)
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_export)
40
+ @lbl_chip.objectName = "lbl_chip"
41
+
42
+ @hl2.addWidget(@lbl_chip)
43
+
44
+ @lbl_export = Qt::Label.new(generic_export)
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_export)
59
+ @lbl_start.objectName = "lbl_start"
60
+
61
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_start)
62
+
63
+ @lie_start = Qt::LineEdit.new(generic_export)
64
+ @lie_start.objectName = "lie_start"
65
+ @lie_start.maxLength = 20
66
+
67
+ @fl.setWidget(2, Qt::FormLayout::FieldRole, @lie_start)
68
+
69
+ @lbl_stop = Qt::Label.new(generic_export)
70
+ @lbl_stop.objectName = "lbl_stop"
71
+
72
+ @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_stop)
73
+
74
+ @lie_stop = Qt::LineEdit.new(generic_export)
75
+ @lie_stop.objectName = "lie_stop"
76
+ @lie_stop.maxLength = 20
77
+
78
+ @fl.setWidget(3, Qt::FormLayout::FieldRole, @lie_stop)
79
+
80
+ @lbl_file = Qt::Label.new(generic_export)
81
+ @lbl_file.objectName = "lbl_file"
82
+
83
+ @fl.setWidget(4, Qt::FormLayout::LabelRole, @lbl_file)
84
+
85
+ @btn_file = Qt::PushButton.new(generic_export)
86
+ @btn_file.objectName = "btn_file"
87
+
88
+ @fl.setWidget(4, Qt::FormLayout::FieldRole, @btn_file)
89
+
90
+
91
+ @vl.addLayout(@fl)
92
+
93
+ @hl = Qt::HBoxLayout.new()
94
+ @hl.objectName = "hl"
95
+ @btn_export = Qt::PushButton.new(generic_export)
96
+ @btn_export.objectName = "btn_export"
97
+ @btn_export.enabled = false
98
+
99
+ @hl.addWidget(@btn_export)
100
+
101
+ @btn_full_export = Qt::PushButton.new(generic_export)
102
+ @btn_full_export.objectName = "btn_full_export"
103
+ @btn_full_export.enabled = false
104
+
105
+ @hl.addWidget(@btn_full_export)
106
+
107
+
108
+ @vl.addLayout(@hl)
109
+
110
+
111
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
112
+
113
+
114
+ retranslateUi(generic_export)
115
+ Qt::Object.connect(@btn_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
116
+ Qt::Object.connect(@btn_full_export, SIGNAL('clicked()'), generic_export, SLOT('export()'))
117
+ Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_export, SLOT('select_export_file()'))
118
+
119
+ Qt::MetaObject.connectSlotsByName(generic_export)
120
+ end # setupUi
121
+
122
+ def setup_ui(generic_export)
123
+ setupUi(generic_export)
124
+ end
125
+
126
+ def retranslateUi(generic_export)
127
+ generic_export.windowTitle = Qt::Application.translate("Generic_export", "Hardsploit - Export (Dump)", nil, Qt::Application::UnicodeUTF8)
128
+ @lbl_chip.text = Qt::Application.translate("Generic_export", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
129
+ @lbl_export.text = Qt::Application.translate("Generic_export", "Export (Dump)", nil, Qt::Application::UnicodeUTF8)
130
+ @lbl_start.text = Qt::Application.translate("Generic_export", "Start address:", nil, Qt::Application::UnicodeUTF8)
131
+ @lbl_stop.text = Qt::Application.translate("Generic_export", "Stop address:", nil, Qt::Application::UnicodeUTF8)
132
+ @lbl_file.text = Qt::Application.translate("Generic_export", "File:", nil, Qt::Application::UnicodeUTF8)
133
+ @btn_file.text = Qt::Application.translate("Generic_export", "File...", nil, Qt::Application::UnicodeUTF8)
134
+ @btn_export.text = Qt::Application.translate("Generic_export", "Export", nil, Qt::Application::UnicodeUTF8)
135
+ @btn_full_export.text = Qt::Application.translate("Generic_export", "Full export", nil, Qt::Application::UnicodeUTF8)
136
+ end # retranslateUi
137
+
138
+ def retranslate_ui(generic_export)
139
+ retranslateUi(generic_export)
140
+ end
141
+
142
+ end
143
+
144
+ module Ui
145
+ class Generic_export < Ui_Generic_export
146
+ end
147
+ end # module Ui
148
+
@@ -0,0 +1,126 @@
1
+ =begin
2
+ ** Form generated from reading ui file 'gui_generic_import.ui'
3
+ **
4
+ ** Created: mar. déc. 8 14:09:40 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_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 :hl
23
+ attr_reader :btn_import
24
+
25
+ def setupUi(generic_import)
26
+ if generic_import.objectName.nil?
27
+ generic_import.objectName = "generic_import"
28
+ end
29
+ generic_import.resize(265, 137)
30
+ @gridLayout = Qt::GridLayout.new(generic_import)
31
+ @gridLayout.objectName = "gridLayout"
32
+ @vl = Qt::VBoxLayout.new()
33
+ @vl.objectName = "vl"
34
+ @hl2 = Qt::HBoxLayout.new()
35
+ @hl2.objectName = "hl2"
36
+ @lbl_chip = Qt::Label.new(generic_import)
37
+ @lbl_chip.objectName = "lbl_chip"
38
+
39
+ @hl2.addWidget(@lbl_chip)
40
+
41
+ @lbl_export = Qt::Label.new(generic_import)
42
+ @lbl_export.objectName = "lbl_export"
43
+
44
+ @hl2.addWidget(@lbl_export)
45
+
46
+ @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
47
+
48
+ @hl2.addItem(@hs)
49
+
50
+
51
+ @vl.addLayout(@hl2)
52
+
53
+ @fl = Qt::FormLayout.new()
54
+ @fl.objectName = "fl"
55
+ @lbl_start = Qt::Label.new(generic_import)
56
+ @lbl_start.objectName = "lbl_start"
57
+
58
+ @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_start)
59
+
60
+ @lie_start = Qt::LineEdit.new(generic_import)
61
+ @lie_start.objectName = "lie_start"
62
+ @lie_start.maxLength = 20
63
+
64
+ @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_start)
65
+
66
+ @btn_file = Qt::PushButton.new(generic_import)
67
+ @btn_file.objectName = "btn_file"
68
+
69
+ @fl.setWidget(2, Qt::FormLayout::FieldRole, @btn_file)
70
+
71
+ @lbl_file = Qt::Label.new(generic_import)
72
+ @lbl_file.objectName = "lbl_file"
73
+
74
+ @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_file)
75
+
76
+
77
+ @vl.addLayout(@fl)
78
+
79
+ @hl = Qt::HBoxLayout.new()
80
+ @hl.objectName = "hl"
81
+ @btn_import = Qt::PushButton.new(generic_import)
82
+ @btn_import.objectName = "btn_import"
83
+ @btn_import.enabled = false
84
+
85
+ @hl.addWidget(@btn_import)
86
+
87
+
88
+ @vl.addLayout(@hl)
89
+
90
+
91
+ @gridLayout.addLayout(@vl, 0, 0, 1, 1)
92
+
93
+
94
+ retranslateUi(generic_import)
95
+ Qt::Object.connect(@btn_import, SIGNAL('clicked()'), generic_import, SLOT('import()'))
96
+ Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_import, SLOT('select_import_file()'))
97
+
98
+ Qt::MetaObject.connectSlotsByName(generic_import)
99
+ end # setupUi
100
+
101
+ def setup_ui(generic_import)
102
+ setupUi(generic_import)
103
+ end
104
+
105
+ def retranslateUi(generic_import)
106
+ generic_import.windowTitle = Qt::Application.translate("Generic_import", "Hardsploit - Import", nil, Qt::Application::UnicodeUTF8)
107
+ @lbl_chip.text = Qt::Application.translate("Generic_import", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
108
+ @lbl_export.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
109
+ @lbl_start.text = Qt::Application.translate("Generic_import", "Start address:", nil, Qt::Application::UnicodeUTF8)
110
+ @lie_start.text = Qt::Application.translate("Generic_import", "0", nil, Qt::Application::UnicodeUTF8)
111
+ @btn_file.text = Qt::Application.translate("Generic_import", "File...", nil, Qt::Application::UnicodeUTF8)
112
+ @lbl_file.text = Qt::Application.translate("Generic_import", "File:", nil, Qt::Application::UnicodeUTF8)
113
+ @btn_import.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8)
114
+ end # retranslateUi
115
+
116
+ def retranslate_ui(generic_import)
117
+ retranslateUi(generic_import)
118
+ end
119
+
120
+ end
121
+
122
+ module Ui
123
+ class Generic_import < Ui_Generic_import
124
+ end
125
+ end # module Ui
126
+