Class: Ui_HudWidget
- Inherits:
-
Object
- Object
- Ui_HudWidget
- Defined in:
- lib/hud-widget.rb
Overview
** Form generated from reading ui file ‘hud-widget.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
Instance Attribute Summary collapse
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#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.
-
#lBalt ⇒ Object
readonly
Returns the value of attribute lBalt.
-
#lBdistance ⇒ Object
readonly
Returns the value of attribute lBdistance.
-
#lBheading ⇒ Object
readonly
Returns the value of attribute lBheading.
-
#lBlat ⇒ Object
readonly
Returns the value of attribute lBlat.
-
#lBlon ⇒ Object
readonly
Returns the value of attribute lBlon.
-
#lBspeed ⇒ Object
readonly
Returns the value of attribute lBspeed.
-
#verticalLayout ⇒ Object
readonly
Returns the value of attribute verticalLayout.
Instance Method Summary collapse
-
#retranslate_ui(hudWidget) ⇒ Object
retranslateUi.
- #retranslateUi(hudWidget) ⇒ Object
-
#setup_ui(hudWidget) ⇒ Object
setupUi.
- #setupUi(hudWidget) ⇒ Object
Instance Attribute Details
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
14 15 16 |
# File 'lib/hud-widget.rb', line 14 def gridLayout @gridLayout end |
#label_3 ⇒ Object (readonly)
Returns the value of attribute label_3.
17 18 19 |
# File 'lib/hud-widget.rb', line 17 def label_3 @label_3 end |
#label_4 ⇒ Object (readonly)
Returns the value of attribute label_4.
15 16 17 |
# File 'lib/hud-widget.rb', line 15 def label_4 @label_4 end |
#label_5 ⇒ Object (readonly)
Returns the value of attribute label_5.
21 22 23 |
# File 'lib/hud-widget.rb', line 21 def label_5 @label_5 end |
#label_6 ⇒ Object (readonly)
Returns the value of attribute label_6.
19 20 21 |
# File 'lib/hud-widget.rb', line 19 def label_6 @label_6 end |
#lBalt ⇒ Object (readonly)
Returns the value of attribute lBalt.
16 17 18 |
# File 'lib/hud-widget.rb', line 16 def lBalt @lBalt end |
#lBdistance ⇒ Object (readonly)
Returns the value of attribute lBdistance.
13 14 15 |
# File 'lib/hud-widget.rb', line 13 def lBdistance @lBdistance end |
#lBheading ⇒ Object (readonly)
Returns the value of attribute lBheading.
18 19 20 |
# File 'lib/hud-widget.rb', line 18 def lBheading @lBheading end |
#lBlat ⇒ Object (readonly)
Returns the value of attribute lBlat.
20 21 22 |
# File 'lib/hud-widget.rb', line 20 def lBlat @lBlat end |
#lBlon ⇒ Object (readonly)
Returns the value of attribute lBlon.
22 23 24 |
# File 'lib/hud-widget.rb', line 22 def lBlon @lBlon end |
#lBspeed ⇒ Object (readonly)
Returns the value of attribute lBspeed.
12 13 14 |
# File 'lib/hud-widget.rb', line 12 def lBspeed @lBspeed end |
#verticalLayout ⇒ Object (readonly)
Returns the value of attribute verticalLayout.
11 12 13 |
# File 'lib/hud-widget.rb', line 11 def verticalLayout @verticalLayout end |
Instance Method Details
#retranslate_ui(hudWidget) ⇒ Object
retranslateUi
162 163 164 |
# File 'lib/hud-widget.rb', line 162 def retranslate_ui(hudWidget) retranslateUi(hudWidget) end |
#retranslateUi(hudWidget) ⇒ Object
152 153 154 155 156 157 158 159 160 |
# File 'lib/hud-widget.rb', line 152 def retranslateUi(hudWidget) hudWidget.windowTitle = Qt::Application.translate("HudWidget", "Form", nil, Qt::Application::UnicodeUTF8) @lBspeed.text = '' @lBdistance.text = '' @label_4.text = Qt::Application.translate("HudWidget", "Alt:", nil, Qt::Application::UnicodeUTF8) @label_3.text = Qt::Application.translate("HudWidget", "Head:", nil, Qt::Application::UnicodeUTF8) @label_6.text = Qt::Application.translate("HudWidget", "Lat:", nil, Qt::Application::UnicodeUTF8) @label_5.text = Qt::Application.translate("HudWidget", "Lon:", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(hudWidget) ⇒ Object
setupUi
148 149 150 |
# File 'lib/hud-widget.rb', line 148 def setup_ui(hudWidget) setupUi(hudWidget) end |
#setupUi(hudWidget) ⇒ Object
24 25 26 27 28 29 30 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 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/hud-widget.rb', line 24 def setupUi(hudWidget) if hudWidget.objectName.nil? hudWidget.objectName = "hudWidget" end hudWidget.resize(161, 130) @sizePolicy = Qt::SizePolicy.new(Qt::SizePolicy::MinimumExpanding, Qt::SizePolicy::MinimumExpanding) @sizePolicy.setHorizontalStretch(0) @sizePolicy.setVerticalStretch(0) @sizePolicy.heightForWidth = hudWidget.sizePolicy.hasHeightForWidth hudWidget.sizePolicy = @sizePolicy @palette = Qt::Palette.new brush = Qt::Brush.new(Qt::Color.new(255, 255, 255, 255)) brush.style = Qt::SolidPattern @palette.setBrush(Qt::Palette::Active, Qt::Palette::Base, brush) brush1 = Qt::Brush.new(Qt::Color.new(224, 223, 222, 100)) brush1.style = Qt::SolidPattern @palette.setBrush(Qt::Palette::Active, Qt::Palette::Window, brush1) @palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Base, brush) @palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Window, brush1) @palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Base, brush1) @palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Window, brush1) hudWidget.palette = @palette @verticalLayout = Qt::VBoxLayout.new(hudWidget) @verticalLayout.objectName = "verticalLayout" @lBspeed = Qt::Label.new(hudWidget) @lBspeed.objectName = "lBspeed" @sizePolicy1 = Qt::SizePolicy.new(Qt::SizePolicy::Preferred, Qt::SizePolicy::MinimumExpanding) @sizePolicy1.setHorizontalStretch(0) @sizePolicy1.setVerticalStretch(0) @sizePolicy1.heightForWidth = @lBspeed.sizePolicy.hasHeightForWidth @lBspeed.sizePolicy = @sizePolicy1 @font = Qt::Font.new @font.pointSize = 18 @font.bold = true @font.weight = 75 @font.styleStrategy = Qt::Font::PreferAntialias @lBspeed.font = @font @lBspeed.frameShape = Qt::Frame::Panel @lBspeed.frameShadow = Qt::Frame::Sunken @lBspeed.alignment = Qt::AlignCenter @verticalLayout.addWidget(@lBspeed) @lBdistance = Qt::Label.new(hudWidget) @lBdistance.objectName = "lBdistance" @sizePolicy1.heightForWidth = @lBdistance.sizePolicy.hasHeightForWidth @lBdistance.sizePolicy = @sizePolicy1 @lBdistance.font = @font @lBdistance.frameShape = Qt::Frame::Panel @lBdistance.frameShadow = Qt::Frame::Sunken @lBdistance.alignment = Qt::AlignCenter @verticalLayout.addWidget(@lBdistance) @gridLayout = Qt::GridLayout.new() @gridLayout.objectName = "gridLayout" @label_4 = Qt::Label.new(hudWidget) @label_4.objectName = "label_4" @font1 = Qt::Font.new @font1.family = "DejaVu Sans" @font1.pointSize = 9 @label_4.font = @font1 @gridLayout.addWidget(@label_4, 0, 0, 1, 1) @lBalt = Qt::Label.new(hudWidget) @lBalt.objectName = "lBalt" @lBalt.font = @font1 @lBalt.frameShape = Qt::Frame::Panel @lBalt.frameShadow = Qt::Frame::Sunken @gridLayout.addWidget(@lBalt, 0, 1, 1, 1) @label_3 = Qt::Label.new(hudWidget) @label_3.objectName = "label_3" @label_3.font = @font1 @gridLayout.addWidget(@label_3, 0, 2, 1, 1) @lBheading = Qt::Label.new(hudWidget) @lBheading.objectName = "lBheading" @lBheading.font = @font1 @lBheading.frameShape = Qt::Frame::Panel @lBheading.frameShadow = Qt::Frame::Sunken @gridLayout.addWidget(@lBheading, 0, 3, 1, 1) @label_6 = Qt::Label.new(hudWidget) @label_6.objectName = "label_6" @label_6.font = @font1 @gridLayout.addWidget(@label_6, 1, 0, 1, 1) @lBlat = Qt::Label.new(hudWidget) @lBlat.objectName = "lBlat" @lBlat.font = @font1 @lBlat.frameShape = Qt::Frame::Panel @lBlat.frameShadow = Qt::Frame::Sunken @gridLayout.addWidget(@lBlat, 1, 1, 1, 1) @label_5 = Qt::Label.new(hudWidget) @label_5.objectName = "label_5" @label_5.font = @font1 @gridLayout.addWidget(@label_5, 1, 2, 1, 1) @lBlon = Qt::Label.new(hudWidget) @lBlon.objectName = "lBlon" @lBlon.font = @font1 @lBlon.frameShape = Qt::Frame::Panel @lBlon.frameShadow = Qt::Frame::Sunken @gridLayout.addWidget(@lBlon, 1, 3, 1, 1) @verticalLayout.addLayout(@gridLayout) retranslateUi(hudWidget) Qt::MetaObject.connectSlotsByName(hudWidget) end |