Class: ConfigurationDlg

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

Direct Known Subclasses

Configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ConfigurationDlg.



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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/ConfigurationDlg.rb', line 61

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

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

    @ConfigurationDlgLayout = Qt::VBoxLayout.new(self, 11, 6, 'ConfigurationDlgLayout')

    @tabWidget = Qt::TabWidget.new(self, "tabWidget")

    @Widget8 = Qt::Widget.new(@tabWidget, "Widget8")
    @Widget8Layout = Qt::GridLayout.new(@Widget8, 1, 1, 11, 6, 'Widget8Layout')

    @removeLogBtn = Qt::PushButton.new(@Widget8, "removeLogBtn")

    @Widget8Layout.addWidget(@removeLogBtn, 2, 1)

    @editLogBtn = Qt::PushButton.new(@Widget8, "editLogBtn")

    @Widget8Layout.addWidget(@editLogBtn, 1, 1)

    @newLogBtn = Qt::PushButton.new(@Widget8, "newLogBtn")

    @Widget8Layout.addWidget(@newLogBtn, 0, 1)

    @logList = Qt::ListView.new(@Widget8, "logList")
    @logList.addColumn(trUtf8("Server Log"))

    @Widget8Layout.addMultiCellWidget(@logList, 0, 3, 0, 0)
    @spacer5 = Qt::SpacerItem.new(31, 91, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding)
    @Widget8Layout.addItem(@spacer5, 3, 1)
    @tabWidget.insertTab(@Widget8, trUtf8("&Web Server Log Files"))

    @Widget9 = Qt::Widget.new(@tabWidget, "Widget9")
    @Widget9Layout = Qt::GridLayout.new(@Widget9, 1, 1, 11, 6, 'Widget9Layout')

    @groupBox14 = Qt::GroupBox.new(@Widget9, "groupBox14")
    @groupBox14.setColumnLayout( 0, Qt::Vertical )
    @groupBox14.layout().setSpacing(6)
    @groupBox14.layout().setMargin(11)
    @groupBox14Layout = Qt::GridLayout.new(@groupBox14.layout() )
    @groupBox14Layout.setAlignment( AlignTop )

    @browserCommand = Qt::LineEdit.new(@groupBox14, "browserCommand")

    @groupBox14Layout.addWidget(@browserCommand, 1, 0)

    @textLabel2 = Qt::Label.new(@groupBox14, "textLabel2")
    @textLabel2.setTextFormat( Qt::Label::RichText )

    @groupBox14Layout.addWidget(@textLabel2, 0, 0)

    @Widget9Layout.addWidget(@groupBox14, 0, 0)

    @groupBox15 = Qt::GroupBox.new(@Widget9, "groupBox15")
    @groupBox15.setColumnLayout( 0, Qt::Vertical )
    @groupBox15.layout().setSpacing(6)
    @groupBox15.layout().setMargin(11)
    @groupBox15Layout = Qt::GridLayout.new(@groupBox15.layout() )
    @groupBox15Layout.setAlignment( AlignTop )

    @textLabel3 = Qt::Label.new(@groupBox15, "textLabel3")

    @groupBox15Layout.addMultiCellWidget(@textLabel3, 1, 2, 0, 0)

    @textLabel6 = Qt::Label.new(@groupBox15, "textLabel6")

    @groupBox15Layout.addMultiCellWidget(@textLabel6, 1, 2, 2, 3)

    @dnsEntries = Qt::LineEdit.new(@groupBox15, "dnsEntries")
    @dnsEntries.setReadOnly( true )

    @groupBox15Layout.addWidget(@dnsEntries, 4, 3)

    @geolocEntries = Qt::LineEdit.new(@groupBox15, "geolocEntries")
    @geolocEntries.setReadOnly( true )

    @groupBox15Layout.addWidget(@geolocEntries, 5, 3)

    @textLabel10 = Qt::Label.new(@groupBox15, "textLabel10")

    @groupBox15Layout.addWidget(@textLabel10, 5, 2)

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

    @groupBox15Layout.addWidget(@textLabel8, 4, 2)

    @textLabel17 = Qt::Label.new(@groupBox15, "textLabel17")

    @groupBox15Layout.addWidget(@textLabel17, 3, 0)

    @textLabel18 = Qt::Label.new(@groupBox15, "textLabel18")

    @groupBox15Layout.addWidget(@textLabel18, 3, 2)

    @traceRouteTimeout = Qt::SpinBox.new(@groupBox15, "traceRouteTimeout")
    @traceRouteTimeout.setMaxValue( 168 )
    @traceRouteTimeout.setMinValue( 1 )
    @traceRouteTimeout.setValue( 48 )

    @groupBox15Layout.addWidget(@traceRouteTimeout, 3, 1)

    @logFileDataTimeout = Qt::SpinBox.new(@groupBox15, "logFileDataTimeout")
    @logFileDataTimeout.setMaxValue( 168 )
    @logFileDataTimeout.setMinValue( 1 )
    @logFileDataTimeout.setValue( 24 )

    @groupBox15Layout.addWidget(@logFileDataTimeout, 2, 1)

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

    @groupBox15Layout.addWidget(@textLabel7, 4, 0)

    @textLabel9 = Qt::Label.new(@groupBox15, "textLabel9")

    @groupBox15Layout.addWidget(@textLabel9, 5, 0)

    @traceEntries = Qt::LineEdit.new(@groupBox15, "traceEntries")
    @traceEntries.setReadOnly( true )

    @groupBox15Layout.addWidget(@traceEntries, 3, 3)

    @logFileEntries = Qt::LineEdit.new(@groupBox15, "logFileEntries")
    @logFileEntries.setReadOnly( true )

    @groupBox15Layout.addWidget(@logFileEntries, 2, 3)

    @geolocTimeout = Qt::SpinBox.new(@groupBox15, "geolocTimeout")
    @geolocTimeout.setMaxValue( 365 )
    @geolocTimeout.setMinValue( 1 )
    @geolocTimeout.setValue( 30 )

    @groupBox15Layout.addWidget(@geolocTimeout, 5, 1)

    @dnsTimeout = Qt::SpinBox.new(@groupBox15, "dnsTimeout")
    @dnsTimeout.setMaxValue( 365 )
    @dnsTimeout.setMinValue( 1 )
    @dnsTimeout.setValue( 7 )

    @groupBox15Layout.addWidget(@dnsTimeout, 4, 1)
    @spacer3 = Qt::SpacerItem.new(310, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
    @groupBox15Layout.addMultiCell(@spacer3, 0, 0, 0, 2)

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

    @groupBox15Layout.addWidget(@textLabel1, 0, 3)

    @traceRouterCB = Qt::CheckBox.new(@groupBox15, "traceRouterCB")

    @groupBox15Layout.addWidget(@traceRouterCB, 3, 4)

    @geolocatorCB = Qt::CheckBox.new(@groupBox15, "geolocatorCB")

    @groupBox15Layout.addWidget(@geolocatorCB, 5, 4)

    @dnsResolverCB = Qt::CheckBox.new(@groupBox15, "dnsResolverCB")

    @groupBox15Layout.addWidget(@dnsResolverCB, 4, 4)

    @textLabel1_2 = Qt::Label.new(@groupBox15, "textLabel1_2")

    @groupBox15Layout.addWidget(@textLabel1_2, 0, 4)

    @Widget9Layout.addWidget(@groupBox15, 1, 0)

    @groupBox16 = Qt::GroupBox.new(@Widget9, "groupBox16")
    @groupBox16.setColumnLayout( 0, Qt::Vertical )
    @groupBox16.layout().setSpacing(6)
    @groupBox16.layout().setMargin(11)
    @groupBox16Layout = Qt::GridLayout.new(@groupBox16.layout() )
    @groupBox16Layout.setAlignment( AlignTop )

    @textLabel13 = Qt::Label.new(@groupBox16, "textLabel13")

    @groupBox16Layout.addWidget(@textLabel13, 1, 0)

    @textLabel14 = Qt::Label.new(@groupBox16, "textLabel14")

    @groupBox16Layout.addWidget(@textLabel14, 1, 2)

    @geolocHost = Qt::LineEdit.new(@groupBox16, "geolocHost")

    @groupBox16Layout.addWidget(@geolocHost, 1, 1)

    @geolocPort = Qt::SpinBox.new(@groupBox16, "geolocPort")
    @geolocPort.setMaxValue( 32767 )
    @geolocPort.setMinValue( 1 )
    @geolocPort.setValue( 80 )

    @groupBox16Layout.addWidget(@geolocPort, 1, 3)

    @textLabel11 = Qt::Label.new(@groupBox16, "textLabel11")
    @textLabel11.setTextFormat( Qt::Label::RichText )

    @groupBox16Layout.addMultiCellWidget(@textLabel11, 0, 0, 0, 3)

    @Widget9Layout.addWidget(@groupBox16, 2, 0)
    @tabWidget.insertTab(@Widget9, trUtf8("&Settings"))
    @ConfigurationDlgLayout.addWidget(@tabWidget)

    @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)
    @ConfigurationDlgLayout.addLayout(@Layout1)
    languageChange()
    resize( Qt::Size.new(562, 587).expandedTo(minimumSizeHint()) )
    clearWState( WState_Polished )

    Qt::Object.connect(@newLogBtn, SIGNAL("clicked()"), self, SLOT("newLogBtnClicked()") )
    Qt::Object.connect(@editLogBtn, SIGNAL("clicked()"), self, SLOT("editLogBtnClicked()") )
    Qt::Object.connect(@removeLogBtn, SIGNAL("clicked()"), self, SLOT("removeLogBtnClicked()") )
    Qt::Object.connect(@okBtn, SIGNAL("clicked()"), self, SLOT("okBtnClicked()") )
    Qt::Object.connect(@cancelBtn, SIGNAL("clicked()"), self, SLOT("reject()") )

    setTabOrder(@tabWidget, @logList)
    setTabOrder(@logList, @newLogBtn)
    setTabOrder(@newLogBtn, @editLogBtn)
    setTabOrder(@editLogBtn, @removeLogBtn)
    setTabOrder(@removeLogBtn, @okBtn)
    setTabOrder(@okBtn, @cancelBtn)
    setTabOrder(@cancelBtn, @browserCommand)
    setTabOrder(@browserCommand, @logFileDataTimeout)
    setTabOrder(@logFileDataTimeout, @logFileEntries)
    setTabOrder(@logFileEntries, @traceRouteTimeout)
    setTabOrder(@traceRouteTimeout, @traceEntries)
    setTabOrder(@traceEntries, @traceRouterCB)
    setTabOrder(@traceRouterCB, @dnsTimeout)
    setTabOrder(@dnsTimeout, @dnsEntries)
    setTabOrder(@dnsEntries, @dnsResolverCB)
    setTabOrder(@dnsResolverCB, @geolocTimeout)
    setTabOrder(@geolocTimeout, @geolocEntries)
    setTabOrder(@geolocEntries, @geolocatorCB)
    setTabOrder(@geolocatorCB, @geolocHost)
    setTabOrder(@geolocHost, @geolocPort)
