Class: Ui_I2c_settings
- Inherits:
-
Object
- Object
- Ui_I2c_settings
- Defined in:
- lib/gui/gui_i2c_settings.rb
Overview
** Form generated from reading ui file ‘gui_i2c_settings.ui’ ** ** Created: mer. mars 8 11:15:05 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_bus_scan ⇒ Object
readonly
Returns the value of attribute btn_bus_scan.
-
#btn_cancel ⇒ Object
readonly
Returns the value of attribute btn_cancel.
-
#btn_save ⇒ Object
readonly
Returns the value of attribute btn_save.
-
#cbx_frequency ⇒ Object
readonly
Returns the value of attribute cbx_frequency.
-
#formLayout ⇒ Object
readonly
Returns the value of attribute formLayout.
-
#formLayout_2 ⇒ Object
readonly
Returns the value of attribute formLayout_2.
-
#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.
-
#horizontalLayout ⇒ Object
readonly
Returns the value of attribute horizontalLayout.
-
#hs ⇒ Object
readonly
Returns the value of attribute hs.
-
#hs2 ⇒ Object
readonly
Returns the value of attribute hs2.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#lbl_address_r ⇒ Object
readonly
Returns the value of attribute lbl_address_r.
-
#lbl_address_w ⇒ Object
readonly
Returns the value of attribute lbl_address_w.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#lbl_frequency ⇒ Object
readonly
Returns the value of attribute lbl_frequency.
-
#lbl_full_size ⇒ Object
readonly
Returns the value of attribute lbl_full_size.
-
#lbl_page_size ⇒ Object
readonly
Returns the value of attribute lbl_page_size.
-
#lbl_parameters ⇒ Object
readonly
Returns the value of attribute lbl_parameters.
-
#lbl_write_page_latency ⇒ Object
readonly
Returns the value of attribute lbl_write_page_latency.
-
#lie_address_r ⇒ Object
readonly
Returns the value of attribute lie_address_r.
-
#lie_address_w ⇒ Object
readonly
Returns the value of attribute lie_address_w.
-
#lie_page_size ⇒ Object
readonly
Returns the value of attribute lie_page_size.
-
#lie_total_size ⇒ Object
readonly
Returns the value of attribute lie_total_size.
-
#lie_write_page_latency ⇒ Object
readonly
Returns the value of attribute lie_write_page_latency.
-
#tbl_bus_scan ⇒ Object
readonly
Returns the value of attribute tbl_bus_scan.
-
#vl ⇒ Object
readonly
Returns the value of attribute vl.
Instance Method Summary collapse
-
#retranslate_ui(i2c_settings) ⇒ Object
retranslateUi.
- #retranslateUi(i2c_settings) ⇒ Object
-
#setup_ui(i2c_settings) ⇒ Object
setupUi.
- #setupUi(i2c_settings) ⇒ Object
Instance Attribute Details
#btn_bus_scan ⇒ Object (readonly)
Returns the value of attribute btn_bus_scan.
24 25 26 |
# File 'lib/gui/gui_i2c_settings.rb', line 24 def btn_bus_scan @btn_bus_scan end |
#btn_cancel ⇒ Object (readonly)
Returns the value of attribute btn_cancel.
37 38 39 |
# File 'lib/gui/gui_i2c_settings.rb', line 37 def btn_cancel @btn_cancel end |
#btn_save ⇒ Object (readonly)
Returns the value of attribute btn_save.
38 39 40 |
# File 'lib/gui/gui_i2c_settings.rb', line 38 def btn_save @btn_save end |
#cbx_frequency ⇒ Object (readonly)
Returns the value of attribute cbx_frequency.
28 29 30 |
# File 'lib/gui/gui_i2c_settings.rb', line 28 def cbx_frequency @cbx_frequency end |
#formLayout ⇒ Object (readonly)
Returns the value of attribute formLayout.
26 27 28 |
# File 'lib/gui/gui_i2c_settings.rb', line 26 def formLayout @formLayout end |
#formLayout_2 ⇒ Object (readonly)
Returns the value of attribute formLayout_2.
17 18 19 |
# File 'lib/gui/gui_i2c_settings.rb', line 17 def formLayout_2 @formLayout_2 end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_i2c_settings.rb', line 11 def gridLayout @gridLayout end |
#hl ⇒ Object (readonly)
Returns the value of attribute hl.
35 36 37 |
# File 'lib/gui/gui_i2c_settings.rb', line 35 def hl @hl end |
#hl2 ⇒ Object (readonly)
Returns the value of attribute hl2.
13 14 15 |
# File 'lib/gui/gui_i2c_settings.rb', line 13 def hl2 @hl2 end |
#horizontalLayout ⇒ Object (readonly)
Returns the value of attribute horizontalLayout.
22 23 24 |
# File 'lib/gui/gui_i2c_settings.rb', line 22 def horizontalLayout @horizontalLayout end |
#hs ⇒ Object (readonly)
Returns the value of attribute hs.
36 37 38 |
# File 'lib/gui/gui_i2c_settings.rb', line 36 def hs @hs end |
#hs2 ⇒ Object (readonly)
Returns the value of attribute hs2.
16 17 18 |
# File 'lib/gui/gui_i2c_settings.rb', line 16 def hs2 @hs2 end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
23 24 25 |
# File 'lib/gui/gui_i2c_settings.rb', line 23 def label @label end |
#lbl_address_r ⇒ Object (readonly)
Returns the value of attribute lbl_address_r.
20 21 22 |
# File 'lib/gui/gui_i2c_settings.rb', line 20 def lbl_address_r @lbl_address_r end |
#lbl_address_w ⇒ Object (readonly)
Returns the value of attribute lbl_address_w.
18 19 20 |
# File 'lib/gui/gui_i2c_settings.rb', line 18 def lbl_address_w @lbl_address_w end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
14 15 16 |
# File 'lib/gui/gui_i2c_settings.rb', line 14 def lbl_chip @lbl_chip end |
#lbl_frequency ⇒ Object (readonly)
Returns the value of attribute lbl_frequency.
27 28 29 |
# File 'lib/gui/gui_i2c_settings.rb', line 27 def lbl_frequency @lbl_frequency end |
#lbl_full_size ⇒ Object (readonly)
Returns the value of attribute lbl_full_size.
32 33 34 |
# File 'lib/gui/gui_i2c_settings.rb', line 32 def lbl_full_size @lbl_full_size end |
#lbl_page_size ⇒ Object (readonly)
Returns the value of attribute lbl_page_size.
31 32 33 |
# File 'lib/gui/gui_i2c_settings.rb', line 31 def lbl_page_size @lbl_page_size end |
#lbl_parameters ⇒ Object (readonly)
Returns the value of attribute lbl_parameters.
15 16 17 |
# File 'lib/gui/gui_i2c_settings.rb', line 15 def lbl_parameters @lbl_parameters end |
#lbl_write_page_latency ⇒ Object (readonly)
Returns the value of attribute lbl_write_page_latency.
29 30 31 |
# File 'lib/gui/gui_i2c_settings.rb', line 29 def lbl_write_page_latency @lbl_write_page_latency end |
#lie_address_r ⇒ Object (readonly)
Returns the value of attribute lie_address_r.
21 22 23 |
# File 'lib/gui/gui_i2c_settings.rb', line 21 def lie_address_r @lie_address_r end |
#lie_address_w ⇒ Object (readonly)
Returns the value of attribute lie_address_w.
19 20 21 |
# File 'lib/gui/gui_i2c_settings.rb', line 19 def lie_address_w @lie_address_w end |
#lie_page_size ⇒ Object (readonly)
Returns the value of attribute lie_page_size.
33 34 35 |
# File 'lib/gui/gui_i2c_settings.rb', line 33 def lie_page_size @lie_page_size end |
#lie_total_size ⇒ Object (readonly)
Returns the value of attribute lie_total_size.
34 35 36 |
# File 'lib/gui/gui_i2c_settings.rb', line 34 def lie_total_size @lie_total_size end |
#lie_write_page_latency ⇒ Object (readonly)
Returns the value of attribute lie_write_page_latency.
30 31 32 |
# File 'lib/gui/gui_i2c_settings.rb', line 30 def lie_write_page_latency @lie_write_page_latency end |
#tbl_bus_scan ⇒ Object (readonly)
Returns the value of attribute tbl_bus_scan.
25 26 27 |
# File 'lib/gui/gui_i2c_settings.rb', line 25 def tbl_bus_scan @tbl_bus_scan end |
#vl ⇒ Object (readonly)
Returns the value of attribute vl.
12 13 14 |
# File 'lib/gui/gui_i2c_settings.rb', line 12 def vl @vl end |
Instance Method Details
#retranslate_ui(i2c_settings) ⇒ Object
retranslateUi
232 233 234 |
# File 'lib/gui/gui_i2c_settings.rb', line 232 def retranslate_ui(i2c_settings) retranslateUi(i2c_settings) end |
#retranslateUi(i2c_settings) ⇒ Object
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/gui/gui_i2c_settings.rb', line 196 def retranslateUi(i2c_settings) i2c_settings.windowTitle = Qt::Application.translate("I2c_settings", "Hardsploit - I\302\262C settings", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("I2c_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8) @lbl_parameters.text = Qt::Application.translate("I2c_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8) @lbl_address_w.text = Qt::Application.translate("I2c_settings", "Base address (W):", nil, Qt::Application::UnicodeUTF8) @lie_address_w.placeholderText = Qt::Application.translate("I2c_settings", "in hexadecimal", nil, Qt::Application::UnicodeUTF8) @lbl_address_r.text = Qt::Application.translate("I2c_settings", "Base address (R):", nil, Qt::Application::UnicodeUTF8) @lie_address_r.placeholderText = Qt::Application.translate("I2c_settings", "in hexadecimal", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("I2c_settings", "You don't know the addresses? Try a scan:", nil, Qt::Application::UnicodeUTF8) @btn_bus_scan.text = Qt::Application.translate("I2c_settings", "Launch", nil, Qt::Application::UnicodeUTF8) if @tbl_bus_scan.columnCount < 2 @tbl_bus_scan.columnCount = 2 end __colItem = Qt::TableWidgetItem.new __colItem.setText(Qt::Application.translate("I2c_settings", "Address", nil, Qt::Application::UnicodeUTF8)) @tbl_bus_scan.setHorizontalHeaderItem(0, __colItem) __colItem1 = Qt::TableWidgetItem.new __colItem1.setText(Qt::Application.translate("I2c_settings", "R/W", nil, Qt::Application::UnicodeUTF8)) @tbl_bus_scan.setHorizontalHeaderItem(1, __colItem1) @lbl_frequency.text = Qt::Application.translate("I2c_settings", "Frequency (Khz):", nil, Qt::Application::UnicodeUTF8) @cbx_frequency.insertItems(0, [Qt::Application.translate("I2c_settings", "100", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("I2c_settings", "400", nil, Qt::Application::UnicodeUTF8), Qt::Application.translate("I2c_settings", "1000", nil, Qt::Application::UnicodeUTF8)]) @lbl_write_page_latency.text = Qt::Application.translate("I2c_settings", "Write page latency:", nil, Qt::Application::UnicodeUTF8) @lie_write_page_latency.placeholderText = Qt::Application.translate("I2c_settings", "in miliseconds", nil, Qt::Application::UnicodeUTF8) @lbl_page_size.text = Qt::Application.translate("I2c_settings", "Page size:", nil, Qt::Application::UnicodeUTF8) @lbl_full_size.text = Qt::Application.translate("I2c_settings", "Total size:", nil, Qt::Application::UnicodeUTF8) @lie_page_size.text = '' @lie_page_size.placeholderText = Qt::Application.translate("I2c_settings", "in byte", nil, Qt::Application::UnicodeUTF8) @lie_total_size.placeholderText = Qt::Application.translate("I2c_settings", "in byte, to a maximum of 4Go", nil, Qt::Application::UnicodeUTF8) @btn_cancel.text = Qt::Application.translate("I2c_settings", "Close", nil, Qt::Application::UnicodeUTF8) @btn_save.text = Qt::Application.translate("I2c_settings", "Save", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(i2c_settings) ⇒ Object
setupUi
192 193 194 |
# File 'lib/gui/gui_i2c_settings.rb', line 192 def setup_ui(i2c_settings) setupUi(i2c_settings) end |
#setupUi(i2c_settings) ⇒ Object
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 122 123 124 125 126 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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/gui/gui_i2c_settings.rb', line 40 def setupUi(i2c_settings) if i2c_settings.objectName.nil? i2c_settings.objectName = "i2c_settings" end i2c_settings.resize(339, 504) @gridLayout = Qt::GridLayout.new(i2c_settings) @gridLayout.objectName = "gridLayout" @vl = Qt::VBoxLayout.new() @vl.objectName = "vl" @hl2 = Qt::HBoxLayout.new() @hl2.objectName = "hl2" @lbl_chip = Qt::Label.new(i2c_settings) @lbl_chip.objectName = "lbl_chip" @hl2.addWidget(@lbl_chip) @lbl_parameters = Qt::Label.new(i2c_settings) @lbl_parameters.objectName = "lbl_parameters" @hl2.addWidget(@lbl_parameters) @hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @hl2.addItem(@hs2) @vl.addLayout(@hl2) @formLayout_2 = Qt::FormLayout.new() @formLayout_2.objectName = "formLayout_2" @lbl_address_w = Qt::Label.new(i2c_settings) @lbl_address_w.objectName = "lbl_address_w" @formLayout_2.setWidget(0, Qt::FormLayout::LabelRole, @lbl_address_w) @lie_address_w = Qt::LineEdit.new(i2c_settings) @lie_address_w.objectName = "lie_address_w" @lie_address_w.maxLength = 2 @formLayout_2.setWidget(0, Qt::FormLayout::FieldRole, @lie_address_w) @lbl_address_r = Qt::Label.new(i2c_settings) @lbl_address_r.objectName = "lbl_address_r" @formLayout_2.setWidget(1, Qt::FormLayout::LabelRole, @lbl_address_r) @lie_address_r = Qt::LineEdit.new(i2c_settings) @lie_address_r.objectName = "lie_address_r" @lie_address_r.maxLength = 2 @formLayout_2.setWidget(1, Qt::FormLayout::FieldRole, @lie_address_r) @vl.addLayout(@formLayout_2) @horizontalLayout = Qt::HBoxLayout.new() @horizontalLayout.objectName = "horizontalLayout" @label = Qt::Label.new(i2c_settings) @label.objectName = "label" @horizontalLayout.addWidget(@label) @btn_bus_scan = Qt::PushButton.new(i2c_settings) @btn_bus_scan.objectName = "btn_bus_scan" @horizontalLayout.addWidget(@btn_bus_scan) @vl.addLayout(@horizontalLayout) @tbl_bus_scan = Qt::TableWidget.new(i2c_settings) @tbl_bus_scan.objectName = "tbl_bus_scan" @vl.addWidget(@tbl_bus_scan) @formLayout = Qt::FormLayout.new() @formLayout.objectName = "formLayout" @lbl_frequency = Qt::Label.new(i2c_settings) @lbl_frequency.objectName = "lbl_frequency" @formLayout.setWidget(3, Qt::FormLayout::LabelRole, @lbl_frequency) @cbx_frequency = Qt::ComboBox.new(i2c_settings) @cbx_frequency.objectName = "cbx_frequency" @formLayout.setWidget(3, Qt::FormLayout::FieldRole, @cbx_frequency) @lbl_write_page_latency = Qt::Label.new(i2c_settings) @lbl_write_page_latency.objectName = "lbl_write_page_latency" @formLayout.setWidget(2, Qt::FormLayout::LabelRole, @lbl_write_page_latency) @lie_write_page_latency = Qt::LineEdit.new(i2c_settings) @lie_write_page_latency.objectName = "lie_write_page_latency" @formLayout.setWidget(2, Qt::FormLayout::FieldRole, @lie_write_page_latency) @lbl_page_size = Qt::Label.new(i2c_settings) @lbl_page_size.objectName = "lbl_page_size" @formLayout.setWidget(1, Qt::FormLayout::LabelRole, @lbl_page_size) @lbl_full_size = Qt::Label.new(i2c_settings) @lbl_full_size.objectName = "lbl_full_size" @formLayout.setWidget(0, Qt::FormLayout::LabelRole, @lbl_full_size) @lie_page_size = Qt::LineEdit.new(i2c_settings) @lie_page_size.objectName = "lie_page_size" @formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_page_size) @lie_total_size = Qt::LineEdit.new(i2c_settings) @lie_total_size.objectName = "lie_total_size" @formLayout.setWidget(0, Qt::FormLayout::FieldRole, @lie_total_size) @vl.addLayout(@formLayout) @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_settings) @btn_cancel.objectName = "btn_cancel" @hl.addWidget(@btn_cancel) @btn_save = Qt::PushButton.new(i2c_settings) @btn_save.objectName = "btn_save" @btn_save.maximumSize = Qt::Size.new(16777215, 16777215) @hl.addWidget(@btn_save) @vl.addLayout(@hl) @gridLayout.addLayout(@vl, 0, 0, 1, 1) retranslateUi(i2c_settings) Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), i2c_settings, SLOT('close()')) Qt::Object.connect(@btn_save, SIGNAL('clicked()'), i2c_settings, SLOT('save_settings()')) Qt::Object.connect(@btn_bus_scan, SIGNAL('clicked()'), i2c_settings, SLOT('bus_scan()')) Qt::MetaObject.connectSlotsByName(i2c_settings) end |