Class: Ui_Progress_bar

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

Overview

** Form generated from reading ui file ‘gui_progress_bar.ui’ ** ** Created: mar. juil. 12 16:05:25 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::Progress_bar

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



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

def gridLayout
  @gridLayout
end

#horizontalLayoutObject (readonly)

Returns the value of attribute horizontalLayout.



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

def horizontalLayout
  @horizontalLayout
end

#horizontalSpacerObject (readonly)

Returns the value of attribute horizontalSpacer.



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

def horizontalSpacer
  @horizontalSpacer
end

#lbl_closeObject (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_statusObject (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_timeObject (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

#pgbObject (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



75
76
77
# File 'lib/gui/gui_progress_bar.rb', line 75

def retranslate_ui(progress_bar)
    retranslateUi(progress_bar)
end

#retranslateUi(progress_bar) ⇒ Object



68
69
70
71
72
73
# File 'lib/gui/gui_progress_bar.rb', line 68

def retranslateUi(progress_bar)
progress_bar.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



64
65
66
# File 'lib/gui/gui_progress_bar.rb', line 64

def setup_ui(progress_bar)
    setupUi(progress_bar)
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
62
# File 'lib/gui/gui_progress_bar.rb', line 19

def setupUi(progress_bar)
if progress_bar.objectName.nil?
    progress_bar.objectName = "progress_bar"
end
progress_bar.windowModality = Qt::ApplicationModal
progress_bar.resize(358, 90)
@gridLayout = Qt::GridLayout.new(progress_bar)
@gridLayout.objectName = "gridLayout"
@lbl_status = Qt::Label.new(progress_bar)
@lbl_status.objectName = "lbl_status"

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

@pgb = Qt::ProgressBar.new(progress_bar)
@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(progress_bar)
@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(progress_bar)
@lbl_close.objectName = "lbl_close"

@horizontalLayout.addWidget(@lbl_close)


@gridLayout.addLayout(@horizontalLayout, 3, 0, 1, 1)


retranslateUi(progress_bar)
Qt::Object.connect(@lbl_close, SIGNAL('clicked()'), progress_bar, SLOT('close()'))

Qt::MetaObject.connectSlotsByName(progress_bar)
end