Class: ServerLogSettingsDlg

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

Direct Known Subclasses

ServerLogSettings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ServerLogSettingsDlg.



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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/ServerLogSettingsDlg.rb', line 38

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

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

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

    @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)

    @ServerLogSettingsDlgLayout.addMultiCellLayout(@Layout1, 3, 3, 0, 2)

    @groupBox3 = Qt::GroupBox.new(self, "groupBox3")
    @groupBox3.setSizePolicy( Qt::SizePolicy.new(5, 3, 0, 0, @groupBox3.sizePolicy().hasHeightForWidth()) )
    @groupBox3.setColumnLayout( 0, Qt::Vertical )
    @groupBox3.layout().setSpacing(6)
    @groupBox3.layout().setMargin(11)
    @groupBox3Layout = Qt::GridLayout.new(@groupBox3.layout() )
    @groupBox3Layout.setAlignment( AlignTop )

    @hostNameList = Qt::ListView.new(@groupBox3, "hostNameList")
    @hostNameList.addColumn(trUtf8("Base URL"))
    @hostNameList.addColumn(trUtf8("Default"))
    @hostNameList.setSizePolicy( Qt::SizePolicy.new(7, 7, 0, 100, @hostNameList.sizePolicy().hasHeightForWidth()) )

    @groupBox3Layout.addMultiCellWidget(@hostNameList, 1, 5, 0, 0)

    @textLabel4 = Qt::Label.new(@groupBox3, "textLabel4")

    @groupBox3Layout.addMultiCellWidget(@textLabel4, 0, 0, 0, 1)
    @spacer4 = Qt::SpacerItem.new(31, 60, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding)
    @groupBox3Layout.addItem(@spacer4, 5, 1)

    @removeBtn = Qt::PushButton.new(@groupBox3, "removeBtn")

    @groupBox3Layout.addWidget(@removeBtn, 3, 1)

    @editBtn = Qt::PushButton.new(@groupBox3, "editBtn")

    @groupBox3Layout.addWidget(@editBtn, 2, 1)

    @newBtn = Qt::PushButton.new(@groupBox3, "newBtn")

    @groupBox3Layout.addWidget(@newBtn, 1, 1)

    @setAsDefaultBtn = Qt::PushButton.new(@groupBox3, "setAsDefaultBtn")

    @groupBox3Layout.addWidget(@setAsDefaultBtn, 4, 1)

    @ServerLogSettingsDlgLayout.addMultiCellWidget(@groupBox3, 2, 2, 0, 2)

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

    @ServerLogSettingsDlgLayout.addWidget(@textLabel1, 0, 0)

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

    @ServerLogSettingsDlgLayout.addWidget(@logFile, 1, 1)

    @searchBtn = Qt::ToolButton.new(self, "searchBtn")

    @ServerLogSettingsDlgLayout.addWidget(@searchBtn, 1, 2)

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

    @ServerLogSettingsDlgLayout.addWidget(@name, 0, 1)

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

    @ServerLogSettingsDlgLayout.addWidget(@textLabel2, 1, 0)
    languageChange()
    resize( Qt::Size.new(582, 413).expandedTo(minimumSizeHint()) )
    clearWState( WState_Polished )

    Qt::Object.connect(@okBtn, SIGNAL("clicked()"), self, SLOT("okBtnClicked()") )
    Qt::Object.connect(@newBtn, SIGNAL("clicked()"), self, SLOT("newBtnClicked()") )
    Qt::Object.connect(@editBtn, SIGNAL("clicked()"), self, SLOT("editBtnClicked()") )
    Qt::Object.connect(@removeBtn, SIGNAL("clicked()"), self, SLOT("removeBtnClicked()") )
    Qt::Object.connect(@searchBtn, SIGNAL("clicked()"), self, SLOT("searchBtnClicked()") )
    Qt::Object.connect(@setAsDefaultBtn, SIGNAL("clicked()"), self, SLOT("setAsDefaultBtnClicked()") )
    Qt::Object.connect(@cancelBtn, SIGNAL("clicked()"), self, SLOT("reject()") )

    setTabOrder(@name, @logFile)
    setTabOrder(@logFile, @hostNameList)
    setTabOrder(@hostNameList, @newBtn)
    setTabOrder(@newBtn, @editBtn)
    setTabOrder(@editBtn, @removeBtn)
    setTabOrder(@removeBtn, @okBtn)
    setTabOrder(@okBtn, @cancelBtn)
end

Instance Attribute Details

