Class: Ui_I2c_command
- Inherits:
-
Object
- Object
- Ui_I2c_command
- Defined in:
- lib/gui/gui_i2c_command.rb
Overview
** Form generated from reading ui file ‘gui_i2c_command.ui’ ** ** Created: mar. déc. 22 13:09:06 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
-
#bnt_new_cmd ⇒ Object
readonly
Returns the value of attribute bnt_new_cmd.
-
#btn_cancel ⇒ Object
readonly
Returns the value of attribute btn_cancel.
-
#fl ⇒ Object
readonly
Returns the value of attribute fl.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#groupBox ⇒ Object
readonly
Returns the value of attribute groupBox.
-
#hl ⇒ Object
readonly
Returns the value of attribute hl.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#lbl_size ⇒ Object
readonly
Returns the value of attribute lbl_size.
-
#lbl_type_cmd ⇒ Object
readonly
Returns the value of attribute lbl_type_cmd.
-
#lie_size ⇒ Object
readonly
Returns the value of attribute lie_size.
-
#rbn_read ⇒ Object
readonly
Returns the value of attribute rbn_read.
-
#rbn_write ⇒ Object
readonly
Returns the value of attribute rbn_write.
Instance Method Summary collapse
-
#retranslate_ui(i2c_command) ⇒ Object
retranslateUi.
- #retranslateUi(i2c_command) ⇒ Object
-
#setup_ui(i2c_command) ⇒ Object
setupUi.
- #setupUi(i2c_command) ⇒ Object
Instance Attribute Details
#bnt_new_cmd ⇒ Object (readonly)
Returns the value of attribute bnt_new_cmd.
22 23 24 |
# File 'lib/gui/gui_i2c_command.rb', line 22 def bnt_new_cmd @bnt_new_cmd end |
#btn_cancel ⇒ Object (readonly)
Returns the value of attribute btn_cancel.
21 22 23 |
# File 'lib/gui/gui_i2c_command.rb', line 21 def btn_cancel @btn_cancel end |
#fl ⇒ Object (readonly)
Returns the value of attribute fl.
12 13 14 |
# File 'lib/gui/gui_i2c_command.rb', line 12 def fl @fl end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_i2c_command.rb', line 11 def gridLayout @gridLayout end |
#groupBox ⇒ Object (readonly)
Returns the value of attribute groupBox.
16 17 18 |
# File 'lib/gui/gui_i2c_command.rb', line 16 def groupBox @groupBox end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
19 20 21 |
# File 'lib/gui/gui_i2c_command.rb', line 19 def hl @hl end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
20 21 22 |
# File 'lib/gui/gui_i2c_command.rb', line 20 def hs @hs end |
#lbl_size ⇒ Object (readonly)
Returns the value of attribute lbl_size.
13 14 15 |
# File 'lib/gui/gui_i2c_command.rb', line 13 def lbl_size @lbl_size end |
#lbl_type_cmd ⇒ Object (readonly)
Returns the value of attribute lbl_type_cmd.
15 16 17 |
# File 'lib/gui/gui_i2c_command.rb', line 15 def lbl_type_cmd @lbl_type_cmd end |
#lie_size ⇒ Object (readonly)
Returns the value of attribute lie_size.
14 15 16 |
# File 'lib/gui/gui_i2c_command.rb', line 14 def lie_size @lie_size end |
#rbn_read ⇒ Object (readonly)
Returns the value of attribute rbn_read.
17 18 19 |
# File 'lib/gui/gui_i2c_command.rb', line 17 def rbn_read @rbn_read end |
#rbn_write ⇒ Object (readonly)
Returns the value of attribute rbn_write.
18 19 20 |
# File 'lib/gui/gui_i2c_command.rb', line 18 def rbn_write @rbn_write end |
Instance Method Details
#retranslate_ui(i2c_command) ⇒ Object
retranslateUi
105 106 107 |
# File 'lib/gui/gui_i2c_command.rb', line 105 def retranslate_ui(i2c_command) retranslateUi(i2c_command) end |
#retranslateUi(i2c_command) ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/gui/gui_i2c_command.rb', line 94 def retranslateUi(i2c_command) i2c_command.windowTitle = Qt::Application.translate("I2c_command", "Hardsploit - I2C Command", nil, Qt::Application::UnicodeUTF8) @lbl_size.text = Qt::Application.translate("I2c_command", "Payload size:", nil, Qt::Application::UnicodeUTF8) @lbl_type_cmd.text = Qt::Application.translate("I2c_command", "Command type:", nil, Qt::Application::UnicodeUTF8) @groupBox.title = '' @rbn_read.text = Qt::Application.translate("I2c_command", "Read", nil, Qt::Application::UnicodeUTF8) @rbn_write.text = Qt::Application.translate("I2c_command", "Write", nil, Qt::Application::UnicodeUTF8) @btn_cancel.text = Qt::Application.translate("I2c_command", "Cancel", nil, Qt::Application::UnicodeUTF8) @bnt_new_cmd.text = Qt::Application.translate("I2c_command", "Open", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(i2c_command) ⇒ Object
setupUi
90 91 92 |
# File 'lib/gui/gui_i2c_command.rb', line 90 def setup_ui(i2c_command) setupUi(i2c_command) end |
#setupUi(i2c_command) ⇒ Object
24 25 26 27 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 |
# File 'lib/gui/gui_i2c_command.rb', line 24 def setupUi(i2c_command) if i2c_command.objectName.nil? i2c_command.objectName = "i2c_command" end i2c_command.resize(287, 103) @gridLayout = Qt::GridLayout.new(i2c_command) @gridLayout.objectName = "gridLayout" @fl = Qt::FormLayout.new() @fl.objectName = "fl" @lbl_size = Qt::Label.new(i2c_command) @lbl_size.objectName = "lbl_size" @fl.setWidget(0, Qt::FormLayout::LabelRole, @lbl_size) @lie_size = Qt::LineEdit.new(i2c_command) @lie_size.objectName = "lie_size" @fl.setWidget(0, Qt::FormLayout::FieldRole, @lie_size) @lbl_type_cmd = Qt::Label.new(i2c_command) @lbl_type_cmd.objectName = "lbl_type_cmd" @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_type_cmd) @groupBox = Qt::GroupBox.new(i2c_command) @groupBox.objectName = "groupBox" @rbn_read = Qt::RadioButton.new(@groupBox) @rbn_read.objectName = "rbn_read" @rbn_read.geometry = Qt::Rect.new(10, -4, 61, 31) @rbn_read.checked = true @rbn_write = Qt::RadioButton.new(@groupBox) @rbn_write.objectName = "rbn_write" @rbn_write.geometry = Qt::Rect.new(90, 0, 61, 21) @fl.setWidget(1, Qt::FormLayout::FieldRole, @groupBox) @gridLayout.addLayout(@fl, 1, 0, 1, 1) @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(i2c_command) @btn_cancel.objectName = "btn_cancel" @hl.addWidget(@btn_cancel) @bnt_new_cmd = Qt::PushButton.new(i2c_command) @bnt_new_cmd.objectName = "bnt_new_cmd" @hl.addWidget(@bnt_new_cmd) @gridLayout.addLayout(@hl, 2, 0, 1, 1) retranslateUi(i2c_command) Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), i2c_command, SLOT('close()')) Qt::Object.connect(@bnt_new_cmd, SIGNAL('clicked()'), i2c_command, SLOT('open_generic_cmd()')) Qt::MetaObject.connectSlotsByName(i2c_command) end |