Class: Ui_Generic_read

Inherits:
Object
  • Object
show all
Defined in:
lib/gui/gui_generic_read.rb

Overview

** Form generated from reading ui file ‘gui_generic_read.ui’ ** ** Created: mer. mars 8 11:15:04 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

Ui::Generic_read

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#btn_fileObject (readonly)

Returns the value of attribute btn_file.



19
20
21
# File 'lib/gui/gui_generic_read.rb', line 19

def btn_file
  @btn_file
end

#btn_readObject (readonly)

Returns the value of attribute btn_read.



30
31
32
# File 'lib/gui/gui_generic_read.rb', line 30

def btn_read
  @btn_read
end

#formLayoutObject (readonly)

Returns the value of attribute formLayout.



17
18
19
# File 'lib/gui/gui_generic_read.rb', line 17

def formLayout
  @formLayout
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



11
12
13
# File 'lib/gui/gui_generic_read.rb', line 11

def gridLayout
  @gridLayout
end

#hlObject (readonly)

Returns the value of attribute hl.



29
30
31
# File 'lib/gui/gui_generic_read.rb', line 29

def hl
  @hl
end

#hl2Object (readonly)

Returns the value of attribute hl2.



13
14
15
# File 'lib/gui/gui_generic_read.rb', line 13

def hl2
  @hl2
end

#hsObject (readonly)

Returns the value of attribute hs.



16
17
18
# File 'lib/gui/gui_generic_read.rb', line 16

def hs
  @hs
end

#lbl_chipObject (readonly)

Returns the value of attribute lbl_chip.



15
16
17
# File 'lib/gui/gui_generic_read.rb', line 15

def lbl_chip
  @lbl_chip
end

#lbl_fileObject (readonly)

Returns the value of attribute lbl_file.



18
19
20
# File 'lib/gui/gui_generic_read.rb', line 18

def lbl_file
  @lbl_file
end

#lbl_readObject (readonly)

Returns the value of attribute lbl_read.



14
15
16
# File 'lib/gui/gui_generic_read.rb', line 14

def lbl_read
  @lbl_read
end

#lbl_selectedObject (readonly)

Returns the value of attribute lbl_selected.



20
21
22
# File 'lib/gui/gui_generic_read.rb', line 20

def lbl_selected
  @lbl_selected
end

#lbl_selected_fileObject (readonly)

Returns the value of attribute lbl_selected_file.



21
22
23
# File 'lib/gui/gui_generic_read.rb', line 21

def lbl_selected_file
  @lbl_selected_file
end

#lbl_startObject (readonly)

Returns the value of attribute lbl_start.



25
26
27
# File 'lib/gui/gui_generic_read.rb', line 25

def lbl_start
  @lbl_start
end

#lbl_stopObject (readonly)

Returns the value of attribute lbl_stop.



27
28
29
# File 'lib/gui/gui_generic_read.rb', line 27

def lbl_stop
  @lbl_stop
end

#lbl_typeObject (readonly)

Returns the value of attribute lbl_type.



22
23
24
# File 'lib/gui/gui_generic_read.rb', line 22

def lbl_type
  @lbl_type
end

#lie_startObject (readonly)

Returns the value of attribute lie_start.



26
27
28
# File 'lib/gui/gui_generic_read.rb', line 26

def lie_start
  @lie_start
end

#lie_stopObject (readonly)

Returns the value of attribute lie_stop.



28
29
30
# File 'lib/gui/gui_generic_read.rb', line 28

def lie_stop
  @lie_stop
end

#rbn_fullObject (readonly)

Returns the value of attribute rbn_full.



23
24
25
# File 'lib/gui/gui_generic_read.rb', line 23

def rbn_full
  @rbn_full
end

#rbn_rangeObject (readonly)

Returns the value of attribute rbn_range.



24
25
26
# File 'lib/gui/gui_generic_read.rb', line 24

def rbn_range
  @rbn_range
end

#vlObject (readonly)

Returns the value of attribute vl.



12
13
14
# File 'lib/gui/gui_generic_read.rb', line 12

def vl
  @vl
end

Instance Method Details

#retranslate_ui(generic_read) ⇒ Object

retranslateUi



175
176
177
# File 'lib/gui/gui_generic_read.rb', line 175

def retranslate_ui(generic_read)
    retranslateUi(generic_read)
end

#retranslateUi(generic_read) ⇒ Object



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/gui/gui_generic_read.rb', line 159

