Class: Ui_MainDlg

Inherits:
Object
  • Object
show all
Defined in:
lib/main-dlg.rb

Overview

** Form generated from reading ui file ‘main-dlg.ui’ ** ** Created: Do. Jun 17 17:42:25 2010 ** by: Qt User Interface Compiler version 4.6.2 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!

Direct Known Subclasses

Ui::MainDlg

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cBautocenterObject (readonly)

Returns the value of attribute cBautocenter.



14
15
16
# File 'lib/main-dlg.rb', line 14

def cBautocenter
  @cBautocenter
end

#cBndbObject (readonly)

Returns the value of attribute cBndb.



17
18
19
# File 'lib/main-dlg.rb', line 17

def cBndb
  @cBndb
end

#cBrwObject (readonly)

Returns the value of attribute cBrw.



18
19
20
# File 'lib/main-dlg.rb', line 18

def cBrw
  @cBrw
end

#cBtooriginObject (readonly)

Returns the value of attribute cBtoorigin.



15
16
17
# File 'lib/main-dlg.rb', line 15

def cBtoorigin
  @cBtoorigin
end

#cBvorObject (readonly)

Returns the value of attribute cBvor.



16
17
18
# File 'lib/main-dlg.rb', line 16

def cBvor
  @cBvor
end

#fRcurrentwpObject (readonly)

Returns the value of attribute fRcurrentwp.



19
20
21
# File 'lib/main-dlg.rb', line 19

def fRcurrentwp
  @fRcurrentwp
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



20
21
22
# File 'lib/main-dlg.rb', line 20

def gridLayout
  @gridLayout
end

#gVmapObject (readonly)

Returns the value of attribute gVmap.



32
33
34
# File 'lib/main-dlg.rb', line 32

def gVmap
  @gVmap
end

#horizontalLayoutObject (readonly)

Returns the value of attribute horizontalLayout.



24
25
26
# File 'lib/main-dlg.rb', line 24

def horizontalLayout
  @horizontalLayout
end

#horizontalLayout_2Object (readonly)

Returns the value of attribute horizontalLayout_2.



27
28
29
# File 'lib/main-dlg.rb', line 27

def horizontalLayout_2
  @horizontalLayout_2
end

#horizontalLayout_3Object (readonly)

Returns the value of attribute horizontalLayout_3.



11
12
13
# File 'lib/main-dlg.rb', line 11

def horizontalLayout_3
  @horizontalLayout_3
end

#labelObject (readonly)

Returns the value of attribute label.



28
29
30
# File 'lib/main-dlg.rb', line 28

def label
  @label
end

#label_2Object (readonly)

Returns the value of attribute label_2.



21
22
23
# File 'lib/main-dlg.rb', line 21

def label_2
  @label_2
end

#lBcurrentwpObject (readonly)

Returns the value of attribute lBcurrentwp.



22
23
24
# File 'lib/main-dlg.rb', line 22

def lBcurrentwp
  @lBcurrentwp
end

#lBzoomObject (readonly)

Returns the value of attribute lBzoom.



29
30
31
# File 'lib/main-dlg.rb', line 29

def lBzoom
  @lBzoom
end

#line_2Object (readonly)

Returns the value of attribute line_2.



30
31
32
# File 'lib/main-dlg.rb', line 30

def line_2
  @line_2
end

#pBexitObject (readonly)

Returns the value of attribute pBexit.



31
32
33
# File 'lib/main-dlg.rb', line 31

def pBexit
  @pBexit
end

#pBminusObject (readonly)

Returns the value of attribute pBminus.



25
26
27
# File 'lib/main-dlg.rb', line 25

def pBminus
  @pBminus
end

#pBplusObject (readonly)

Returns the value of attribute pBplus.



26
27
28
# File 'lib/main-dlg.rb', line 26

def pBplus
  @pBplus
end

#pBrecordTrackObject (readonly)

Returns the value of attribute pBrecordTrack.



13
14
15
# File 'lib/main-dlg.rb', line 13

def pBrecordTrack
  @pBrecordTrack
end

#verticalLayoutObject (readonly)

Returns the value of attribute verticalLayout.



12
13
14
# File 'lib/main-dlg.rb', line 12

def verticalLayout
  @verticalLayout
end

#verticalSpacerObject (readonly)

Returns the value of attribute verticalSpacer.



23
24
25
# File 'lib/main-dlg.rb', line 23

def verticalSpacer
  @verticalSpacer
end

Instance Method Details

#retranslate_ui(mainDlg) ⇒ Object

retranslateUi



214
215
216
# File 'lib/main-dlg.rb', line 214

def retranslate_ui(mainDlg)
    retranslateUi(mainDlg)
end

#retranslateUi(mainDlg) ⇒ Object



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/main-dlg.rb', line 197

