Class: Ui_Generic_import
- Inherits:
-
Object
- Object
- Ui_Generic_import
- Defined in:
- lib/gui/gui_generic_import.rb
Overview
** Form generated from reading ui file ‘gui_generic_import.ui’ ** ** Created: mar. déc. 8 14:09:40 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_file ⇒ Object
readonly
Returns the value of attribute btn_file.
-
#btn_import ⇒ Object
readonly
Returns the value of attribute btn_import.
-
#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.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#lbl_export ⇒ Object
readonly
Returns the value of attribute lbl_export.
-
#lbl_file ⇒ Object
readonly
Returns the value of attribute lbl_file.
-
#lbl_start ⇒ Object
readonly
Returns the value of attribute lbl_start.
-
#lie_start ⇒ Object
readonly
Returns the value of attribute lie_start.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
Instance Method Summary collapse
-
#retranslate_ui(generic_import) ⇒ Object
retranslateUi.
- #retranslateUi(generic_import) ⇒ Object
-
#setup_ui(generic_import) ⇒ Object
setupUi.
- #setupUi(generic_import) ⇒ Object
Instance Attribute Details
#btn_file ⇒ Object (readonly)
Returns the value of attribute btn_file.
20 21 22 |
# File 'lib/gui/gui_generic_import.rb', line 20 def btn_file @btn_file end |
#btn_import ⇒ Object (readonly)
Returns the value of attribute btn_import.
23 24 25 |
# File 'lib/gui/gui_generic_import.rb', line 23 def btn_import @btn_import end |
#fl ⇒ Object (readonly)
Returns the value of attribute fl.
17 18 19 |
# File 'lib/gui/gui_generic_import.rb', line 17 def fl @fl end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_generic_import.rb', line 11 def gridLayout @gridLayout end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
22 23 24 |
# File 'lib/gui/gui_generic_import.rb', line 22 def hl @hl end |
#hl2 ⇒ Object (readonly)
Returns the value of attribute hl2.
13 14 15 |
# File 'lib/gui/gui_generic_import.rb', line 13 def hl2 @hl2 end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
16 17 18 |
# File 'lib/gui/gui_generic_import.rb', line 16 def hs @hs end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
14 15 16 |
# File 'lib/gui/gui_generic_import.rb', line 14 def lbl_chip @lbl_chip end |
#lbl_export ⇒ Object (readonly)
Returns the value of attribute lbl_export.
15 16 17 |
# File 'lib/gui/gui_generic_import.rb', line 15 def lbl_export @lbl_export end |
#lbl_file ⇒ Object (readonly)
Returns the value of attribute lbl_file.
21 22 23 |
# File 'lib/gui/gui_generic_import.rb', line 21 def lbl_file @lbl_file end |
#lbl_start ⇒ Object (readonly)
Returns the value of attribute lbl_start.
18 19 20 |
# File 'lib/gui/gui_generic_import.rb', line 18 def lbl_start @lbl_start end |
#lie_start ⇒ Object (readonly)
Returns the value of attribute lie_start.
19 20 21 |
# File 'lib/gui/gui_generic_import.rb', line 19 def lie_start @lie_start end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_generic_import.rb', line 12 def vl @vl end |
Instance Method Details
#retranslate_ui(generic_import) ⇒ Object
retranslateUi
116 117 118 |
# File 'lib/gui/gui_generic_import.rb', line 116 def retranslate_ui(generic_import) retranslateUi(generic_import) end |
#retranslateUi(generic_import) ⇒ Object
105 106 107 108 109 110 111 112 113 114 |
# File 'lib/gui/gui_generic_import.rb', line 105 def retranslateUi(generic_import) generic_import.windowTitle = Qt::Application.translate("Generic_import", "Hardsploit - Import", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("Generic_import", "[CHIP]", nil, Qt::Application::UnicodeUTF8) @lbl_export.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8) @lbl_start.text = Qt::Application.translate("Generic_import", "Start address:", nil, Qt::Application::UnicodeUTF8) @lie_start.text = Qt::Application.translate("Generic_import", "0", nil, Qt::Application::UnicodeUTF8) @btn_file.text = Qt::Application.translate("Generic_import", "File...", nil, Qt::Application::UnicodeUTF8) @lbl_file.text = Qt::Application.translate("Generic_import", "File:", nil, Qt::Application::UnicodeUTF8) @btn_import.text = Qt::Application.translate("Generic_import", "Import", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(generic_import) ⇒ Object
setupUi
101 102 103 |
# File 'lib/gui/gui_generic_import.rb', line 101 def setup_ui(generic_import) setupUi(generic_import) end |
#setupUi(generic_import) ⇒ Object
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 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/gui/gui_generic_import.rb', line 25 def setupUi(generic_import) if generic_import.objectName.nil? generic_import.objectName = "generic_import" end generic_import.resize(265, 137) @gridLayout = Qt::GridLayout.new(generic_import) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @hl2 = Qt::HBoxLayout.new() @hl2.objectName = "hl2" @lbl_chip = Qt::Label.new(generic_import) @lbl_chip.objectName = "lbl_chip" @hl2.addWidget(@lbl_chip) @lbl_export = Qt::Label.new(generic_import) @lbl_export.objectName = "lbl_export" @hl2.addWidget(@lbl_export) @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl2.addItem(@hs) @vl.addLayout(@hl2) @fl = Qt::FormLayout.new() @fl.objectName = "fl" @lbl_start = Qt::Label.new(generic_import) @lbl_start.objectName = "lbl_start" @fl.setWidget(1, Qt::FormLayout::LabelRole, @lbl_start) @lie_start = Qt::LineEdit.new(generic_import) @lie_start.objectName = "lie_start" @lie_start.maxLength = 20 @fl.setWidget(1, Qt::FormLayout::FieldRole, @lie_start) @btn_file = Qt::PushButton.new(generic_import) @btn_file.objectName = "btn_file" @fl.setWidget(2, Qt::FormLayout::FieldRole, @btn_file) @lbl_file = Qt::Label.new(generic_import) @lbl_file.objectName = "lbl_file" @fl.setWidget(2, Qt::FormLayout::LabelRole, @lbl_file) @vl.addLayout(@fl) @hl = Qt::HBoxLayout.new() @hl.objectName = "hl" @btn_import = Qt::PushButton.new(generic_import) @btn_import.objectName = "btn_import" @btn_import.enabled = false @hl.addWidget(@btn_import) @vl.addLayout(@hl) @gridLayout.addLayout(@vl, 0, 0, 1, 1) retranslateUi(generic_import) Qt::Object.connect(@btn_import, SIGNAL('clicked()'), generic_import, SLOT('import()')) Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_import, SLOT('select_import_file()')) Qt::MetaObject.connectSlotsByName(generic_import) end |