end

Instance Attribute Details

#browserCommandObject (readonly)

Returns the value of attribute browserCommand.



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

def browserCommand
  @browserCommand
end

#cancelBtnObject (readonly)

Returns the value of attribute cancelBtn.



58
59
60
# File 'lib/ConfigurationDlg.rb', line 58

def cancelBtn
  @cancelBtn
end

#dnsEntriesObject (readonly)

Returns the value of attribute dnsEntries.



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

def dnsEntries
  @dnsEntries
end

#dnsResolverCBObject (readonly)

Returns the value of attribute dnsResolverCB.



49
50
51
# File 'lib/ConfigurationDlg.rb', line 49

def dnsResolverCB
  @dnsResolverCB
end

#dnsTimeoutObject (readonly)

Returns the value of attribute dnsTimeout.



45
46
47
# File 'lib/ConfigurationDlg.rb', line 45

def dnsTimeout
  @dnsTimeout
end

#editLogBtnObject (readonly)

Returns the value of attribute editLogBtn.



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

def editLogBtn
  @editLogBtn
end

#geolocatorCBObject (readonly)

Returns the value of attribute geolocatorCB.



48
49
50
# File 'lib/ConfigurationDlg.rb', line 48

def geolocatorCB
  @geolocatorCB
end

#geolocEntriesObject (readonly)

