Class: Ui_Command_editor
- Inherits:
-
Object
- Object
- Ui_Command_editor
- Defined in:
- lib/gui/gui_command_editor.rb
Overview
** Form generated from reading ui file ‘gui_command_editor.ui’ ** ** Created: ven. mai 20 11:11:13 2016 ** by: Qt User Interface Compiler version 4.8.6 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!
Direct Known Subclasses
Instance Attribute Summary collapse
-
#btn_add_row ⇒ Object
readonly
Returns the value of attribute btn_add_row.
-
#btn_cancel ⇒ Object
readonly
Returns the value of attribute btn_cancel.
-
#btn_clone ⇒ Object
readonly
Returns the value of attribute btn_clone.
-
#btn_remove ⇒ Object
readonly
Returns the value of attribute btn_remove.
-
#btn_validate ⇒ Object
readonly
Returns the value of attribute btn_validate.
-
#fl ⇒ Object
readonly
Returns the value of attribute fl.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#hl ⇒ Object
readonly
Returns the value of attribute hl.
-
#hl2 ⇒ Object
readonly
Returns the value of attribute hl2.
-
#horizontalSpacer ⇒ Object
readonly
Returns the value of attribute horizontalSpacer.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#lbl_chip_val ⇒ Object
readonly
Returns the value of attribute lbl_chip_val.
-
#lbl_cmd ⇒ Object
readonly
Returns the value of attribute lbl_cmd.
-
#lbl_cmd_val ⇒ Object
readonly
Returns the value of attribute lbl_cmd_val.
-
#lbl_description ⇒ Object
readonly
Returns the value of attribute lbl_description.
-
#lbl_name ⇒ Object
readonly
Returns the value of attribute lbl_name.
-
#lie_description ⇒ Object
readonly
Returns the value of attribute lie_description.
-
#lie_name ⇒ Object
readonly
Returns the value of attribute lie_name.
-
#lie_text_2_bytes ⇒ Object
readonly
Returns the value of attribute lie_text_2_bytes.
-
#tbl_bytes ⇒ Object
readonly
Returns the value of attribute tbl_bytes.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
-
#vl2 ⇒ Object
readonly
Returns the value of attribute vl2.
-
#vl3 ⇒ Object
readonly
Returns the value of attribute vl3.
Instance Method Summary collapse
-
#retranslate_ui(command_editor) ⇒ Object
retranslateUi.
- #retranslateUi(command_editor) ⇒ Object
-
#setup_ui(command_editor) ⇒ Object
setupUi.
- #setupUi(command_editor) ⇒ Object
Instance Attribute Details
#btn_add_row ⇒ Object (readonly)
Returns the value of attribute btn_add_row.
29 30 31 |
# File 'lib/gui/gui_command_editor.rb', line 29 def btn_add_row @btn_add_row end |
#btn_cancel ⇒ Object (readonly)
Returns the value of attribute btn_cancel.
34 35 36 |
# File 'lib/gui/gui_command_editor.rb', line 34 def btn_cancel @btn_cancel end |
#btn_clone ⇒ Object (readonly)
Returns the value of attribute btn_clone.
27 28 29 |
# File 'lib/gui/gui_command_editor.rb', line 27 def btn_clone @btn_clone end |
#btn_remove ⇒ Object (readonly)
Returns the value of attribute btn_remove.
28 29 30 |
# File 'lib/gui/gui_command_editor.rb', line 28 def btn_remove @btn_remove end |
#btn_validate ⇒ Object (readonly)
Returns the value of attribute btn_validate.
35 36 37 |
# File 'lib/gui/gui_command_editor.rb', line 35 def btn_validate @btn_validate end |
#fl ⇒ Object (readonly)
Returns the value of attribute fl.
14 15 16 |
# File 'lib/gui/gui_command_editor.rb', line 14 def fl @fl end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_command_editor.rb', line 11 def gridLayout @gridLayout end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
32 33 34 |
# File 'lib/gui/gui_command_editor.rb', line 32 def hl @hl end |
#hl2 ⇒ Object (readonly)
Returns the value of attribute hl2.
26 27 28 |
# File 'lib/gui/gui_command_editor.rb', line 26 def hl2 @hl2 end |
#horizontalSpacer ⇒ Object (readonly)
Returns the value of attribute horizontalSpacer.
31 32 33 |
# File 'lib/gui/gui_command_editor.rb', line 31 def horizontalSpacer @horizontalSpacer end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
33 34 35 |
# File 'lib/gui/gui_command_editor.rb', line 33 def hs @hs end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
24 25 26 |
# File 'lib/gui/gui_command_editor.rb', line 24 def label @label end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
15 16 17 |
# File 'lib/gui/gui_command_editor.rb', line 15 def lbl_chip @lbl_chip end |
#lbl_chip_val ⇒ Object (readonly)
Returns the value of attribute lbl_chip_val.
16 17 18 |
# File 'lib/gui/gui_command_editor.rb', line 16 def lbl_chip_val @lbl_chip_val end |
#lbl_cmd ⇒ Object (readonly)
Returns the value of attribute lbl_cmd.
17 18 19 |
# File 'lib/gui/gui_command_editor.rb', line 17 def lbl_cmd @lbl_cmd end |
#lbl_cmd_val ⇒ Object (readonly)
Returns the value of attribute lbl_cmd_val.
18 19 20 |
# File 'lib/gui/gui_command_editor.rb', line 18 def lbl_cmd_val @lbl_cmd_val end |
#lbl_description ⇒ Object (readonly)
Returns the value of attribute lbl_description.
21 22 23 |
# File 'lib/gui/gui_command_editor.rb', line 21 def lbl_description @lbl_description end |
#lbl_name ⇒ Object (readonly)
Returns the value of attribute lbl_name.
19 20 21 |
# File 'lib/gui/gui_command_editor.rb', line 19 def lbl_name @lbl_name end |
#lie_description ⇒ Object (readonly)
Returns the value of attribute lie_description.
22 23 24 |
# File 'lib/gui/gui_command_editor.rb', line 22 def lie_description @lie_description end |
#lie_name ⇒ Object (readonly)
Returns the value of attribute lie_name.
20 21 22 |
# File 'lib/gui/gui_command_editor.rb', line 20 def lie_name @lie_name end |
#lie_text_2_bytes ⇒ Object (readonly)
Returns the value of attribute lie_text_2_bytes.
30 31 32 |
# File 'lib/gui/gui_command_editor.rb', line 30 def lie_text_2_bytes @lie_text_2_bytes end |
#tbl_bytes ⇒ Object (readonly)
Returns the value of attribute tbl_bytes.
25 26 27 |
# File 'lib/gui/gui_command_editor.rb', line 25 def tbl_bytes @tbl_bytes end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_command_editor.rb', line 12 def vl @vl end |
#vl2 ⇒ Object (readonly)
Returns the value of attribute vl2.
13 14 15 |
# File 'lib/gui/gui_command_editor.rb', line 13 def vl2 @vl2 end |
#vl3 ⇒ Object (readonly)
Returns the value of attribute vl3.
23 24 25 |
# File 'lib/gui/gui_command_editor.rb', line 23 def vl3 @vl3 end |
Instance Method Details
#retranslate_ui(command_editor) ⇒ Object
retranslateUi
209 210 211 |
# File 'lib/gui/gui_command_editor.rb', line 209 def retranslate_ui(command_editor) retranslateUi(command_editor) end |
#retranslateUi(command_editor) ⇒ Object
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/gui/gui_command_editor.rb', line 191 def retranslateUi(command_editor) command_editor.windowTitle = Qt::Application.translate("Command_editor", "Hardsploit - Command editor", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("Command_editor", "Current chip:", nil, Qt::Application::UnicodeUTF8) @lbl_chip_val.text = Qt::Application.translate("Command_editor", "[CHIP]", nil, Qt::Application::UnicodeUTF8) @lbl_cmd.text = Qt::Application.translate("Command_editor", "Current command:", nil, Qt::Application::UnicodeUTF8) @lbl_cmd_val.text = Qt::Application.translate("Command_editor", "[CMD]", nil, Qt::Application::UnicodeUTF8) @lbl_name.text = Qt::Application.translate("Command_editor", "Name:", nil, Qt::Application::UnicodeUTF8) @lie_name.inputMask = '' @lbl_description.text = Qt::Application.translate("Command_editor", "Description:", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("Command_editor", "Command bytes array:", nil, Qt::Application::UnicodeUTF8) @btn_clone.text = Qt::Application.translate("Command_editor", "Clone", nil, Qt::Application::UnicodeUTF8) @btn_remove.text = Qt::Application.translate("Command_editor", "-", nil, Qt::Application::UnicodeUTF8) @btn_add_row.text = Qt::Application.translate("Command_editor", "+", nil, Qt::Application::UnicodeUTF8) @lie_text_2_bytes.placeholderText = Qt::Application.translate("Command_editor", "Text to command bytes", nil, Qt::Application::UnicodeUTF8) @btn_cancel.text = Qt::Application.translate("Command_editor", "Cancel", nil, Qt::Application::UnicodeUTF8) @btn_validate.text = Qt::Application.translate("Command_editor", "Add", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(command_editor) ⇒ Object
setupUi
187 188 189 |
# File 'lib/gui/gui_command_editor.rb', line 187 def setup_ui(command_editor) setupUi(command_editor) end |
#setupUi(command_editor) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/gui/gui_command_editor.rb', line 37 def setupUi(command_editor) if command_editor.objectName.nil? command_editor.objectName = "command_editor" end command_editor.windowModality = Qt::ApplicationModal command_editor.resize(540, 440) @gridLayout = Qt::GridLayout.new(command_editor) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @vl2 = Qt::VBoxLayout.new() @vl2.objectName = "vl2" @fl = Qt::FormLayout.new() @fl.objectName = "fl" @lbl_chip = Qt::Label.new(command_editor) @lbl_chip.objectName = "lbl_chip" @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_chip) @lbl_chip_val = Qt::Label.new(command_editor) @lbl_chip_val.objectName = "lbl_chip_val" @fl.setWidget(2, Qt::FormLayout::FieldRole, @lbl_chip_val) @lbl_cmd = Qt::Label.new(command_editor) @lbl_cmd.objectName = "lbl_cmd" @fl.setWidget(3, Qt::FormLayout::LabelRole, @lbl_cmd) @lbl_cmd_val = Qt::Label.new(command_editor) @lbl_cmd_val.objectName = "lbl_cmd_val" @fl.setWidget(3, Qt::FormLayout::FieldRole, @lbl_cmd_val) @lbl_name = Qt::Label.new(command_editor) @lbl_name.objectName = "lbl_name" @fl.setWidget(6, Qt::FormLayout::LabelRole, @lbl_name) @lie_name = Qt::LineEdit.new(command_editor) @lie_name.objectName = "lie_name" @lie_name.maximumSize = Qt::Size.new(300, 16777215) @lie_name.maxLength = 25 @fl.setWidget(6, Qt::FormLayout::FieldRole, @lie_name) @lbl_description = Qt::Label.new(command_editor) @lbl_description.objectName = "lbl_description" @fl.setWidget(7, Qt::FormLayout::LabelRole, @lbl_description) @lie_description = Qt::LineEdit.new(command_editor) @lie_description.objectName = "lie_description" @lie_description.maximumSize = Qt::Size.new(300, 16777215) @lie_description.maxLength = 200 @fl.setWidget(7, Qt::FormLayout::FieldRole, @lie_description) @vl2.addLayout(@fl) @vl3 = Qt::VBoxLayout.new() @vl3.objectName = "vl3" @label = Qt::Label.new(command_editor) @label.objectName = "label" @vl3.addWidget(@label) @tbl_bytes = Qt::TableWidget.new(command_editor) @tbl_bytes.objectName = "tbl_bytes" @font = Qt::Font.new @font.family = "Arial" @tbl_bytes.font = @font @tbl_bytes.sortingEnabled = true @vl3.addWidget(@tbl_bytes) @hl2 = Qt::HBoxLayout.new() @hl2.objectName = "hl2" @btn_clone = Qt::PushButton.new(command_editor) @btn_clone.objectName = "btn_clone" @btn_clone.minimumSize = Qt::Size.new(0, 0) @btn_clone.maximumSize = Qt::Size.new(16777215, 16777215) @hl2.addWidget(@btn_clone) @btn_remove = Qt::PushButton.new(command_editor) @btn_remove.objectName = "btn_remove" @btn_remove.maximumSize = Qt::Size.new(30, 16777215) @hl2.addWidget(@btn_remove) @btn_add_row = Qt::PushButton.new(command_editor) @btn_add_row.objectName = "btn_add_row" @btn_add_row.maximumSize = Qt::Size.new(30, 16777215) @hl2.addWidget(@btn_add_row) @lie_text_2_bytes = Qt::LineEdit.new(command_editor) @lie_text_2_bytes.objectName = "lie_text_2_bytes" @lie_text_2_bytes.maxLength = 200 @hl2.addWidget(@lie_text_2_bytes) @horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl2.addItem(@horizontalSpacer) @vl3.addLayout(@hl2) @vl2.addLayout(@vl3) @vl.addLayout(@vl2) @hl = Qt::HBoxLayout.new() @hl.objectName = "hl" @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl.addItem(@hs) @btn_cancel = Qt::PushButton.new(command_editor) @btn_cancel.objectName = "btn_cancel" @hl.addWidget(@btn_cancel) @btn_validate = Qt::PushButton.new(command_editor) @btn_validate.objectName = "btn_validate" @hl.addWidget(@btn_validate) @vl.addLayout(@hl) @gridLayout.addLayout(@vl, 0, 0, 1, 1) retranslateUi(command_editor) Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), command_editor, SLOT('close()')) Qt::Object.connect(@btn_clone, SIGNAL('clicked()'), command_editor, SLOT('clone_row()')) Qt::Object.connect(@btn_remove, SIGNAL('clicked()'), command_editor, SLOT('remove_row()')) Qt::Object.connect(@btn_add_row, SIGNAL('clicked()'), command_editor, SLOT('add_row()')) Qt::Object.connect(@tbl_bytes, SIGNAL('itemChanged(QTableWidgetItem*)'), command_editor, SLOT('check_cell_content(QTableWidgetItem*)')) Qt::MetaObject.connectSlotsByName(command_editor) end |