def retranslateUi(mainDlg)
mainDlg.windowTitle = Qt::Application.translate("MainDlg", "Voc-Trainer", nil, Qt::Application::UnicodeUTF8)
@pBrecordTrack.text = Qt::Application.translate("MainDlg", "Record Track 1", nil, Qt::Application::UnicodeUTF8)
@cBautocenter.text = Qt::Application.translate("MainDlg", "Autocenter", nil, Qt::Application::UnicodeUTF8)
@cBtoorigin.text = Qt::Application.translate("MainDlg", "Point to Origin", nil, Qt::Application::UnicodeUTF8)
@cBvor.text = Qt::Application.translate("MainDlg", "Display VOR", nil, Qt::Application::UnicodeUTF8)
@cBndb.text = Qt::Application.translate("MainDlg", "Display NDB", nil, Qt::Application::UnicodeUTF8)
@cBrw.text = Qt::Application.translate("MainDlg", "Display Rws", nil, Qt::Application::UnicodeUTF8)
@label_2.text = Qt::Application.translate("MainDlg", "Current WP: ", nil, Qt::Application::UnicodeUTF8)
@lBcurrentwp.text = ''
@pBminus.text = Qt::Application.translate("MainDlg", "-", nil, Qt::Application::UnicodeUTF8)
@pBplus.text = Qt::Application.translate("MainDlg", "+", nil, Qt::Application::UnicodeUTF8)
@label.text = Qt::Application.translate("MainDlg", "Zoom:", nil, Qt::Application::UnicodeUTF8)
@lBzoom.text = ''
@pBexit.text = Qt::Application.translate("MainDlg", "Exit", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(mainDlg) ⇒ Object

setupUi



193
194
195
# File 'lib/main-dlg.rb', line 193

def setup_ui(mainDlg)
    setupUi(mainDlg)
end

#setupUi(mainDlg) ⇒ Object



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
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
# File 'lib/main-dlg.rb', line 34

def setupUi(mainDlg)
if mainDlg.objectName.nil?
    mainDlg.objectName = "mainDlg"
end
mainDlg.resize(681, 473)
@horizontalLayout_3 = Qt::HBoxLayout.new(mainDlg)
@horizontalLayout_3.objectName = "horizontalLayout_3"
@verticalLayout = Qt::VBoxLayout.new()
@verticalLayout.objectName = "verticalLayout"
@pBrecordTrack = Qt::PushButton.new(mainDlg)
@pBrecordTrack.objectName = "pBrecordTrack"
@pBrecordTrack.checkable = true

@verticalLayout.addWidget(@pBrecordTrack)

@cBautocenter = Qt::CheckBox.new(mainDlg)
@cBautocenter.objectName = "cBautocenter"

@verticalLayout.addWidget(@cBautocenter)

@cBtoorigin = Qt::CheckBox.new(mainDlg)
@cBtoorigin.objectName = "cBtoorigin"

@verticalLayout.addWidget(@cBtoorigin)

@cBvor = Qt::CheckBox.new(mainDlg)
@cBvor.objectName = "cBvor"
@cBvor.checked = true

@verticalLayout.addWidget(@cBvor)

@cBndb = Qt::CheckBox.new(mainDlg)
@cBndb.objectName = "cBndb"

@verticalLayout.addWidget(@cBndb)

@cBrw = Qt::CheckBox.new(mainDlg)
@cBrw.objectName = "cBrw"

@verticalLayout.addWidget(@cBrw)

@fRcurrentwp = Qt::Frame.new(mainDlg)
@fRcurrentwp.objectName = "fRcurrentwp"
@fRcurrentwp.frameShape = Qt::Frame::StyledPanel
@fRcurrentwp.frameShadow = Qt::Frame::Raised
@gridLayout = Qt::GridLayout.new(@fRcurrentwp)
@gridLayout.objectName = "gridLayout"
@gridLayout.setContentsMargins(2, 2, 0, 0)
@label_2 = Qt::Label.new(@fRcurrentwp)
@label_2.objectName = "label_2"

@gridLayout.addWidget(@label_2, 0, 0, 1, 1)

@lBcurrentwp = Qt::Label.new(@fRcurrentwp)
@lBcurrentwp.objectName = "lBcurrentwp"
@sizePolicy = Qt::SizePolicy.new(Qt::SizePolicy::Preferred, Qt::SizePolicy::Preferred)
@sizePolicy.setHorizontalStretch(1)
@sizePolicy.setVerticalStretch(0)
@sizePolicy.heightForWidth = @lBcurrentwp.sizePolicy.hasHeightForWidth
@lBcurrentwp.sizePolicy = @sizePolicy

@gridLayout.addWidget(@lBcurrentwp, 0, 1, 1, 1)


@verticalLayout.addWidget(@fRcurrentwp)

@verticalSpacer = Qt::SpacerItem.new(106, 28, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding)

@verticalLayout.addItem(@verticalSpacer)

@horizontalLayout = Qt::HBoxLayout.new()
@horizontalLayout.objectName = "horizontalLayout"
@pBminus = Qt::PushButton.new(mainDlg)
@pBminus.objectName = "pBminus"
@sizePolicy1 = Qt::SizePolicy.new(Qt::SizePolicy::Ignored, Qt::SizePolicy::Preferred)
@sizePolicy1.setHorizontalStretch(0)
@sizePolicy1.setVerticalStretch(0)
@sizePolicy1.heightForWidth = @pBminus.sizePolicy.hasHeightForWidth
@pBminus.sizePolicy = @sizePolicy1
@pBminus.minimumSize = Qt::Size.new(0, 32)

@horizontalLayout.addWidget(@pBminus)

@pBplus = Qt::PushButton.new(mainDlg)
@pBplus.objectName = "pBplus"
@sizePolicy1.heightForWidth = @pBplus.sizePolicy.hasHeightForWidth
@pBplus.sizePolicy = @sizePolicy1
@pBplus.minimumSize = Qt::Size.new(0, 32)

@horizontalLayout.addWidget(@pBplus)


@verticalLayout.addLayout(@horizontalLayout)

@horizontalLayout_2 = Qt::HBoxLayout.new()
@horizontalLayout_2.objectName = "horizontalLayout_2"
@label = Qt::Label.new(mainDlg)
@label.objectName = "label"

@horizontalLayout_2.addWidget(@label)

@lBzoom = Qt::Label.new(mainDlg)
@lBzoom.objectName = "lBzoom"
@sizePolicy.heightForWidth = @lBzoom.sizePolicy.hasHeightForWidth
@lBzoom.sizePolicy = @sizePolicy

@horizontalLayout_2.addWidget(@lBzoom)


@verticalLayout.addLayout(@horizontalLayout_2)

@line_2 = Qt::Frame.new(mainDlg)
@line_2.objectName = "line_2"
@line_2.setFrameShape(Qt::Frame::HLine)
@line_2.setFrameShadow(Qt::Frame::Sunken)

@verticalLayout.addWidget(@line_2)

@pBexit = Qt::PushButton.new(mainDlg)
@pBexit.objectName = "pBexit"

@verticalLayout.addWidget(@pBexit)


@horizontalLayout_3.addLayout(@verticalLayout)

@gVmap = Qt::GraphicsView.new(mainDlg)
@gVmap.objectName = "gVmap"
@sizePolicy2 = Qt::SizePolicy.new(Qt::SizePolicy::Expanding, Qt::SizePolicy::Expanding)
@sizePolicy2.setHorizontalStretch(3)
@sizePolicy2.setVerticalStretch(1)
@sizePolicy2.heightForWidth = @gVmap.sizePolicy.hasHeightForWidth
@gVmap.sizePolicy = @sizePolicy2
@gVmap.verticalScrollBarPolicy = Qt::ScrollBarAlwaysOff
@gVmap.horizontalScrollBarPolicy = Qt::ScrollBarAlwaysOff
brush = Qt::Brush.new(Qt::Color.new(0, 0, 0, 0))
brush.style = Qt::NoBrush
@gVmap.backgroundBrush = brush
brush1 = Qt::Brush.new(Qt::Color.new(0, 0, 0, 0))
brush1.style = Qt::NoBrush
@gVmap.foregroundBrush = brush1
@gVmap.viewportUpdateMode = Qt::GraphicsView::FullViewportUpdate

@horizontalLayout_3.addWidget(@gVmap)


retranslateUi(mainDlg)
Qt::Object.connect(@pBexit, SIGNAL('clicked()'), mainDlg, SLOT('pBexit_clicked()'))
Qt::Object.connect(@cBtoorigin, SIGNAL('clicked()'), mainDlg, SLOT('cBpointorigin_clicked()'))
Qt::Object.connect(@pBrecordTrack, SIGNAL('toggled(bool)'), mainDlg, SLOT('pBrecordTrack_toggled(bool)'))
Qt::Object.connect(@pBplus, SIGNAL('clicked()'), mainDlg, SLOT('pBplus_clicked()'))
Qt::Object.connect(@pBminus, SIGNAL('clicked()'), mainDlg, SLOT('pBminus_clicked()'))
Qt::Object.connect(@cBvor, SIGNAL('clicked(bool)'), mainDlg, SLOT('cBvor_clicked()'))
Qt::Object.connect(@cBndb, SIGNAL('clicked(bool)'), mainDlg, SLOT('cBndb_clicked()'))
Qt::Object.connect(@cBrw, SIGNAL('clicked(bool)'), mainDlg, SLOT('cBrw_clicked()'))

Qt::MetaObject.connectSlotsByName(mainDlg)
end