Returns the value of attribute geolocEntries.



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

def geolocEntries
  @geolocEntries
end

#geolocHostObject (readonly)

Returns the value of attribute geolocHost.



54
55
56
# File 'lib/ConfigurationDlg.rb', line 54

def geolocHost
  @geolocHost
end

#geolocPortObject (readonly)

Returns the value of attribute geolocPort.



55
56
57
# File 'lib/ConfigurationDlg.rb', line 55

def geolocPort
  @geolocPort
end

#geolocTimeoutObject (readonly)

Returns the value of attribute geolocTimeout.



44
45
46
# File 'lib/ConfigurationDlg.rb', line 44

def geolocTimeout
  @geolocTimeout
end

#groupBox14Object (readonly)

Returns the value of attribute groupBox14.



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

def groupBox14
  @groupBox14
end

#groupBox15Object (readonly)

Returns the value of attribute groupBox15.



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

def groupBox15
  @groupBox15
end

#groupBox16Object (readonly)

Returns the value of attribute groupBox16.



51
52
53
# File 'lib/ConfigurationDlg.rb', line 51

def groupBox16
  @groupBox16
end

#logFileDataTimeoutObject (readonly)

Returns the value of attribute logFileDataTimeout.



39
40
41
# File 'lib/ConfigurationDlg.rb', line 39

def logFileDataTimeout
  @logFileDataTimeout
end

#logFileEntriesObject (readonly)

Returns the value of attribute logFileEntries.



43
44
45
# File 'lib/ConfigurationDlg.rb', line 43

def logFileEntries
  @logFileEntries
end

#logListObject (readonly)

Returns the value of attribute logList.



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

def logList
  @logList
end

#newLogBtnObject (readonly)

