Class: Ui_Swd_settings

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

Overview

** Form generated from reading ui file ‘gui_swd_settings.ui’ ** ** Created: mer. mai 18 14:54:28 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

Ui::Swd_settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#btn_cancelObject (readonly)

Returns the value of attribute btn_cancel.



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

def btn_cancel
  @btn_cancel
end

#btn_saveObject (readonly)

Returns the value of attribute btn_save.



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

def btn_save
  @btn_save
end

#formLayoutObject (readonly)

Returns the value of attribute formLayout.



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

def formLayout
  @formLayout
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



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

def gridLayout
  @gridLayout
end

#horizontalLayoutObject (readonly)

Returns the value of attribute horizontalLayout.



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

def horizontalLayout
  @horizontalLayout
end

#horizontalLayout_2Object (readonly)

Returns the value of attribute horizontalLayout_2.



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

def horizontalLayout_2
  @horizontalLayout_2
end

#horizontalSpacerObject (readonly)

Returns the value of attribute horizontalSpacer.



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

def horizontalSpacer
  @horizontalSpacer
end

#horizontalSpacer_2Object (readonly)

Returns the value of attribute horizontalSpacer_2.



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

def horizontalSpacer_2
  @horizontalSpacer_2
end

#label_2Object (readonly)

Returns the value of attribute label_2.



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

def label_2
  @label_2
end

#label_3Object (readonly)

Returns the value of attribute label_3.



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

def label_3
  @label_3
end

#label_4Object (readonly)

Returns the value of attribute label_4.



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

def label_4
  @label_4
end

#label_5Object (readonly)

Returns the value of attribute label_5.



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

def label_5
  @label_5
end

#lbl_chipObject (readonly)

Returns the value of attribute lbl_chip.



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

def lbl_chip
  @lbl_chip
end

#lbl_parametersObject (readonly)

Returns the value of attribute lbl_parameters.



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

def lbl_parameters
  @lbl_parameters
end

#lie_cpu_id_addressObject (readonly)

Returns the value of attribute lie_cpu_id_address.



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

def lie_cpu_id_address
  @lie_cpu_id_address
end

#lie_device_id_addressObject (readonly)

Returns the value of attribute lie_device_id_address.



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

def lie_device_id_address
  @lie_device_id_address
end

#lie_size_addressObject (readonly)

Returns the value of attribute lie_size_address.



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

def lie_size_address
  @lie_size_address
end

#lie_start_addressObject (readonly)

Returns the value of attribute lie_start_address.



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

def lie_start_address
  @lie_start_address
end

#verticalLayoutObject (readonly)

Returns the value of attribute verticalLayout.



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

def verticalLayout
  @verticalLayout
end

Instance Method Details

#retranslate_ui(swd_settings) ⇒ Object

retranslateUi



156
157
158
# File 'lib/gui/gui_swd_settings.rb', line 156

def retranslate_ui(swd_settings)
    retranslateUi(swd_settings)
end

#retranslateUi(swd_settings) ⇒ Object



139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/gui/gui_swd_settings.rb', line 139

