Class: HostNameDlg

Inherits:
Qt::Dialog
  • Object
show all
Defined in:
lib/HostNameDlg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil, name = nil, modal = false, fl = 0) ⇒ HostNameDlg

Returns a new instance of HostNameDlg.



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
65
# File 'lib/HostNameDlg.rb', line 20

def initialize(parent = nil, name = nil, modal = false, fl = 0)
    super

    if name.nil?
    	setName("HostNameDlg")
    end
    setSizeGripEnabled(true)

    @HostNameDlgLayout = Qt::GridLayout.new(self, 1, 1, 11, 6, 'HostNameDlgLayout')

    @Layout1 = Qt::HBoxLayout.new(nil, 0, 6, 'Layout1')
    @Horizontal_Spacing2 = Qt::SpacerItem.new(20, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
    @Layout1.addItem(@Horizontal_Spacing2)

    @okBtn = Qt::PushButton.new(self, "okBtn")
    @okBtn.setAutoDefault( true )
    @okBtn.setDefault( true )
    @Layout1.addWidget(@okBtn)

    @cancelBtn = Qt::PushButton.new(self, "cancelBtn")
    @cancelBtn.setAutoDefault( true )
    @Layout1.addWidget(@cancelBtn)

    @HostNameDlgLayout.addLayout(@Layout1, 3, 0)

    @textLabel7 = Qt::Label.new(self, "textLabel7")

    @HostNameDlgLayout.addWidget(@textLabel7, 2, 0)

    @hostName = Qt::LineEdit.new(self, "hostName")

    @HostNameDlgLayout.addWidget(@hostName, 1, 0)

    @textLabel8 = Qt::Label.new(self, "textLabel8")

    @HostNameDlgLayout.addWidget(@textLabel8, 0, 0)
    languageChange()
    resize( Qt::Size.new(295, 126).expandedTo(minimumSizeHint()) )
    clearWState( WState_Polished )

    Qt::Object.connect(@okBtn, SIGNAL("clicked()"), self, SLOT("accept()") )
    Qt::Object.connect(@cancelBtn, SIGNAL("clicked()"), self, SLOT("reject()") )

    setTabOrder(@hostName, @okBtn)
    setTabOrder(@okBtn, @cancelBtn)
end

Instance Attribute Details

#cancelBtnObject (readonly)

Returns the value of attribute cancelBtn.



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

def cancelBtn
  @cancelBtn
end

#hostNameObject (readonly)

Returns the value of attribute hostName.



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

def hostName
  @hostName
end

#okBtnObject (readonly)

Returns the value of attribute okBtn.



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

def okBtn
  @okBtn
end

#textLabel7Object (readonly)

Returns the value of attribute textLabel7.



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

def textLabel7
  @textLabel7
end

#textLabel8Object (readonly)

Returns the value of attribute textLabel8.



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

def textLabel8
  @textLabel8
end