Class: Ui_Uart_settings
- Inherits:
-
Object
- Object
- Ui_Uart_settings
- Defined in:
- lib/gui/gui_uart_settings.rb
Overview
** Form generated from reading ui file ‘gui_uart_settings.ui’ ** ** Created: mar. juil. 19 14:22:54 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
-
#formLayout ⇒ Object
readonly
Returns the value of attribute formLayout.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#horizontalLayout ⇒ Object
readonly
Returns the value of attribute horizontalLayout.
-
#horizontalLayout_2 ⇒ Object
readonly
Returns the value of attribute horizontalLayout_2.
-
#horizontalLayout_3 ⇒ Object
readonly
Returns the value of attribute horizontalLayout_3.
-
#horizontalSpacer ⇒ Object
readonly
Returns the value of attribute horizontalSpacer.
-
#horizontalSpacer_2 ⇒ Object
readonly
Returns the value of attribute horizontalSpacer_2.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#label_2 ⇒ Object
readonly
Returns the value of attribute label_2.
-
#label_3 ⇒ Object
readonly
Returns the value of attribute label_3.
-
#label_4 ⇒ Object
readonly
Returns the value of attribute label_4.
-
#label_5 ⇒ Object
readonly
Returns the value of attribute label_5.
-
#label_6 ⇒ Object
readonly
Returns the value of attribute label_6.
-
#label_7 ⇒ Object
readonly
Returns the value of attribute label_7.
-
#label_8 ⇒ Object
readonly
Returns the value of attribute label_8.
-
#lbl_chip ⇒ Object
readonly
Returns the value of attribute lbl_chip.
-
#lbl_uart ⇒ Object
readonly
Returns the value of attribute lbl_uart.
-
#lie_baud_rate ⇒ Object
readonly
Returns the value of attribute lie_baud_rate.
-
#lie_idle_line_lvl ⇒ Object
readonly
Returns the value of attribute lie_idle_line_lvl.
-
#lie_parity_bit ⇒ Object
readonly
Returns the value of attribute lie_parity_bit.
-
#lie_parity_type ⇒ Object
readonly
Returns the value of attribute lie_parity_type.
-
#lie_stop_bits_nbr ⇒ Object
readonly
Returns the value of attribute lie_stop_bits_nbr.
-
#lie_word_size ⇒ Object
readonly
Returns the value of attribute lie_word_size.
-
#pushButton ⇒ Object
readonly
Returns the value of attribute pushButton.
-
#pushButton_2 ⇒ Object
readonly
Returns the value of attribute pushButton_2.
-
#pushButton_3 ⇒ Object
readonly
Returns the value of attribute pushButton_3.
-
#rbn_both ⇒ Object
readonly
Returns the value of attribute rbn_both.
-
#rbn_cr ⇒ Object
readonly
Returns the value of attribute rbn_cr.
-
#rbn_lf ⇒ Object
readonly
Returns the value of attribute rbn_lf.
-
#verticalLayout_2 ⇒ Object
readonly
Returns the value of attribute verticalLayout_2.
Instance Method Summary collapse
-
#retranslate_ui(uart_settings) ⇒ Object
retranslateUi.
- #retranslateUi(uart_settings) ⇒ Object
-
#setup_ui(uart_settings) ⇒ Object
setupUi.
- #setupUi(uart_settings) ⇒ Object
Instance Attribute Details
#formLayout ⇒ Object (readonly)
Returns the value of attribute formLayout.
17 18 19 |
# File 'lib/gui/gui_uart_settings.rb', line 17 def formLayout @formLayout end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_uart_settings.rb', line 11 def gridLayout @gridLayout end |
#horizontalLayout ⇒ Object (readonly)
Returns the value of attribute horizontalLayout.
37 38 39 |
# File 'lib/gui/gui_uart_settings.rb', line 37 def horizontalLayout @horizontalLayout end |
#horizontalLayout_2 ⇒ Object (readonly)
Returns the value of attribute horizontalLayout_2.
13 14 15 |
# File 'lib/gui/gui_uart_settings.rb', line 13 def horizontalLayout_2 @horizontalLayout_2 end |
#horizontalLayout_3 ⇒ Object (readonly)
Returns the value of attribute horizontalLayout_3.
31 32 33 |
# File 'lib/gui/gui_uart_settings.rb', line 31 def horizontalLayout_3 @horizontalLayout_3 end |
#horizontalSpacer ⇒ Object (readonly)
Returns the value of attribute horizontalSpacer.
38 39 40 |
# File 'lib/gui/gui_uart_settings.rb', line 38 def horizontalSpacer @horizontalSpacer end |
#horizontalSpacer_2 ⇒ Object (readonly)
Returns the value of attribute horizontalSpacer_2.
16 17 18 |
# File 'lib/gui/gui_uart_settings.rb', line 16 def horizontalSpacer_2 @horizontalSpacer_2 end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
18 19 20 |
# File 'lib/gui/gui_uart_settings.rb', line 18 def label @label end |
#label_2 ⇒ Object (readonly)
Returns the value of attribute label_2.
20 21 22 |
# File 'lib/gui/gui_uart_settings.rb', line 20 def label_2 @label_2 end |
#label_3 ⇒ Object (readonly)
Returns the value of attribute label_3.
22 23 24 |
# File 'lib/gui/gui_uart_settings.rb', line 22 def label_3 @label_3 end |
#label_4 ⇒ Object (readonly)
Returns the value of attribute label_4.
24 25 26 |
# File 'lib/gui/gui_uart_settings.rb', line 24 def label_4 @label_4 end |
#label_5 ⇒ Object (readonly)
Returns the value of attribute label_5.
26 27 28 |
# File 'lib/gui/gui_uart_settings.rb', line 26 def label_5 @label_5 end |
#label_6 ⇒ Object (readonly)
Returns the value of attribute label_6.
28 29 30 |
# File 'lib/gui/gui_uart_settings.rb', line 28 def label_6 @label_6 end |
#label_7 ⇒ Object (readonly)
Returns the value of attribute label_7.
30 31 32 |
# File 'lib/gui/gui_uart_settings.rb', line 30 def label_7 @label_7 end |
#label_8 ⇒ Object (readonly)
Returns the value of attribute label_8.
35 36 37 |
# File 'lib/gui/gui_uart_settings.rb', line 35 def label_8 @label_8 end |
#lbl_chip ⇒ Object (readonly)
Returns the value of attribute lbl_chip.
14 15 16 |
# File 'lib/gui/gui_uart_settings.rb', line 14 def lbl_chip @lbl_chip end |
#lbl_uart ⇒ Object (readonly)
Returns the value of attribute lbl_uart.
15 16 17 |
# File 'lib/gui/gui_uart_settings.rb', line 15 def lbl_uart @lbl_uart end |
#lie_baud_rate ⇒ Object (readonly)
Returns the value of attribute lie_baud_rate.
19 20 21 |
# File 'lib/gui/gui_uart_settings.rb', line 19 def lie_baud_rate @lie_baud_rate end |
#lie_idle_line_lvl ⇒ Object (readonly)
Returns the value of attribute lie_idle_line_lvl.
29 30 31 |
# File 'lib/gui/gui_uart_settings.rb', line 29 def lie_idle_line_lvl @lie_idle_line_lvl end |
#lie_parity_bit ⇒ Object (readonly)
Returns the value of attribute lie_parity_bit.
23 24 25 |
# File 'lib/gui/gui_uart_settings.rb', line 23 def lie_parity_bit @lie_parity_bit end |
#lie_parity_type ⇒ Object (readonly)
Returns the value of attribute lie_parity_type.
25 26 27 |
# File 'lib/gui/gui_uart_settings.rb', line 25 def lie_parity_type @lie_parity_type end |
#lie_stop_bits_nbr ⇒ Object (readonly)
Returns the value of attribute lie_stop_bits_nbr.
27 28 29 |
# File 'lib/gui/gui_uart_settings.rb', line 27 def lie_stop_bits_nbr @lie_stop_bits_nbr end |
#lie_word_size ⇒ Object (readonly)
Returns the value of attribute lie_word_size.
21 22 23 |
# File 'lib/gui/gui_uart_settings.rb', line 21 def lie_word_size @lie_word_size end |
#pushButton ⇒ Object (readonly)
Returns the value of attribute pushButton.
40 41 42 |
# File 'lib/gui/gui_uart_settings.rb', line 40 def pushButton @pushButton end |
#pushButton_2 ⇒ Object (readonly)
Returns the value of attribute pushButton_2.
39 40 41 |
# File 'lib/gui/gui_uart_settings.rb', line 39 def pushButton_2 @pushButton_2 end |
#pushButton_3 ⇒ Object (readonly)
Returns the value of attribute pushButton_3.
36 37 38 |
# File 'lib/gui/gui_uart_settings.rb', line 36 def pushButton_3 @pushButton_3 end |
#rbn_both ⇒ Object (readonly)
Returns the value of attribute rbn_both.
34 35 36 |
# File 'lib/gui/gui_uart_settings.rb', line 34 def rbn_both @rbn_both end |
#rbn_cr ⇒ Object (readonly)
Returns the value of attribute rbn_cr.
32 33 34 |
# File 'lib/gui/gui_uart_settings.rb', line 32 def rbn_cr @rbn_cr end |
#rbn_lf ⇒ Object (readonly)
Returns the value of attribute rbn_lf.
33 34 35 |
# File 'lib/gui/gui_uart_settings.rb', line 33 def rbn_lf @rbn_lf end |
#verticalLayout_2 ⇒ Object (readonly)
Returns the value of attribute verticalLayout_2.
12 13 14 |
# File 'lib/gui/gui_uart_settings.rb', line 12 def verticalLayout_2 @verticalLayout_2 end |
Instance Method Details
#retranslate_ui(uart_settings) ⇒ Object
retranslateUi
233 234 235 |
# File 'lib/gui/gui_uart_settings.rb', line 233 def retranslate_ui(uart_settings) retranslateUi(uart_settings) end |
#retranslateUi(uart_settings) ⇒ Object
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/gui/gui_uart_settings.rb', line 207 def retranslateUi(uart_settings) uart_settings.windowTitle = Qt::Application.translate("Uart_settings", "Hardsploit - UART settings", nil, Qt::Application::UnicodeUTF8) @lbl_chip.text = Qt::Application.translate("Uart_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8) @lbl_uart.text = Qt::Application.translate("Uart_settings", "UART settings", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("Uart_settings", "Baud rate (manual):", nil, Qt::Application::UnicodeUTF8) @lie_baud_rate.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_2.text = Qt::Application.translate("Uart_settings", "Word size:", nil, Qt::Application::UnicodeUTF8) @lie_word_size.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_3.text = Qt::Application.translate("Uart_settings", "Parity bit:", nil, Qt::Application::UnicodeUTF8) @lie_parity_bit.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_4.text = Qt::Application.translate("Uart_settings", "Parity type:", nil, Qt::Application::UnicodeUTF8) @lie_parity_type.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_5.text = Qt::Application.translate("Uart_settings", "Stop bits number:", nil, Qt::Application::UnicodeUTF8) @lie_stop_bits_nbr.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_6.text = Qt::Application.translate("Uart_settings", "Idle line level:", nil, Qt::Application::UnicodeUTF8) @lie_idle_line_lvl.placeholderText = Qt::Application.translate("Uart_settings", "decimal value", nil, Qt::Application::UnicodeUTF8) @label_7.text = Qt::Application.translate("Uart_settings", "CR / LF:", nil, Qt::Application::UnicodeUTF8) @rbn_cr.text = Qt::Application.translate("Uart_settings", "CR", nil, Qt::Application::UnicodeUTF8) @rbn_lf.text = Qt::Application.translate("Uart_settings", "LF", nil, Qt::Application::UnicodeUTF8) @rbn_both.text = Qt::Application.translate("Uart_settings", "Both", nil, Qt::Application::UnicodeUTF8) @label_8.text = Qt::Application.translate("Uart_settings", "Baud rate (auto):", nil, Qt::Application::UnicodeUTF8) @pushButton_3.text = Qt::Application.translate("Uart_settings", "Autodetection", nil, Qt::Application::UnicodeUTF8) @pushButton_2.text = Qt::Application.translate("Uart_settings", "Cancel", nil, Qt::Application::UnicodeUTF8) @pushButton.text = Qt::Application.translate("Uart_settings", "Save", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(uart_settings) ⇒ Object
setupUi
203 204 205 |
# File 'lib/gui/gui_uart_settings.rb', line 203 def setup_ui(uart_settings) setupUi(uart_settings) end |
#setupUi(uart_settings) ⇒ Object
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 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/gui/gui_uart_settings.rb', line 42 def setupUi(uart_settings) if uart_settings.objectName.nil? uart_settings.objectName = "uart_settings" end uart_settings.windowModality = Qt::WindowModal uart_settings.resize(254, 291) @gridLayout = Qt::GridLayout.new(uart_settings) @gridLayout.objectName = "gridLayout" @verticalLayout_2 = Qt::VBoxLayout.new() @verticalLayout_2.objectName = "verticalLayout_2" @horizontalLayout_2 = Qt::HBoxLayout.new() @horizontalLayout_2.objectName = "horizontalLayout_2" @lbl_chip = Qt::Label.new(uart_settings) @lbl_chip.objectName = "lbl_chip" @horizontalLayout_2.addWidget(@lbl_chip) @lbl_uart = Qt::Label.new(uart_settings) @lbl_uart.objectName = "lbl_uart" @horizontalLayout_2.addWidget(@lbl_uart) @horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @horizontalLayout_2.addItem(@horizontalSpacer_2) @verticalLayout_2.addLayout(@horizontalLayout_2) @formLayout = Qt::FormLayout.new() @formLayout.objectName = "formLayout" @label = Qt::Label.new(uart_settings) @label.objectName = "label" @formLayout.setWidget(1, Qt::FormLayout::LabelRole, @label) @lie_baud_rate = Qt::LineEdit.new(uart_settings) @lie_baud_rate.objectName = "lie_baud_rate" @formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lie_baud_rate) @label_2 = Qt::Label.new(uart_settings) @label_2.objectName = "label_2" @formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_2) @lie_word_size = Qt::LineEdit.new(uart_settings) @lie_word_size.objectName = "lie_word_size" @formLayout.setWidget(3, Qt::FormLayout::FieldRole, @lie_word_size) @label_3 = Qt::Label.new(uart_settings) @label_3.objectName = "label_3" @formLayout.setWidget(4, Qt::FormLayout::LabelRole, @label_3) @lie_parity_bit = Qt::LineEdit.new(uart_settings) @lie_parity_bit.objectName = "lie_parity_bit" @formLayout.setWidget(4, Qt::FormLayout::FieldRole, @lie_parity_bit) @label_4 = Qt::Label.new(uart_settings) @label_4.objectName = "label_4" @formLayout.setWidget(5, Qt::FormLayout::LabelRole, @label_4) @lie_parity_type = Qt::LineEdit.new(uart_settings) @lie_parity_type.objectName = "lie_parity_type" @formLayout.setWidget(5, Qt::FormLayout::FieldRole, @lie_parity_type) @label_5 = Qt::Label.new(uart_settings) @label_5.objectName = "label_5" @formLayout.setWidget(6, Qt::FormLayout::LabelRole, @label_5) @lie_stop_bits_nbr = Qt::LineEdit.new(uart_settings) @lie_stop_bits_nbr.objectName = "lie_stop_bits_nbr" @formLayout.setWidget(6, Qt::FormLayout::FieldRole, @lie_stop_bits_nbr) @label_6 = Qt::Label.new(uart_settings) @label_6.objectName = "label_6" @formLayout.setWidget(7, Qt::FormLayout::LabelRole, @label_6) @lie_idle_line_lvl = Qt::LineEdit.new(uart_settings) @lie_idle_line_lvl.objectName = "lie_idle_line_lvl" @formLayout.setWidget(7, Qt::FormLayout::FieldRole, @lie_idle_line_lvl) @label_7 = Qt::Label.new(uart_settings) @label_7.objectName = "label_7" @formLayout.setWidget(8, Qt::FormLayout::LabelRole, @label_7) @horizontalLayout_3 = Qt::HBoxLayout.new() @horizontalLayout_3.objectName = "horizontalLayout_3" @rbn_cr = Qt::RadioButton.new(uart_settings) @rbn_cr.objectName = "rbn_cr" @rbn_cr.checked = true @horizontalLayout_3.addWidget(@rbn_cr) @rbn_lf = Qt::RadioButton.new(uart_settings) @rbn_lf.objectName = "rbn_lf" @horizontalLayout_3.addWidget(@rbn_lf) @rbn_both = Qt::RadioButton.new(uart_settings) @rbn_both.objectName = "rbn_both" @horizontalLayout_3.addWidget(@rbn_both) @formLayout.setLayout(8, Qt::FormLayout::FieldRole, @horizontalLayout_3) @label_8 = Qt::Label.new(uart_settings) @label_8.objectName = "label_8" @formLayout.setWidget(2, Qt::FormLayout::LabelRole, @label_8) @pushButton_3 = Qt::PushButton.new(uart_settings) @pushButton_3.objectName = "pushButton_3" @formLayout.setWidget(2, Qt::FormLayout::FieldRole, @pushButton_3) @verticalLayout_2.addLayout(@formLayout) @horizontalLayout = Qt::HBoxLayout.new() @horizontalLayout.objectName = "horizontalLayout" @horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @horizontalLayout.addItem(@horizontalSpacer) @pushButton_2 = Qt::PushButton.new(uart_settings) @pushButton_2.objectName = "pushButton_2" @horizontalLayout.addWidget(@pushButton_2) @pushButton = Qt::PushButton.new(uart_settings) @pushButton.objectName = "pushButton" @horizontalLayout.addWidget(@pushButton) @verticalLayout_2.addLayout(@horizontalLayout) @gridLayout.addLayout(@verticalLayout_2, 0, 0, 1, 1) retranslateUi(uart_settings) Qt::Object.connect(@pushButton, SIGNAL('clicked()'), uart_settings, SLOT('save_settings()')) Qt::Object.connect(@pushButton_2, SIGNAL('clicked()'), uart_settings, SLOT('close()')) Qt::Object.connect(@pushButton_3, SIGNAL('clicked()'), uart_settings, SLOT('autodetect()')) Qt::MetaObject.connectSlotsByName(uart_settings) end |