Class: Ui_Wire_helper
- Inherits:
-
Object
- Object
- Ui_Wire_helper
- Defined in:
- lib/gui/gui_wire_helper.rb
Overview
** Form generated from reading ui file ‘gui_wire_helper.ui’ ** ** Created: mer. mars 8 11:15:10 2017 ** by: Qt User Interface Compiler version 4.8.7 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!
Direct Known Subclasses
Instance Attribute Summary collapse
-
#btn_cancel ⇒ Object
readonly
Returns the value of attribute btn_cancel.
-
#btn_rotate ⇒ Object
readonly
Returns the value of attribute btn_rotate.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#gView ⇒ Object
readonly
Returns the value of attribute gView.
-
#hl ⇒ Object
readonly
Returns the value of attribute hl.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#lbl_advice ⇒ Object
readonly
Returns the value of attribute lbl_advice.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
Instance Method Summary collapse
-
#retranslate_ui(wire_helper) ⇒ Object
retranslateUi.
- #retranslateUi(wire_helper) ⇒ Object
-
#setup_ui(wire_helper) ⇒ Object
setupUi.
- #setupUi(wire_helper) ⇒ Object
Instance Attribute Details
#btn_cancel ⇒ Object (readonly)
Returns the value of attribute btn_cancel.
18 19 20 |
# File 'lib/gui/gui_wire_helper.rb', line 18 def btn_cancel @btn_cancel end |
#btn_rotate ⇒ Object (readonly)
Returns the value of attribute btn_rotate.
19 20 21 |
# File 'lib/gui/gui_wire_helper.rb', line 19 def btn_rotate @btn_rotate end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_wire_helper.rb', line 11 def gridLayout @gridLayout end |
#gView ⇒ Object (readonly)
Returns the value of attribute gView.
15 16 17 |
# File 'lib/gui/gui_wire_helper.rb', line 15 def gView @gView end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
16 17 18 |
# File 'lib/gui/gui_wire_helper.rb', line 16 def hl @hl end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
17 18 19 |
# File 'lib/gui/gui_wire_helper.rb', line 17 def hs @hs end |
#lbl_advice ⇒ Object (readonly)
Returns the value of attribute lbl_advice.
13 14 15 |
# File 'lib/gui/gui_wire_helper.rb', line 13 def lbl_advice @lbl_advice end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
14 15 16 |
# File 'lib/gui/gui_wire_helper.rb', line 14 def lbl_chip @lbl_chip end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_wire_helper.rb', line 12 def vl @vl end |
Instance Method Details
#retranslate_ui(wire_helper) ⇒ Object
retranslateUi
89 90 91 |
# File 'lib/gui/gui_wire_helper.rb', line 89 def retranslate_ui(wire_helper) retranslateUi(wire_helper) end |
#retranslateUi(wire_helper) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/gui/gui_wire_helper.rb', line 81 def retranslateUi(wire_helper) wire_helper.windowTitle = Qt::Application.translate("Wire_helper", "Harsploit - Wiring helper", nil, Qt::Application::UnicodeUTF8) @lbl_advice.text = Qt::Application.translate("Wire_helper", "Click on a pin number or signal name to turn ON the corresponding LED", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("Wire_helper", "Your chip:", nil, Qt::Application::UnicodeUTF8) @btn_cancel.text = Qt::Application.translate("Wire_helper", "Close", nil, Qt::Application::UnicodeUTF8) @btn_rotate.text = Qt::Application.translate("Wire_helper", "Rotate", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(wire_helper) ⇒ Object
setupUi
77 78 79 |
# File 'lib/gui/gui_wire_helper.rb', line 77 def setup_ui(wire_helper) setupUi(wire_helper) end |
#setupUi(wire_helper) ⇒ Object
21 22 23 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 |
# File 'lib/gui/gui_wire_helper.rb', line 21 def setupUi(wire_helper) if wire_helper.objectName.nil? wire_helper.objectName = "wire_helper" end wire_helper.resize(581, 560) wire_helper.styleSheet = "" @gridLayout = Qt::GridLayout.new(wire_helper) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @lbl_advice = Qt::Label.new(wire_helper) @lbl_advice.objectName = "lbl_advice" @vl.addWidget(@lbl_advice) @lbl_chip = Qt::Label.new(wire_helper) @lbl_chip.objectName = "lbl_chip" @vl.addWidget(@lbl_chip) @gView = Qt::GraphicsView.new(wire_helper) @gView.objectName = "gView" @gView.styleSheet = "Qt::GraphicsTextItem{outline: 0;}" @vl.addWidget(@gView) @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(wire_helper) @btn_cancel.objectName = "btn_cancel" @hl.addWidget(@btn_cancel) @btn_rotate = Qt::PushButton.new(wire_helper) @btn_rotate.objectName = "btn_rotate" @hl.addWidget(@btn_rotate) @vl.addLayout(@hl) @gridLayout.addLayout(@vl, 1, 0, 1, 1) retranslateUi(wire_helper) Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), wire_helper, SLOT('close()')) Qt::Object.connect(@btn_rotate, SIGNAL('clicked()'), wire_helper, SLOT('rotate_scene()')) Qt::MetaObject.connectSlotsByName(wire_helper) end |