Class: Ui_Form

Inherits:
Object
  • Object
show all
Defined in:
lib/qt/form.rb

Overview

** Form generated from reading ui file ‘form.ui’ ** ** Created: ven. déc. 5 14:00:08 2014 ** by: Qt User Interface Compiler version 4.8.2 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!

Direct Known Subclasses

Ui::Form

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lcdNumberObject (readonly)

Returns the value of attribute lcdNumber.



21
22
23
# File 'lib/qt/form.rb', line 21

def lcdNumber
  @lcdNumber
end

#pushButtonObject (readonly)

Returns the value of attribute pushButton.



15
16
17
# File 'lib/qt/form.rb', line 15

def pushButton
  @pushButton
end

#pushButton_2Object (readonly)

Returns the value of attribute pushButton_2.



16
17
18
# File 'lib/qt/form.rb', line 16

def pushButton_2
  @pushButton_2
end

#pushButton_3Object (readonly)

Returns the value of attribute pushButton_3.



12
13
14
# File 'lib/qt/form.rb', line 12

def pushButton_3
  @pushButton_3
end

#textBrowserObject (readonly)

Returns the value of attribute textBrowser.



19
20
21
# File 'lib/qt/form.rb', line 19

def textBrowser
  @textBrowser
end

#textEditObject (readonly)

Returns the value of attribute textEdit.



18
19
20
# File 'lib/qt/form.rb', line 18

def textEdit
  @textEdit
end

#verticalSliderObject (readonly)

Returns the value of attribute verticalSlider.



20
21
22
# File 'lib/qt/form.rb', line 20

def verticalSlider
  @verticalSlider
end

#verticalSlider_2Object (readonly)

Returns the value of attribute verticalSlider_2.



14
15
16
# File 'lib/qt/form.rb', line 14

def verticalSlider_2
  @verticalSlider_2
end

#verticalSlider_5Object (readonly)

Returns the value of attribute verticalSlider_5.



11
12
13
# File 'lib/qt/form.rb', line 11

def verticalSlider_5
  @verticalSlider_5
end

#verticalSlider_6Object (readonly)

Returns the value of attribute verticalSlider_6.



13
14
15
# File 'lib/qt/form.rb', line 13

def verticalSlider_6
  @verticalSlider_6
end

#verticalSlider_7Object (readonly)

Returns the value of attribute verticalSlider_7.



17
18
19
# File 'lib/qt/form.rb', line 17

def verticalSlider_7
  @verticalSlider_7
end

Instance Method Details

#retranslate_ui(form) ⇒ Object

retranslateUi



114
115
116
# File 'lib/qt/form.rb', line 114

def retranslate_ui(form)
    retranslateUi(form)
end

#retranslateUi(form) ⇒ Object



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/qt/form.rb', line 97

def retranslateUi(form)
form.windowTitle = Qt::Application.translate("Form", "Form", nil, Qt::Application::UnicodeUTF8)
@pushButton_3.text = Qt::Application.translate("Form", "Quit", nil, Qt::Application::UnicodeUTF8)
@pushButton.text = Qt::Application.translate("Form", "play", nil, Qt::Application::UnicodeUTF8)
@pushButton_2.text = Qt::Application.translate("Form", "stop", nil, Qt::Application::UnicodeUTF8)
@textEdit.html = Qt::Application.translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" \
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" \
"p, li { white-space: pre-wrap; }\n" \
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n" \
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">TEMPO</p></body></html>", nil, Qt::Application::UnicodeUTF8)
@textBrowser.html = Qt::Application.translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" \
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" \
"p, li { white-space: pre-wrap; }\n" \
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n" \
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(form) ⇒ Object

setupUi



93
94
95
# File 'lib/qt/form.rb', line 93

def setup_ui(form)
    setupUi(form)
end

#setupUi(form) ⇒ Object



23
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
# File 'lib/qt/form.rb', line 23

def setupUi(form)
if form.objectName.nil?
    form.objectName = "form"
end
form.resize(533, 477)
@verticalSlider_5 = Qt::Slider.new(form)
@verticalSlider_5.objectName = "verticalSlider_5"
@verticalSlider_5.geometry = Qt::Rect.new(180, 110, 23, 160)
@verticalSlider_5.maximum = 100
@verticalSlider_5.singleStep = 1
@verticalSlider_5.pageStep = 1
@verticalSlider_5.orientation = Qt::Vertical
@pushButton_3 = Qt::PushButton.new(form)
@pushButton_3.objectName = "pushButton_3"
@pushButton_3.geometry = Qt::Rect.new(400, 240, 95, 24)
@pushButton_3.cursor = Qt::Cursor.new(Qt::PointingHandCursor)
@pushButton_3.autoDefault = false
@pushButton_3.default = false
@verticalSlider_6 = Qt::Slider.new(form)
@verticalSlider_6.objectName = "verticalSlider_6"
@verticalSlider_6.geometry = Qt::Rect.new(320, 110, 23, 160)
@verticalSlider_6.maximum = 100
@verticalSlider_6.singleStep = 1
@verticalSlider_6.pageStep = 1
@verticalSlider_6.orientation = Qt::Vertical
@verticalSlider_2 = Qt::Slider.new(form)
@verticalSlider_2.objectName = "verticalSlider_2"
@verticalSlider_2.geometry = Qt::Rect.new(110, 110, 23, 160)
@verticalSlider_2.maximum = 100
@verticalSlider_2.singleStep = 1
@verticalSlider_2.pageStep = 1
@verticalSlider_2.orientation = Qt::Vertical
@pushButton = Qt::PushButton.new(form)
@pushButton.objectName = "pushButton"
@pushButton.geometry = Qt::Rect.new(400, 120, 95, 24)
@pushButton_2 = Qt::PushButton.new(form)
@pushButton_2.objectName = "pushButton_2"
@pushButton_2.geometry = Qt::Rect.new(400, 150, 95, 24)
@verticalSlider_7 = Qt::Slider.new(form)
@verticalSlider_7.objectName = "verticalSlider_7"
@verticalSlider_7.geometry = Qt::Rect.new(250, 110, 23, 160)
@verticalSlider_7.maximum = 100
@verticalSlider_7.singleStep = 1
@verticalSlider_7.pageStep = 1
@verticalSlider_7.orientation = Qt::Vertical
@textEdit = Qt::TextEdit.new(form)
@textEdit.objectName = "textEdit"
@textEdit.geometry = Qt::Rect.new(20, 80, 71, 31)
@textBrowser = Qt::TextBrowser.new(form)
@textBrowser.objectName = "textBrowser"
@textBrowser.geometry = Qt::Rect.new(50, 300, 451, 161)
@verticalSlider = Qt::Slider.new(form)
@verticalSlider.objectName = "verticalSlider"
@verticalSlider.geometry = Qt::Rect.new(40, 110, 23, 160)
@verticalSlider.maximum = 100
@verticalSlider.singleStep = 1
@verticalSlider.pageStep = 1
@verticalSlider.orientation = Qt::Vertical
@lcdNumber = Qt::LCDNumber.new(form)
@lcdNumber.objectName = "lcdNumber"
@lcdNumber.geometry = Qt::Rect.new(380, 20, 131, 71)

retranslateUi(form)
Qt::Object.connect(@verticalSlider, SIGNAL('valueChanged(int)'), @verticalSlider, SLOT('setValue(int)'))
Qt::Object.connect(@verticalSlider, SIGNAL('valueChanged(int)'), @lcdNumber, SLOT('display(int)'))


Qt::MetaObject.connectSlotsByName(form)
end