Class: Ui_Export

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

Overview

** Form generated from reading ui file ‘gui_export.ui’ ** ** Created: mer. févr. 17 15:04:42 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::Export

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#btn_cancelObject (readonly)

Returns the value of attribute btn_cancel.



23
24
25
# File 'lib/gui/gui_export.rb', line 23

def btn_cancel
  @btn_cancel
end

#btn_exportObject (readonly)

Returns the value of attribute btn_export.



24
25
26
# File 'lib/gui/gui_export.rb', line 24

def btn_export
  @btn_export
end

#btn_fileObject (readonly)

Returns the value of attribute btn_file.



19
20
21
# File 'lib/gui/gui_export.rb', line 19

def btn_file
  @btn_file
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



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

def gridLayout
  @gridLayout
end

#hlObject (readonly)

Returns the value of attribute hl.



21
22
23
# File 'lib/gui/gui_export.rb', line 21

def hl
  @hl
end

#hl2Object (readonly)

Returns the value of attribute hl2.



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

def hl2
  @hl2
end

#hl3Object (readonly)

Returns the value of attribute hl3.



18
19
20
# File 'lib/gui/gui_export.rb', line 18

def hl3
  @hl3
end

#hsObject (readonly)

Returns the value of attribute hs.



22
23
24
# File 'lib/gui/gui_export.rb', line 22

def hs
  @hs
end

#hs2Object (readonly)

Returns the value of attribute hs2.



20
21
22
# File 'lib/gui/gui_export.rb', line 20

def hs2
  @hs2
end

#lbl_exportObject (readonly)

Returns the value of attribute lbl_export.



13
14
15
# File 'lib/gui/gui_export.rb', line 13

def lbl_export
  @lbl_export
end

#rbn_bothObject (readonly)

Returns the value of attribute rbn_both.



17
18
19
# File 'lib/gui/gui_export.rb', line 17

def rbn_both
  @rbn_both
end

#rbn_cmdsObject (readonly)

Returns the value of attribute rbn_cmds.



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

def rbn_cmds
  @rbn_cmds
end

#rbn_compObject (readonly)

Returns the value of attribute rbn_comp.



15
16
17
# File 'lib/gui/gui_export.rb', line 15

def rbn_comp
  @rbn_comp
end

#vlObject (readonly)

Returns the value of attribute vl.



12
13
14
# File 'lib/gui/gui_export.rb', line 12

def vl
  @vl
end

Instance Method Details

#retranslate_ui(export) ⇒ Object

retranslateUi



122
123
124
# File 'lib/gui/gui_export.rb', line 122

def retranslate_ui(export)
    retranslateUi(export)
end

#retranslateUi(export) ⇒ Object



111
112
113
114
115
116
117
118
119
120
# File 'lib/gui/gui_export.rb', line 111

def retranslateUi(export)
export.windowTitle = Qt::Application.translate("Export", "Export", nil, Qt::Application::UnicodeUTF8)
@lbl_export.text = Qt::Application.translate("Export", "Exporting:", nil, Qt::Application::UnicodeUTF8)
@rbn_comp.text = Qt::Application.translate("Export", "Component", nil, Qt::Application::UnicodeUTF8)
@rbn_cmds.text = Qt::Application.translate("Export", "Commands", nil, Qt::Application::UnicodeUTF8)
@rbn_both.text = Qt::Application.translate("Export", "Both", nil, Qt::Application::UnicodeUTF8)
@btn_file.text = Qt::Application.translate("Export", "File...", nil, Qt::Application::UnicodeUTF8)
@btn_cancel.text = Qt::Application.translate("Export", "Cancel", nil, Qt::Application::UnicodeUTF8)
@btn_export.text = Qt::Application.translate("Export", "Export", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(export) ⇒ Object

setupUi



107
108
109
# File 'lib/gui/gui_export.rb', line 107

def setup_ui(export)
    setupUi(export)
end

#setupUi(export) ⇒ Object



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
# File 'lib/gui/gui_export.rb', line 26

def setupUi(export)
if export.objectName.nil?
    export.objectName = "export"
end
export.resize(303, 120)
@gridLayout = Qt::GridLayout.new(export)
@gridLayout.objectName = "gridLayout"
@vl = Qt::VBoxLayout.new()
@vl.objectName = "vl"
@lbl_export = Qt::Label.new(export)
@lbl_export.objectName = "lbl_export"

@vl.addWidget(@lbl_export)

@hl2 = Qt::HBoxLayout.new()
@hl2.objectName = "hl2"
@rbn_comp = Qt::RadioButton.new(export)
@rbn_comp.objectName = "rbn_comp"
@rbn_comp.checked = true

@hl2.addWidget(@rbn_comp)

@rbn_cmds = Qt::RadioButton.new(export)
@rbn_cmds.objectName = "rbn_cmds"

@hl2.addWidget(@rbn_cmds)

@rbn_both = Qt::RadioButton.new(export)
@rbn_both.objectName = "rbn_both"
@rbn_both.checked = false

@hl2.addWidget(@rbn_both)


@vl.addLayout(@hl2)

@hl3 = Qt::HBoxLayout.new()
@hl3.objectName = "hl3"
@btn_file = Qt::PushButton.new(export)
@btn_file.objectName = "btn_file"

@hl3.addWidget(@btn_file)

@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl3.addItem(@hs2)


@vl.addLayout(@hl3)

@hl = Qt::HBoxLayout.new()
@hl.objectName = "hl"
@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl.addItem(@hs)

@btn_cancel = Qt::PushButton.new(export)
@btn_cancel.objectName = "btn_cancel"

@hl.addWidget(@btn_cancel)

@btn_export = Qt::PushButton.new(export)
@btn_export.objectName = "btn_export"

@hl.addWidget(@btn_export)


@vl.addLayout(@hl)


@gridLayout.addLayout(@vl, 0, 0, 1, 1)


retranslateUi(export)
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), export, SLOT('close()'))
Qt::Object.connect(@btn_export, SIGNAL('clicked()'), export, SLOT('export()'))
Qt::Object.connect(@btn_file, SIGNAL('clicked()'), export, SLOT('export_file()'))

Qt::MetaObject.connectSlotsByName(export)
end