Class: Ui_Generic_commands
- Inherits:
-
Object
- Object
- Ui_Generic_commands
- Defined in:
- lib/gui/gui_generic_commands.rb
Overview
** Form generated from reading ui file ‘gui_generic_commands.ui’ ** ** Created: jeu. déc. 3 15:41:54 2015 ** 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_new_cmd ⇒ Object
readonly
Returns the value of attribute btn_new_cmd.
-
#btn_next ⇒ Object
readonly
Returns the value of attribute btn_next.
-
#cbx_action ⇒ Object
readonly
Returns the value of attribute cbx_action.
-
#check_result ⇒ Object
readonly
Returns the value of attribute check_result.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#hl ⇒ Object
readonly
Returns the value of attribute hl.
-
#hl3 ⇒ Object
readonly
Returns the value of attribute hl3.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#hs2 ⇒ Object
readonly
Returns the value of attribute hs2.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#lbl_current_chip ⇒ Object
readonly
Returns the value of attribute lbl_current_chip.
-
#lbl_search ⇒ Object
readonly
Returns the value of attribute lbl_search.
-
#lie_search ⇒ Object
readonly
Returns the value of attribute lie_search.
-
#tbl_cmd ⇒ Object
readonly
Returns the value of attribute tbl_cmd.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
-
#vl2 ⇒ Object
readonly
Returns the value of attribute vl2.
Instance Method Summary collapse
-
#retranslate_ui(generic_commands) ⇒ Object
retranslateUi.
- #retranslateUi(generic_commands) ⇒ Object
-
#setup_ui(generic_commands) ⇒ Object
setupUi.
- #setupUi(generic_commands) ⇒ Object
Instance Attribute Details
#btn_new_cmd ⇒ Object (readonly)
Returns the value of attribute btn_new_cmd.
24 25 26 |
# File 'lib/gui/gui_generic_commands.rb', line 24 def btn_new_cmd @btn_new_cmd end |
#btn_next ⇒ Object (readonly)
Returns the value of attribute btn_next.
26 27 28 |
# File 'lib/gui/gui_generic_commands.rb', line 26 def btn_next @btn_next end |
#cbx_action ⇒ Object (readonly)
Returns the value of attribute cbx_action.
25 26 27 |
# File 'lib/gui/gui_generic_commands.rb', line 25 def cbx_action @cbx_action end |
#check_result ⇒ Object (readonly)
Returns the value of attribute check_result.
22 23 24 |
# File 'lib/gui/gui_generic_commands.rb', line 22 def check_result @check_result end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_generic_commands.rb', line 11 def gridLayout @gridLayout end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
13 14 15 |
# File 'lib/gui/gui_generic_commands.rb', line 13 def hl @hl end |
#hl3 ⇒ Object (readonly)
Returns the value of attribute hl3.
21 22 23 |
# File 'lib/gui/gui_generic_commands.rb', line 21 def hl3 @hl3 end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
16 17 18 |
# File 'lib/gui/gui_generic_commands.rb', line 16 def hs @hs end |
#hs2 ⇒ Object (readonly)
Returns the value of attribute hs2.
23 24 25 |
# File 'lib/gui/gui_generic_commands.rb', line 23 def hs2 @hs2 end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
18 19 20 |
# File 'lib/gui/gui_generic_commands.rb', line 18 def lbl_chip @lbl_chip end |
#lbl_current_chip ⇒ Object (readonly)
Returns the value of attribute lbl_current_chip.
17 18 19 |
# File 'lib/gui/gui_generic_commands.rb', line 17 def lbl_current_chip @lbl_current_chip end |
#lbl_search ⇒ Object (readonly)
Returns the value of attribute lbl_search.
14 15 16 |
# File 'lib/gui/gui_generic_commands.rb', line 14 def lbl_search @lbl_search end |
#lie_search ⇒ Object (readonly)
Returns the value of attribute lie_search.
15 16 17 |
# File 'lib/gui/gui_generic_commands.rb', line 15 def lie_search @lie_search end |
#tbl_cmd ⇒ Object (readonly)
Returns the value of attribute tbl_cmd.
20 21 22 |
# File 'lib/gui/gui_generic_commands.rb', line 20 def tbl_cmd @tbl_cmd end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_generic_commands.rb', line 12 def vl @vl end |
#vl2 ⇒ Object (readonly)
Returns the value of attribute vl2.
19 20 21 |
# File 'lib/gui/gui_generic_commands.rb', line 19 def vl2 @vl2 end |
Instance Method Details
#retranslate_ui(generic_commands) ⇒ Object
retranslateUi
154 155 156 |
# File 'lib/gui/gui_generic_commands.rb', line 154 def retranslate_ui(generic_commands) retranslateUi(generic_commands) end |
#retranslateUi(generic_commands) ⇒ Object
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 |
# File 'lib/gui/gui_generic_commands.rb', line 127 def retranslateUi(generic_commands) generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8) @lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8) @lie_search.inputMask = '' @lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8) if @tbl_cmd.columnCount < 2 @tbl_cmd.columnCount = 2 end __colItem = Qt::TableWidgetItem.new __colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8)) @tbl_cmd.setHorizontalHeaderItem(0, __colItem) __colItem1 = Qt::TableWidgetItem.new __colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8)) @tbl_cmd.setHorizontalHeaderItem(1, __colItem1) @check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8) @btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8) @cbx_action.insertItems(0, [Qt::Application.translate("Generic_commands", "Action...", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)]) @btn_next.text = Qt::Application.translate("Generic_commands", "Next", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(generic_commands) ⇒ Object
setupUi
123 124 125 |
# File 'lib/gui/gui_generic_commands.rb', line 123 def setup_ui(generic_commands) setupUi(generic_commands) end |
#setupUi(generic_commands) ⇒ Object
28 29 30 31 32 33 34 35 36 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 |
# File 'lib/gui/gui_generic_commands.rb', line 28 def setupUi(generic_commands) if generic_commands.objectName.nil? generic_commands.objectName = "generic_commands" end generic_commands.resize(532, 384) generic_commands.minimumSize = Qt::Size.new(532, 384) @gridLayout = Qt::GridLayout.new(generic_commands) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @hl = Qt::HBoxLayout.new() @hl.objectName = "hl" @lbl_search = Qt::Label.new(generic_commands) @lbl_search.objectName = "lbl_search" @hl.addWidget(@lbl_search) @lie_search = Qt::LineEdit.new(generic_commands) @lie_search.objectName = "lie_search" @lie_search.maxLength = 10 @hl.addWidget(@lie_search) @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl.addItem(@hs) @lbl_current_chip = Qt::Label.new(generic_commands) @lbl_current_chip.objectName = "lbl_current_chip" @hl.addWidget(@lbl_current_chip) @lbl_chip = Qt::Label.new(generic_commands) @lbl_chip.objectName = "lbl_chip" @hl.addWidget(@lbl_chip) @vl.addLayout(@hl) @vl2 = Qt::VBoxLayout.new() @vl2.objectName = "vl2" @tbl_cmd = Qt::TableWidget.new(generic_commands) @tbl_cmd.objectName = "tbl_cmd" @font = Qt::Font.new @font.family = "Arial" @tbl_cmd.font = @font @tbl_cmd.sortingEnabled = true @vl2.addWidget(@tbl_cmd) @hl3 = Qt::HBoxLayout.new() @hl3.objectName = "hl3" @check_result = Qt::CheckBox.new(generic_commands) @check_result.objectName = "check_result" @hl3.addWidget(@check_result) @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl3.addItem(@hs2) @btn_new_cmd = Qt::PushButton.new(generic_commands) @btn_new_cmd.objectName = "btn_new_cmd" @hl3.addWidget(@btn_new_cmd) @cbx_action = Qt::ComboBox.new(generic_commands) @cbx_action.objectName = "cbx_action" @hl3.addWidget(@cbx_action) @btn_next = Qt::PushButton.new(generic_commands) @btn_next.objectName = "btn_next" @hl3.addWidget(@btn_next) @vl2.addLayout(@hl3) @vl.addLayout(@vl2) @gridLayout.addLayout(@vl, 0, 0, 1, 1) retranslateUi(generic_commands) Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()')) Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('open_cmd_form()')) Qt::Object.connect(@btn_next, SIGNAL('clicked()'), generic_commands, SLOT('exec_action()')) Qt::MetaObject.connectSlotsByName(generic_commands) end |