Class: Ui_Progress_bar
- Inherits:
-
Object
- Object
- Ui_Progress_bar
- Defined in:
- lib/gui/gui_progress_bar.rb
Overview
** Form generated from reading ui file ‘gui_progress_bar.ui’ ** ** Created: mar. févr. 9 17:07:34 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
Instance Attribute Summary collapse
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#horizontalLayout ⇒ Object
readonly
Returns the value of attribute horizontalLayout.
-
#horizontalSpacer ⇒ Object
readonly
Returns the value of attribute horizontalSpacer.
-
#lbl_close ⇒ Object
readonly
Returns the value of attribute lbl_close.
-
#lbl_status ⇒ Object
readonly
Returns the value of attribute lbl_status.
-
#lbl_time ⇒ Object
readonly
Returns the value of attribute lbl_time.
-
#pgb ⇒ Object
readonly
Returns the value of attribute pgb.
Instance Method Summary collapse
-
#retranslate_ui(progress_bar) ⇒ Object
retranslateUi.
- #retranslateUi(progress_bar) ⇒ Object
-
#setup_ui(progress_bar) ⇒ Object
setupUi.
- #setupUi(progress_bar) ⇒ Object
Instance Attribute Details
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/gui/gui_progress_bar.rb', line 11 def gridLayout @gridLayout end |
#horizontalLayout ⇒ Object (readonly)
Returns the value of attribute horizontalLayout.
14 15 16 |
# File 'lib/gui/gui_progress_bar.rb', line 14 def horizontalLayout @horizontalLayout end |
#horizontalSpacer ⇒ Object (readonly)
Returns the value of attribute horizontalSpacer.
16 17 18 |
# File 'lib/gui/gui_progress_bar.rb', line 16 def horizontalSpacer @horizontalSpacer end |
#lbl_close ⇒ Object (readonly)
Returns the value of attribute lbl_close.
17 18 19 |
# File 'lib/gui/gui_progress_bar.rb', line 17 def lbl_close @lbl_close end |
#lbl_status ⇒ Object (readonly)
Returns the value of attribute lbl_status.
12 13 14 |
# File 'lib/gui/gui_progress_bar.rb', line 12 def lbl_status @lbl_status end |
#lbl_time ⇒ Object (readonly)
Returns the value of attribute lbl_time.
15 16 17 |
# File 'lib/gui/gui_progress_bar.rb', line 15 def lbl_time @lbl_time end |
#pgb ⇒ Object (readonly)
Returns the value of attribute pgb.
13 14 15 |
# File 'lib/gui/gui_progress_bar.rb', line 13 def pgb @pgb end |
Instance Method Details
#retranslate_ui(progress_bar) ⇒ Object
retranslateUi
74 75 76 |
# File 'lib/gui/gui_progress_bar.rb', line 74 def retranslate_ui() retranslateUi() end |
#retranslateUi(progress_bar) ⇒ Object
67 68 69 70 71 72 |
# File 'lib/gui/gui_progress_bar.rb', line 67 def retranslateUi() .windowTitle = Qt::Application.translate("Progress_bar", "Processing...", nil, Qt::Application::UnicodeUTF8) @lbl_status.text = Qt::Application.translate("Progress_bar", "[STATUS]", nil, Qt::Application::UnicodeUTF8) @lbl_time.text = Qt::Application.translate("Progress_bar", "[TIME]", nil, Qt::Application::UnicodeUTF8) @lbl_close.text = Qt::Application.translate("Progress_bar", "Close", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(progress_bar) ⇒ Object
setupUi
63 64 65 |
# File 'lib/gui/gui_progress_bar.rb', line 63 def setup_ui() setupUi() end |
#setupUi(progress_bar) ⇒ Object
19 20 21 22 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 |
# File 'lib/gui/gui_progress_bar.rb', line 19 def setupUi() if .objectName.nil? .objectName = "progress_bar" end .resize(358, 90) @gridLayout = Qt::GridLayout.new() @gridLayout.objectName = "gridLayout" @lbl_status = Qt::Label.new() @lbl_status.objectName = "lbl_status" @gridLayout.addWidget(@lbl_status, 0, 0, 1, 1) @pgb = Qt::ProgressBar.new() @pgb.objectName = "pgb" @pgb.value = 0 @gridLayout.addWidget(@pgb, 1, 0, 1, 1) @horizontalLayout = Qt::HBoxLayout.new() @horizontalLayout.objectName = "horizontalLayout" @lbl_time = Qt::Label.new() @lbl_time.objectName = "lbl_time" @horizontalLayout.addWidget(@lbl_time) @horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @horizontalLayout.addItem(@horizontalSpacer) @lbl_close = Qt::PushButton.new() @lbl_close.objectName = "lbl_close" @horizontalLayout.addWidget(@lbl_close) @gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1) retranslateUi() Qt::Object.connect(@lbl_close, SIGNAL('clicked()'), , SLOT('close()')) Qt::MetaObject.connectSlotsByName() end |