Returns the value of attribute newLogBtn.



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

def newLogBtn
  @newLogBtn
end

#okBtnObject (readonly)

Returns the value of attribute okBtn.



57
58
59
# File 'lib/ConfigurationDlg.rb', line 57

def okBtn
  @okBtn
end

#removeLogBtnObject (readonly)

Returns the value of attribute removeLogBtn.



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

def removeLogBtn
  @removeLogBtn
end

#tabWidgetObject (readonly)

Returns the value of attribute tabWidget.



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

def tabWidget
  @tabWidget
end

#textLabel1Object (readonly)

Returns the value of attribute textLabel1.



46
47
48
# File 'lib/ConfigurationDlg.rb', line 46

def textLabel1
  @textLabel1
end

#textLabel10Object (readonly)

Returns the value of attribute textLabel10.



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

def textLabel10
  @textLabel10
end

#textLabel11Object (readonly)

Returns the value of attribute textLabel11.



56
57
58
# File 'lib/ConfigurationDlg.rb', line 56

def textLabel11
  @textLabel11
end

#textLabel13Object (readonly)

Returns the value of attribute textLabel13.



52
53
54
# File 'lib/ConfigurationDlg.rb', line 52

def textLabel13
  @textLabel13
end

#textLabel14Object (readonly)

Returns the value of attribute textLabel14.



53
54
55
# File 'lib/ConfigurationDlg.rb', line 53

def textLabel14
  @textLabel14
end

#textLabel17Object (readonly)

Returns the value of attribute textLabel17.



36
37
38
# File 'lib/ConfigurationDlg.rb', line 36

def textLabel17
  @textLabel17
end

#textLabel18Object (readonly)

Returns the value of attribute textLabel18.



37
38
39
# File 'lib/ConfigurationDlg.rb', line 37

def textLabel18
  @textLabel18
end

#textLabel1_2Object (readonly)

Returns the value of attribute textLabel1_2.



50
51
52
# File 'lib/ConfigurationDlg.rb', line 50

def textLabel1_2
  @textLabel1_2
end

#textLabel2Object (readonly)

Returns the value of attribute textLabel2.



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

def textLabel2
  @textLabel2
end

#textLabel3Object (readonly)

Returns the value of attribute textLabel3.



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

def textLabel3
  @textLabel3
end

#textLabel6Object (readonly)

Returns the value of attribute textLabel6.



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

def textLabel6
  @textLabel6
end

#textLabel7Object (readonly)

Returns the value of attribute textLabel7.



40
41
42
# File 'lib/ConfigurationDlg.rb', line 40

def textLabel7
  @textLabel7
end

#textLabel8Object (readonly)

Returns the value of attribute textLabel8.



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

def textLabel8
  @textLabel8
end

#textLabel9Object (readonly)

Returns the value of attribute textLabel9.



41
42
43
# File 'lib/ConfigurationDlg.rb', line 41

def textLabel9
  @textLabel9
end

#traceEntriesObject (readonly)

Returns the value of attribute traceEntries.



42
43
44
# File 'lib/ConfigurationDlg.rb', line 42

def traceEntries
  @traceEntries
end

#traceRouterCBObject (readonly)

Returns the value of attribute traceRouterCB.



47
48
49
# File 'lib/ConfigurationDlg.rb', line 47

def traceRouterCB
  @traceRouterCB
end

#traceRouteTimeoutObject (readonly)

Returns the value of attribute traceRouteTimeout.



38
39
40
# File 'lib/ConfigurationDlg.rb', line 38

def traceRouteTimeout
  @traceRouteTimeout
end

#Widget8Object (readonly)

Returns the value of attribute Widget8.



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

def Widget8
  @Widget8
end

#Widget9Object (readonly)

Returns the value of attribute Widget9.



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

def Widget9
  @Widget9
end

Instance Method Details

#editLogBtnClicked(*k) ⇒ Object



360
361
362
# File 'lib/ConfigurationDlg.rb', line 360

def editLogBtnClicked(*k)
    print("ConfigurationDlg.editLogBtnClicked(): Not implemented yet.\n")
end

#newLogBtnClicked(*k) ⇒ Object



356
357
358
# File 'lib/ConfigurationDlg.rb', line 356

def newLogBtnClicked(*k)
    print("ConfigurationDlg.newLogBtnClicked(): Not implemented yet.\n")
end

#okBtnClicked(*k) ⇒ Object



368
369
370
# File 'lib/ConfigurationDlg.rb', line 368

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

#removeLogBtnClicked(*k) ⇒ Object



364
365
366
# File 'lib/ConfigurationDlg.rb', line 364

def removeLogBtnClicked(*k)
    print("ConfigurationDlg.removeLogBtnClicked(): Not implemented yet.\n")
end