Class: Ui_Signal_mapper
- Inherits:
-
Object
- Object
- Ui_Signal_mapper
- Defined in:
- lib/gui/gui_signal_mapper.rb
Overview
** Form generated from reading ui file ‘gui_signal_mapper.ui’ ** ** Created: mer. juil. 20 11:26:24 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_cancel ⇒ Object
readonly
Returns the value of attribute btn_cancel.
-
#btn_save ⇒ Object
readonly
Returns the value of attribute btn_save.
-
#cbx_bus ⇒ Object
readonly
Returns the value of attribute cbx_bus.
-
#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.
-
#hs2 ⇒ Object
readonly
Returns the value of attribute hs2.
-
#lbl_bus ⇒ Object
readonly
Returns the value of attribute lbl_bus.
-
#map_table ⇒ Object
readonly
Returns the value of attribute map_table.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
Instance Method Summary collapse
-
#retranslate_ui(signal_mapper) ⇒ Object
retranslateUi.
- #retranslateUi(signal_mapper) ⇒ Object
-
#setup_ui(signal_mapper) ⇒ Object
setupUi.
- #setupUi(signal_mapper) ⇒ Object
Instance Attribute Details
#btn_cancel ⇒ Object (readonly)
Returns the value of attribute btn_cancel.
20 21 22 |
# File 'lib/gui/gui_signal_mapper.rb', line 20 def btn_cancel @btn_cancel end |
#btn_save ⇒ Object (readonly)
Returns the value of attribute btn_save.
21 22 23 |
# File 'lib/gui/gui_signal_mapper.rb', line 21 def btn_save @btn_save end |
#cbx_bus ⇒ Object (readonly)
Returns the value of attribute cbx_bus.
15 16 17 |
# File 'lib/gui/gui_signal_mapper.rb', line 15 def cbx_bus @cbx_bus end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_signal_mapper.rb', line 11 def gridLayout @gridLayout end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
13 14 15 |
# File 'lib/gui/gui_signal_mapper.rb', line 13 def hl @hl end |
#hl2 ⇒ Object (readonly)
Returns the value of attribute hl2.
18 19 20 |
# File 'lib/gui/gui_signal_mapper.rb', line 18 def hl2 @hl2 end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
16 17 18 |
# File 'lib/gui/gui_signal_mapper.rb', line 16 def hs @hs end |
#hs2 ⇒ Object (readonly)
Returns the value of attribute hs2.
19 20 21 |
# File 'lib/gui/gui_signal_mapper.rb', line 19 def hs2 @hs2 end |
#lbl_bus ⇒ Object (readonly)
Returns the value of attribute lbl_bus.
14 15 16 |
# File 'lib/gui/gui_signal_mapper.rb', line 14 def lbl_bus @lbl_bus end |
#map_table ⇒ Object (readonly)
Returns the value of attribute map_table.
17 18 19 |
# File 'lib/gui/gui_signal_mapper.rb', line 17 def map_table @map_table end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_signal_mapper.rb', line 12 def vl @vl end |
Instance Method Details
#retranslate_ui(signal_mapper) ⇒ Object
retranslateUi
111 112 113 |
# File 'lib/gui/gui_signal_mapper.rb', line 111 def retranslate_ui(signal_mapper) retranslateUi(signal_mapper) end |
#retranslateUi(signal_mapper) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/gui/gui_signal_mapper.rb', line 92 def retranslateUi(signal_mapper) signal_mapper.windowTitle = Qt::Application.translate("Signal_mapper", "Signal mapper", nil, Qt::Application::UnicodeUTF8) @lbl_bus.text = Qt::Application.translate("Signal_mapper", "Select a bus", nil, Qt::Application::UnicodeUTF8) @cbx_bus.insertItems(0, [Qt::Application.translate("Signal_mapper", "Bus...", nil, Qt::Application::UnicodeUTF8)]) if @map_table.columnCount < 2 @map_table.columnCount = 2 end __colItem = Qt::TableWidgetItem.new __colItem.setText(Qt::Application.translate("Signal_mapper", "Signal Name", nil, Qt::Application::UnicodeUTF8)) @map_table.setHorizontalHeaderItem(0, __colItem) __colItem1 = Qt::TableWidgetItem.new __colItem1.setText(Qt::Application.translate("Signal_mapper", "Associated Pin", nil, Qt::Application::UnicodeUTF8)) @map_table.setHorizontalHeaderItem(1, __colItem1) @btn_cancel.text = Qt::Application.translate("Signal_mapper", "Close", nil, Qt::Application::UnicodeUTF8) @btn_save.text = Qt::Application.translate("Signal_mapper", "Save", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(signal_mapper) ⇒ Object
setupUi
88 89 90 |
# File 'lib/gui/gui_signal_mapper.rb', line 88 def setup_ui(signal_mapper) setupUi(signal_mapper) end |
#setupUi(signal_mapper) ⇒ Object
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 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/gui/gui_signal_mapper.rb', line 23 def setupUi(signal_mapper) if signal_mapper.objectName.nil? signal_mapper.objectName = "signal_mapper" end signal_mapper.resize(268, 411) @gridLayout = Qt::GridLayout.new(signal_mapper) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @hl = Qt::HBoxLayout.new() @hl.objectName = "hl" @lbl_bus = Qt::Label.new(signal_mapper) @lbl_bus.objectName = "lbl_bus" @hl.addWidget(@lbl_bus) @cbx_bus = Qt::ComboBox.new(signal_mapper) @cbx_bus.objectName = "cbx_bus" @hl.addWidget(@cbx_bus) @hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl.addItem(@hs) @vl.addLayout(@hl) @map_table = Qt::TableWidget.new(signal_mapper) @map_table.objectName = "map_table" @vl.addWidget(@map_table) @hl2 = Qt::HBoxLayout.new() @hl2.objectName = "hl2" @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl2.addItem(@hs2) @btn_cancel = Qt::PushButton.new(signal_mapper) @btn_cancel.objectName = "btn_cancel" @hl2.addWidget(@btn_cancel) @btn_save = Qt::PushButton.new(signal_mapper) @btn_save.objectName = "btn_save" @hl2.addWidget(@btn_save) @vl.addLayout(@hl2) @gridLayout.addLayout(@vl, 0, 0, 1, 1) retranslateUi(signal_mapper) Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), signal_mapper, SLOT('close()')) Qt::Object.connect(@btn_save, SIGNAL('clicked()'), signal_mapper, SLOT('save_signal_mapping()')) Qt::Object.connect(@cbx_bus, SIGNAL('currentIndexChanged(QString)'), signal_mapper, SLOT('update_map_table(QString)')) Qt::Object.connect(@map_table, SIGNAL('itemChanged(QTableWidgetItem*)'), signal_mapper, SLOT('check_mapping_value(QTableWidgetItem*)')) Qt::MetaObject.connectSlotsByName(signal_mapper) end |