#cancelBtnObject (readonly)

Returns the value of attribute cancelBtn.



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

def cancelBtn
  @cancelBtn
end

#editBtnObject (readonly)

Returns the value of attribute editBtn.



28
29
30
# File 'lib/ServerLogSettingsDlg.rb', line 28

def editBtn
  @editBtn
end

#groupBox3Object (readonly)

Returns the value of attribute groupBox3.



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

def groupBox3
  @groupBox3
end

#hostNameListObject (readonly)

Returns the value of attribute hostNameList.



25
26
27
# File 'lib/ServerLogSettingsDlg.rb', line 25

def hostNameList
  @hostNameList
end

#logFileObject (readonly)

Returns the value of attribute logFile.



32
33
34
# File 'lib/ServerLogSettingsDlg.rb', line 32

def logFile
  @logFile
end

#nameObject (readonly)

Returns the value of attribute name.



34
35
36
# File 'lib/ServerLogSettingsDlg.rb', line 34

def name
  @name
end

#newBtnObject (readonly)

Returns the value of attribute newBtn.



29
30
31
# File 'lib/ServerLogSettingsDlg.rb', line 29

def newBtn
  @newBtn
end

#okBtnObject (readonly)

Returns the value of attribute okBtn.



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

def okBtn
  @okBtn
end

#removeBtnObject (readonly)

Returns the value of attribute removeBtn.



27
28
29
# File 'lib/ServerLogSettingsDlg.rb', line 27

def removeBtn
  @removeBtn
end

#searchBtnObject (readonly)

Returns the value of attribute searchBtn.



33
34
35
# File 'lib/ServerLogSettingsDlg.rb', line 33

def searchBtn
  @searchBtn
end

#setAsDefaultBtnObject (readonly)

Returns the value of attribute setAsDefaultBtn.



30
31
32
# File 'lib/ServerLogSettingsDlg.rb', line 30

def setAsDefaultBtn
  @setAsDefaultBtn
end

#textLabel1Object (readonly)

Returns the value of attribute textLabel1.



31
32
33
# File 'lib/ServerLogSettingsDlg.rb', line 31

def textLabel1
  @textLabel1
end

#textLabel2Object (readonly)

Returns the value of attribute textLabel2.



35
36
37
# File 'lib/ServerLogSettingsDlg.rb', line 35

def textLabel2
  @textLabel2
end

#textLabel4Object (readonly)

Returns the value of attribute textLabel4.



26
27
28
# File 'lib/ServerLogSettingsDlg.rb', line 26

def textLabel4
  @textLabel4
end

Instance Method Details

#cancelBtnClicked(*k) ⇒ Object



178
179
180
# File 'lib/ServerLogSettingsDlg.rb', line 178

def cancelBtnClicked(*k)
    print("ServerLogSettingsDlg.cancelBtnClicked(): Not implemented yet.\n")
end

#editBtnClicked(*k) ⇒ Object



186
187
188
# File 'lib/ServerLogSettingsDlg.rb', line 186

def editBtnClicked(*k)
    print("ServerLogSettingsDlg.editBtnClicked(): Not implemented yet.\n")
end

#newBtnClicked(*k) ⇒ Object



182
183
184
# File 'lib/ServerLogSettingsDlg.rb', line 182

def newBtnClicked(*k)
    print("ServerLogSettingsDlg.newBtnClicked(): Not implemented yet.\n")
end

#okBtnClicked(*k) ⇒ Object



174
175
176
# File 'lib/ServerLogSettingsDlg.rb', line 174

def okBtnClicked(*k)
    print("ServerLogSettingsDlg.okBtnClicked(): Not implemented yet.\n")
end

#removeBtnClicked(*k) ⇒ Object



190
191
192
# File 'lib/ServerLogSettingsDlg.rb', line 190

def removeBtnClicked(*k)
    print("ServerLogSettingsDlg.removeBtnClicked(): Not implemented yet.\n")
end

#searchBtnClicked(*k) ⇒ Object



194
195
196
# File 'lib/ServerLogSettingsDlg.rb', line 194

def searchBtnClicked(*k)
    print("ServerLogSettingsDlg.searchBtnClicked(): Not implemented yet.\n")
end

#setAsDefaultBtnClicked(*k) ⇒ Object



198
199
200
# File 'lib/ServerLogSettingsDlg.rb', line 198

def setAsDefaultBtnClicked(*k)
    print("ServerLogSettingsDlg.setAsDefaultBtnClicked(): Not implemented yet.\n")
end