def retranslateUi(swd_settings)
swd_settings.windowTitle = Qt::Application.translate("Swd_settings", "Hardsploit - SWD settings", nil, Qt::Application::UnicodeUTF8)
@lbl_chip.text = Qt::Application.translate("Swd_settings", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
@lbl_parameters.text = Qt::Application.translate("Swd_settings", "PARAMETERS", nil, Qt::Application::UnicodeUTF8)
@label_2.text = Qt::Application.translate("Swd_settings", "Memory start address:", nil, Qt::Application::UnicodeUTF8)
@lie_start_address.text = ''
@lie_start_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1ffff7e0", nil, Qt::Application::UnicodeUTF8)
@label_3.text = Qt::Application.translate("Swd_settings", "Memory size address:", nil, Qt::Application::UnicodeUTF8)
@lie_size_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 08000000", nil, Qt::Application::UnicodeUTF8)
@label_4.text = Qt::Application.translate("Swd_settings", "CPU ID address:", nil, Qt::Application::UnicodeUTF8)
@label_5.text = Qt::Application.translate("Swd_settings", "Device ID address:", nil, Qt::Application::UnicodeUTF8)
@lie_cpu_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg E000ED00", nil, Qt::Application::UnicodeUTF8)
@lie_device_id_address.placeholderText = Qt::Application.translate("Swd_settings", "eg 1FFFF7E8", nil, Qt::Application::UnicodeUTF8)
@btn_cancel.text = Qt::Application.translate("Swd_settings", "Cancel", nil, Qt::Application::UnicodeUTF8)
@btn_save.text = Qt::Application.translate("Swd_settings", "Save", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(swd_settings) ⇒ Object

setupUi



135
136
137
# File 'lib/gui/gui_swd_settings.rb', line 135

def setup_ui(swd_settings)
    setupUi(swd_settings)
end

#setupUi(swd_settings) ⇒ Object



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

def setupUi(swd_settings)
if swd_settings.objectName.nil?
    swd_settings.objectName = "swd_settings"
end
swd_settings.windowModality = Qt::ApplicationModal
swd_settings.resize(400, 179)
@gridLayout = Qt::GridLayout.new(swd_settings)
@gridLayout.objectName = "gridLayout"
@verticalLayout = Qt::VBoxLayout.new()
@verticalLayout.objectName = "verticalLayout"
@horizontalLayout_2 = Qt::HBoxLayout.new()
@horizontalLayout_2.objectName = "horizontalLayout_2"
@lbl_chip = Qt::Label.new(swd_settings)
@lbl_chip.objectName = "lbl_chip"

@horizontalLayout_2.addWidget(@lbl_chip)

@lbl_parameters = Qt::Label.new(swd_settings)
@lbl_parameters.objectName = "lbl_parameters"

@horizontalLayout_2.addWidget(@lbl_parameters)

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

@horizontalLayout_2.addItem(@horizontalSpacer_2)


@verticalLayout.addLayout(@horizontalLayout_2)

@formLayout = Qt::FormLayout.new()
@formLayout.objectName = "formLayout"
@label_2 = Qt::Label.new(swd_settings)
@label_2.objectName = "label_2"

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

@lie_start_address = Qt::LineEdit.new(swd_settings)
@lie_start_address.objectName = "lie_start_address"

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

@label_3 = Qt::Label.new(swd_settings)
@label_3.objectName = "label_3"

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

@lie_size_address = Qt::LineEdit.new(swd_settings)
@lie_size_address.objectName = "lie_size_address"

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

@label_4 = Qt::Label.new(swd_settings)
@label_4.objectName = "label_4"

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

@label_5 = Qt::Label.new(swd_settings)
@label_5.objectName = "label_5"

@formLayout.setWidget(3, Qt::FormLayout::LabelRole, @label_5)

@lie_cpu_id_address = Qt::LineEdit.new(swd_settings)
@lie_cpu_id_address.objectName = "lie_cpu_id_address"

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

@lie_device_id_address = Qt::LineEdit.new(swd_settings)
@lie_device_id_address.objectName = "lie_device_id_address"

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


@verticalLayout.addLayout(@formLayout)

@horizontalLayout = Qt::HBoxLayout.new()
@horizontalLayout.objectName = "horizontalLayout"
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@horizontalLayout.addItem(@horizontalSpacer)

@btn_cancel = Qt::PushButton.new(swd_settings)
@btn_cancel.objectName = "btn_cancel"

@horizontalLayout.addWidget(@btn_cancel)

@btn_save = Qt::PushButton.new(swd_settings)
@btn_save.objectName = "btn_save"

@horizontalLayout.addWidget(@btn_save)


@verticalLayout.addLayout(@horizontalLayout)


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


retranslateUi(swd_settings)
Qt::Object.connect(@btn_save, SIGNAL('clicked()'), swd_settings, SLOT('save_settings()'))
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), swd_settings, SLOT('close()'))

Qt::MetaObject.connectSlotsByName(swd_settings)
end