def retranslateUi(generic_read)
generic_read.windowTitle = Qt::Application.translate("Generic_read", "Hardsploit - Read", nil, Qt::Application::UnicodeUTF8)
@lbl_read.text = Qt::Application.translate("Generic_read", "Read from", nil, Qt::Application::UnicodeUTF8)
@lbl_chip.text = Qt::Application.translate("Generic_read", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
@lbl_file.text = Qt::Application.translate("Generic_read", "Result file:", nil, Qt::Application::UnicodeUTF8)
@btn_file.text = Qt::Application.translate("Generic_read", "File...", nil, Qt::Application::UnicodeUTF8)
@lbl_selected.text = Qt::Application.translate("Generic_read", "Selected file:", nil, Qt::Application::UnicodeUTF8)
@lbl_selected_file.text = Qt::Application.translate("Generic_read", "None", nil, Qt::Application::UnicodeUTF8)
@lbl_type.text = Qt::Application.translate("Generic_read", "Type:", nil, Qt::Application::UnicodeUTF8)
@rbn_full.text = Qt::Application.translate("Generic_read", "Full read", nil, Qt::Application::UnicodeUTF8)
@rbn_range.text = Qt::Application.translate("Generic_read", "Range", nil, Qt::Application::UnicodeUTF8)
@lbl_start.text = Qt::Application.translate("Generic_read", "Start address:", nil, Qt::Application::UnicodeUTF8)
@lbl_stop.text = Qt::Application.translate("Generic_read", "Stop address:", nil, Qt::Application::UnicodeUTF8)
@btn_read.text = Qt::Application.translate("Generic_read", "Read", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(generic_read) ⇒ Object

setupUi



155
156
157
# File 'lib/gui/gui_generic_read.rb', line 155

def setup_ui(generic_read)
    setupUi(generic_read)
end

#setupUi(generic_read) ⇒ Object



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
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
# File 'lib/gui/gui_generic_read.rb', line 32

def setupUi(generic_read)
if generic_read.objectName.nil?
    generic_read.objectName = "generic_read"
end
generic_read.windowModality = Qt::ApplicationModal
generic_read.resize(280, 221)
generic_read.minimumSize = Qt::Size.new(5, 0)
generic_read.maximumSize = Qt::Size.new(16777211, 16777215)
@gridLayout = Qt::GridLayout.new(generic_read)
@gridLayout.objectName = "gridLayout"
@vl = Qt::VBoxLayout.new()
@vl.objectName = "vl"
@hl2 = Qt::HBoxLayout.new()
@hl2.objectName = "hl2"
@lbl_read = Qt::Label.new(generic_read)
@lbl_read.objectName = "lbl_read"

@hl2.addWidget(@lbl_read)

@lbl_chip = Qt::Label.new(generic_read)
@lbl_chip.objectName = "lbl_chip"

@hl2.addWidget(@lbl_chip)

@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl2.addItem(@hs)


@vl.addLayout(@hl2)

@formLayout = Qt::FormLayout.new()
@formLayout.objectName = "formLayout"
@lbl_file = Qt::Label.new(generic_read)
@lbl_file.objectName = "lbl_file"

@formLayout.setWidget(0, Qt::FormLayout::LabelRole, @lbl_file)

@btn_file = Qt::PushButton.new(generic_read)
@btn_file.objectName = "btn_file"

@formLayout.setWidget(0, Qt::FormLayout::FieldRole, @btn_file)

@lbl_selected = Qt::Label.new(generic_read)
@lbl_selected.objectName = "lbl_selected"

@formLayout.setWidget(1, Qt::FormLayout::LabelRole, @lbl_selected)

@lbl_selected_file = Qt::Label.new(generic_read)
@lbl_selected_file.objectName = "lbl_selected_file"
@lbl_selected_file.maximumSize = Qt::Size.new(250, 16777215)

@formLayout.setWidget(1, Qt::FormLayout::FieldRole, @lbl_selected_file)

@lbl_type = Qt::Label.new(generic_read)
@lbl_type.objectName = "lbl_type"

@formLayout.setWidget(2, Qt::FormLayout::LabelRole, @lbl_type)

@rbn_full = Qt::RadioButton.new(generic_read)
@rbn_full.objectName = "rbn_full"
@rbn_full.checked = true

@formLayout.setWidget(2, Qt::FormLayout::FieldRole, @rbn_full)

@rbn_range = Qt::RadioButton.new(generic_read)
@rbn_range.objectName = "rbn_range"

@formLayout.setWidget(3, Qt::FormLayout::FieldRole, @rbn_range)

@lbl_start = Qt::Label.new(generic_read)
@lbl_start.objectName = "lbl_start"

@formLayout.setWidget(4, Qt::FormLayout::LabelRole, @lbl_start)

@lie_start = Qt::LineEdit.new(generic_read)
@lie_start.objectName = "lie_start"
@lie_start.enabled = false
@lie_start.maxLength = 20

@formLayout.setWidget(4, Qt::FormLayout::FieldRole, @lie_start)

@lbl_stop = Qt::Label.new(generic_read)
@lbl_stop.objectName = "lbl_stop"

@formLayout.setWidget(5, Qt::FormLayout::LabelRole, @lbl_stop)

@lie_stop = Qt::LineEdit.new(generic_read)
@lie_stop.objectName = "lie_stop"
@lie_stop.enabled = false
@lie_stop.maxLength = 20

@formLayout.setWidget(5, Qt::FormLayout::FieldRole, @lie_stop)


@vl.addLayout(@formLayout)

@hl = Qt::HBoxLayout.new()
@hl.objectName = "hl"
@btn_read = Qt::PushButton.new(generic_read)
@btn_read.objectName = "btn_read"
@btn_read.enabled = false

@hl.addWidget(@btn_read)


@vl.addLayout(@hl)


@gridLayout.addLayout(@vl, 0, 0, 1, 1)


retranslateUi(generic_read)
Qt::Object.connect(@btn_read, SIGNAL('clicked()'), generic_read, SLOT('read()'))
Qt::Object.connect(@btn_file, SIGNAL('clicked()'), generic_read, SLOT('select_read_file()'))
Qt::Object.connect(@rbn_range, SIGNAL('toggled(bool)'), @lie_start, SLOT('setEnabled(bool)'))
Qt::Object.connect(@rbn_range, SIGNAL('toggled(bool)'), @lie_stop, SLOT('setEnabled(bool)'))
Qt::Object.connect(@rbn_full, SIGNAL('toggled(bool)'), @lie_start, SLOT('setDisabled(bool)'))
Qt::Object.connect(@rbn_full, SIGNAL('toggled(bool)'), @lie_stop, SLOT('setDisabled(bool)'))

Qt::MetaObject.connectSlotsByName(generic_read)
end