Class: Ui_Chip_clone

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

Overview

** Form generated from reading ui file ‘gui_chip_clone.ui’ ** ** Created: mer. mars 8 11:15:01 2017 ** by: Qt User Interface Compiler version 4.8.7 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!

Direct Known Subclasses

Ui::Chip_clone

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#btn_cancelObject (readonly)

Returns the value of attribute btn_cancel.



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

def btn_cancel
  @btn_cancel
end

#btn_cloneObject (readonly)

Returns the value of attribute btn_clone.



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

def btn_clone
  @btn_clone
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



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

def gridLayout
  @gridLayout
end

#horizontalLayoutObject (readonly)

Returns the value of attribute horizontalLayout.



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

def horizontalLayout
  @horizontalLayout
end

#lbl_cloneObject (readonly)

Returns the value of attribute lbl_clone.



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

def lbl_clone
  @lbl_clone
end

#lie_referenceObject (readonly)

Returns the value of attribute lie_reference.



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

def lie_reference
  @lie_reference
end

#verticalLayoutObject (readonly)

Returns the value of attribute verticalLayout.



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

def verticalLayout
  @verticalLayout
end

Instance Method Details

#retranslate_ui(chip_clone) ⇒ Object

retranslateUi



77
78
79
# File 'lib/gui/gui_chip_clone.rb', line 77

def retranslate_ui(chip_clone)
    retranslateUi(chip_clone)
end

#retranslateUi(chip_clone) ⇒ Object



70
71
72
73
74
75
# File 'lib/gui/gui_chip_clone.rb', line 70

def retranslateUi(chip_clone)
chip_clone.windowTitle = Qt::Application.translate("Chip_clone", "Chip clone", nil, Qt::Application::UnicodeUTF8)
@lbl_clone.text = Qt::Application.translate("Chip_clone", "Clone name", nil, Qt::Application::UnicodeUTF8)
@btn_cancel.text = Qt::Application.translate("Chip_clone", "Cancel", nil, Qt::Application::UnicodeUTF8)
@btn_clone.text = Qt::Application.translate("Chip_clone", "Clone", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(chip_clone) ⇒ Object

setupUi



66
67
68
# File 'lib/gui/gui_chip_clone.rb', line 66

def setup_ui(chip_clone)
    setupUi(chip_clone)
end

#setupUi(chip_clone) ⇒ 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
63
64
# File 'lib/gui/gui_chip_clone.rb', line 19

def setupUi(chip_clone)
if chip_clone.objectName.nil?
    chip_clone.objectName = "chip_clone"
end
chip_clone.resize(178, 90)
@gridLayout = Qt::GridLayout.new(chip_clone)
@gridLayout.objectName = "gridLayout"
@verticalLayout = Qt::VBoxLayout.new()
@verticalLayout.objectName = "verticalLayout"
@lbl_clone = Qt::Label.new(chip_clone)
@lbl_clone.objectName = "lbl_clone"

@verticalLayout.addWidget(@lbl_clone)

@lie_reference = Qt::LineEdit.new(chip_clone)
@lie_reference.objectName = "lie_reference"
@lie_reference.maxLength = 30

@verticalLayout.addWidget(@lie_reference)

@horizontalLayout = Qt::HBoxLayout.new()
@horizontalLayout.objectName = "horizontalLayout"
@btn_cancel = Qt::PushButton.new(chip_clone)
@btn_cancel.objectName = "btn_cancel"

@horizontalLayout.addWidget(@btn_cancel)

@btn_clone = Qt::PushButton.new(chip_clone)
@btn_clone.objectName = "btn_clone"
@btn_clone.default = true

@horizontalLayout.addWidget(@btn_clone)


@verticalLayout.addLayout(@horizontalLayout)


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


retranslateUi(chip_clone)
Qt::Object.connect(@btn_cancel, SIGNAL('clicked()'), chip_clone, SLOT('close()'))
Qt::Object.connect(@btn_clone, SIGNAL('clicked()'), chip_clone, SLOT('clone()'))

Qt::MetaObject.connectSlotsByName(chip_clone)
end