Thu, 06 Aug 2009 13:21:30 +0200
Remove seemingly declarations unnecessary according to Qt 4.5.2 headers.
1 //
2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2009 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2009 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2009 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2009 Cable & Wireless Telecommunications Services GmbH
7 //
8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://asgui.europalab.com/.
10 //
11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all
14 // copies.
15 //
16 // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
17 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 // IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
20 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 // USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 // OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 // SUCH DAMAGE.
28 //
29 // as_panel.cpp: ISO C++ implementation
30 //
32 #include <vector>
34 #include <qimage.h>
36 //Added by qt3to4:
37 #include <Q3HBoxLayout>
38 #include <Q3GridLayout>
39 #include <QLabel>
40 #include <Q3VBoxLayout>
42 #include "as_panel.h"
43 #include "as_generic.h"
44 #include "as_const.h"
46 #include "as_gfx/revcolour.xpm"
48 //
49 // Constructs a Prefpanel as a child of 'pParent', with the
50 // name 'kszName' and widget flags set to 'Flags'.
51 //
52 // The dialog will by default be modal, unless you set 'bModal' to
53 // false to construct a modeless dialog.
54 //
55 Prefpanel::Prefpanel(QWidget *pParent, const char *kszName, bool bModal, Qt::WFlags Flags)
56 : QDialog(pParent, kszName, bModal, Flags)
57 {
58 if (!kszName)
59 this->setName("Prefpanel");
61 this->setSizeGripEnabled(false);
62 this->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)5,
63 (QSizePolicy::SizeType)5, 0, 0, this->sizePolicy().hasHeightForWidth()));
65 // Initialize our button colours
66 m_pLight = new QColor();
67 m_pDark = new QColor();
69 m_pVlayout = new Q3VBoxLayout(this, 11, 6, "Formlayout");
70 m_pTabselect = new QTabWidget(this, "Tabselector");
72 // Start of style chooser UI pieces
73 m_pBoolpage = new QWidget(m_pTabselect, "Tabpage");
74 m_pBoolayout = new Q3HBoxLayout(m_pBoolpage, 11, 6, "Genlayout");
75 m_pBinlayout = new Q3VBoxLayout(0, 0, 6, "Binarylayout");
76 m_pStylegroup = new Q3ButtonGroup(m_pBoolpage, "Stylebuttongroup");
77 m_pStylegroup->setColumnLayout(0, Qt::Vertical);
78 m_pStylegroup->layout()->setSpacing(6);
79 m_pStylegroup->layout()->setMargin(11);
80 m_pStylegroup->setExclusive(true);
82 m_pStylelay = new Q3VBoxLayout(m_pStylegroup->layout());
83 m_pStylelay->setAlignment(Qt::AlignTop);
85 // Block to handle a vector of radio buttons
86 int nIter = 0;
87 QStringList Styles = QStyleFactory::keys();
88 std::vector<QRadioButton *> Stylevector(Styles.size());
90 // Discover which interface styles are available, and
91 // dynamically construct new radio buttons to represent them
92 for (QStringList::Iterator Stylename = Styles.begin();
93 Stylename != Styles.end(); Stylename++) {
94 Stylevector[nIter] = new QRadioButton(m_pStylegroup, *Stylename + "_button");
95 Stylevector[nIter]->setText(trUtf8(*Stylename, "Comment for " + *Stylename));
96 Stylevector[nIter]->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding,
97 Stylevector[nIter]->sizePolicy().hasHeightForWidth());
98 QToolTip::add(Stylevector[nIter], trUtf8("The " + *Stylename + " style",
99 "Comment for toolTip " + *Stylename));
100 Q3WhatsThis::add(Stylevector[nIter], trUtf8("Click this button to enjoy the style of the "
101 + *Stylename + " user interface", "Comment whatsThis for " + *Stylename));
102 m_pStylelay->addWidget(Stylevector[nIter]);
103 nIter++;
104 }
106 // Start of binary option UI pieces (like make backups, yes or no)
107 m_pSwitchgroup = new Q3ButtonGroup(m_pBoolpage, "Switchbuttongroup");
108 m_pSwitchgroup->setColumnLayout(0, Qt::Vertical);
109 m_pSwitchgroup->layout()->setSpacing(6);
110 m_pSwitchgroup->layout()->setMargin(11);
111 m_pSwitchgroup->setExclusive(false);
112 m_pSwitchlay = new Q3VBoxLayout(m_pSwitchgroup->layout());
113 m_pSwitchlay->setAlignment(Qt::AlignTop);
115 // Optional file backups with hard coded extension .bak
116 m_pBackupcheck = new QCheckBox(m_pSwitchgroup, "Backupbutton");
117 m_pBackupcheck->setText(trUtf8("Make .bak file on save", "Comment for Backupcheck"));
118 QToolTip::add(m_pBackupcheck, trUtf8("Make a .bak file when saving", "Comment for toolTip Backupcheck"));
119 Q3WhatsThis::add(m_pBackupcheck, trUtf8("Check this box to enable automatic file backups when overwriting an existing file", "Comment whatsThis for Backupcheck"));
120 m_pSwitchlay->addWidget(m_pBackupcheck);
122 // Optional easy filename appending with hard coded extension .as
123 m_pExtendcheck = new QCheckBox(m_pSwitchgroup, "Extensionbutton");
124 m_pExtendcheck->setText(trUtf8("Append .as extension", "Comment for Extensioncheck"));
125 QToolTip::add(m_pExtendcheck, trUtf8("Use the .as file extension", "Comment for toolTip Extensioncheck"));
126 Q3WhatsThis::add(m_pExtendcheck, trUtf8("Check this box to automatically append '.as' to new filenames when saving", "Comment whatsThis for Extensioncheck"));
127 m_pSwitchlay->addWidget(m_pExtendcheck);
129 // Start of report option UI pieces (like detailed report listings)
130 m_pReportgroup = new Q3ButtonGroup(m_pBoolpage, "Reportbuttongroup");
131 m_pReportgroup->setColumnLayout(0, Qt::Vertical);
132 m_pReportgroup->layout()->setSpacing(6);
133 m_pReportgroup->layout()->setMargin(11);
134 m_pReportgroup->setExclusive(false);
135 m_pReportlay = new Q3VBoxLayout(m_pReportgroup->layout());
136 m_pReportlay->setAlignment(Qt::AlignTop);
138 // Optional detailed report listings write all events in range
139 m_pDetailcheck = new QCheckBox(m_pReportgroup, "Detailistbutton");
140 m_pDetailcheck->setText(trUtf8("Detailed listing", "Comment for Detailcheck"));
141 QToolTip::add(m_pDetailcheck, trUtf8("Write detailed event listings", "Comment for toolTip Detailcheck"));
142 Q3WhatsThis::add(m_pDetailcheck, trUtf8("Check this box to enable writing of detailed event listings to the local report", "Comment whatsThis for Detailcheck"));
143 m_pReportlay->addWidget(m_pDetailcheck);
145 // Optional signature line in report footer
146 m_pSigncheck = new QCheckBox(m_pReportgroup, "Signaturebutton");
147 m_pSigncheck->setText(trUtf8("Signature line", "Comment for Signaturecheck"));
148 QToolTip::add(m_pSigncheck, trUtf8("Append a signature line", "Comment for toolTip Signaturecheck"));
149 Q3WhatsThis::add(m_pSigncheck, trUtf8("Check this box to write a signature line to the report footer", "Comment whatsThis for Signaturecheck"));
150 m_pReportlay->addWidget(m_pSigncheck);
151 m_pBoolayout->addWidget(m_pStylegroup);
152 m_pBinlayout->addWidget(m_pReportgroup);
153 m_pBinlayout->addWidget(m_pSwitchgroup);
154 m_pBoolayout->addLayout(m_pBinlayout);
155 m_pTabselect->insertTab(m_pBoolpage, "");
157 // Start of paths page UI pieces
158 m_pGeneralpage = new QWidget(m_pTabselect, "Generalpage");
159 m_pGenlayout = new Q3HBoxLayout(m_pGeneralpage, 11, 6, "Genlayout");
160 m_pGenbox = new Q3GroupBox(m_pGeneralpage, "Groupboxlayout");
161 m_pGenbox->setColumnLayout(0, Qt::Vertical);
162 m_pGenbox->layout()->setSpacing(6);
163 m_pGenbox->layout()->setMargin(11);
164 m_pGenboxlay = new Q3HBoxLayout(m_pGenbox->layout());
165 m_pGenboxlay->setAlignment(Qt::AlignTop);
167 // Start of path text entry preferences UI pieces
168 m_pGeninner = new Q3GridLayout(0, 4, 2, 0, 16, "Innergrid");
169 m_pAcctlabel = new QLabel(m_pGenbox, "Accfilelabel");
170 m_pGeninner->addWidget(m_pAcctlabel, 0, 0);
171 m_pAcctline = new QLineEdit(m_pGenbox, "Accountline");
172 m_pGeninner->addWidget(m_pAcctline, 0, 1);
173 m_pEventlabel = new QLabel(m_pGenbox, "Evntdirlabel");
174 m_pGeninner->addWidget(m_pEventlabel, 1, 0);
175 m_pEventline = new QLineEdit(m_pGenbox, "Eventline");
176 m_pGeninner->addWidget(m_pEventline, 1, 1);
177 m_pHomelabel = new QLabel(m_pGenbox, "Homelabel");
178 m_pGeninner->addWidget(m_pHomelabel, 2, 0);
179 m_pHomeline = new QLineEdit(m_pGenbox, "Homeline");
180 m_pGeninner->addWidget(m_pHomeline, 2, 1);
181 m_pUserlabel = new QLabel(m_pGenbox, "Userlabel");
182 m_pGeninner->addWidget(m_pUserlabel, 3, 0);
183 m_pUserline = new QLineEdit(m_pGenbox, "Userline");
184 m_pGeninner->addWidget(m_pUserline, 3, 1);
185 m_pGenboxlay->addLayout(m_pGeninner);
187 m_pGenlayout->addWidget(m_pGenbox);
188 m_pTabselect->insertTab(m_pGeneralpage, "");
190 // Start of remote page UI pieces
191 m_pRemotepage = new QWidget(m_pTabselect, "Remotepage");
192 m_pRemlayout = new Q3HBoxLayout(m_pRemotepage, 11, 6, "Remlayout");
193 m_pRembox = new Q3GroupBox(m_pRemotepage, "Remoteboxlayout");
195 m_pRembox->setColumnLayout(0, Qt::Vertical);
196 m_pRembox->layout()->setSpacing(6);
197 m_pRembox->layout()->setMargin(11);
198 m_pRemboxlay = new Q3HBoxLayout(m_pRembox->layout());
199 m_pRemboxlay->setAlignment(Qt::AlignTop);
201 // Start of RPC preferences UI pieces
202 m_pReminner = new Q3GridLayout(0, 5, 2, 0, 12, "Innergrid");
203 m_pCorbalabel = new QLabel(m_pRembox, "Corbalabel");
204 m_pReminner->addWidget(m_pCorbalabel, 0, 0);
205 m_pCorbaline = new QLineEdit(m_pRembox, "Corbaline");
206 m_pReminner->addWidget(m_pCorbaline, 0, 1);
207 m_pCorbacheck = new QCheckBox(m_pRembox, "Corbacheckbox");
208 m_pReminner->addWidget(m_pCorbacheck, 1, 1);
209 QSpacerItem *Spacey = new QSpacerItem(6, 12, QSizePolicy::Minimum, QSizePolicy::Minimum);
210 m_pReminner->addItem(Spacey, 2, 0);
211 m_pSoaplabel = new QLabel(m_pRembox, "Soaplabel");
212 m_pReminner->addWidget(m_pSoaplabel, 3, 0);
213 m_pSoapline = new QLineEdit(m_pRembox, "Soapline");
214 m_pReminner->addWidget(m_pSoapline, 3, 1);
215 m_pSoapcheck = new QCheckBox(m_pRembox, "Corbacheckbox");
216 m_pReminner->addWidget(m_pSoapcheck, 4, 1);
217 m_pRemboxlay->addLayout(m_pReminner);
219 m_pRemlayout->addWidget(m_pRembox);
220 m_pTabselect->insertTab(m_pRemotepage, "");
222 // Start of color page UI pieces
223 m_pColourpage = new QWidget(m_pTabselect, "Colourpage");
224 m_pColourlayout = new Q3HBoxLayout(m_pColourpage, 11, 6, "Colourlayout");
225 m_pShadebox = new Q3GroupBox(m_pColourpage, "Shadegroupbox");
226 m_pShadebox->setColumnLayout(0, Qt::Horizontal);
227 m_pShadebox->layout()->setSpacing(6);
228 m_pShadebox->layout()->setMargin(11);
229 m_pShadeboxlay = new Q3VBoxLayout(m_pShadebox->layout());
230 m_pShadeboxlay->setAlignment(Qt::AlignTop);
232 m_pShadelayout = new Q3GridLayout(0, 2, 2, 6, 16, "Shadelayout");
233 m_pLightlab = new QLabel(m_pShadebox, "Lightlabel");
234 m_pLightlab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
235 m_pShadelayout->addWidget(m_pLightlab, 0, 0);
236 m_pLightbutt = new QToolButton(m_pShadebox, "Lightbutton");
237 m_pLightbutt->setFocusPolicy(Qt::TabFocus);
238 m_pLightbutt->setCursor(QCursor(Qt::PointingHandCursor));
239 m_pShadelayout->addWidget(m_pLightbutt, 0, 1);
241 m_pDarklab = new QLabel(m_pShadebox, "Darklabel");
242 m_pDarklab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
243 m_pShadelayout->addWidget(m_pDarklab, 1, 0);
244 m_pDarkbutt = new QToolButton(m_pShadebox, "Darkbutton");
245 m_pDarkbutt->setFocusPolicy(Qt::TabFocus);
246 m_pDarkbutt->setCursor(QCursor(Qt::PointingHandCursor));
247 m_pShadelayout->addWidget(m_pDarkbutt, 1, 1);
249 m_pRevertlab = new QLabel(m_pShadebox, "Revertlabel");
250 m_pShadelayout->addWidget(m_pRevertlab, 2, 0);
251 m_pRevertbutt = new QToolButton(m_pShadebox, "Revertbutton");
252 m_pRevertbutt->setFocusPolicy(Qt::TabFocus);
253 // m_pRevertbutt->setIconSet(QIconSet(QPixmap(s_kpcRevcolour_xpm)));
254 m_pRevertbutt->setCursor(QCursor(Qt::PointingHandCursor));
255 m_pShadelayout->addWidget(m_pRevertbutt, 2, 1);
257 m_pThemebox = new Q3GroupBox(m_pColourpage, "Themegroupbox");
258 m_pThemebox->setColumnLayout(0, Qt::Vertical);
259 m_pThemebox->layout()->setSpacing(6);
260 m_pThemebox->layout()->setMargin(11);
261 m_pThemeboxlay = new Q3VBoxLayout(m_pThemebox->layout());
263 QLabel *pPlaceholder = new QLabel(m_pThemebox, "Placeholderlabel");
264 pPlaceholder->setText(trUtf8("Reserved for future use", "Comment for Placeholderlabel"));
265 m_pThemeboxlay->addWidget(pPlaceholder, 1, Qt::AlignCenter);
267 m_pShadeboxlay->addLayout(m_pShadelayout);
268 m_pColourlayout->addWidget(m_pShadebox);
269 m_pColourlayout->addWidget(m_pThemebox);
270 m_pTabselect->insertTab(m_pColourpage, "");
272 connect(m_pLightbutt, SIGNAL(clicked(void)), SLOT(shadeLight(void)));
273 connect(m_pDarkbutt, SIGNAL(clicked(void)), SLOT(shadeDark(void)));
274 connect(m_pRevertbutt, SIGNAL(clicked(void)), SLOT(shadeRevert(void)));
276 // Finally add the damn pages to the tab selector widget!
277 m_pVlayout->addWidget(m_pTabselect);
279 // Start of bottom buttons for aknowlegement and commital of changes
280 m_pButtlay = new Q3HBoxLayout(0, 0, 12, "Buttonlayout");
281 m_pOkaybutton = new QPushButton(this, "Okaybutton");
282 m_pOkaybutton->setMinimumWidth(120);
283 m_pOkaybutton->setPaletteBackgroundColor(QColor(202, 194, 182));
284 m_pOkaybutton->setCursor(QCursor(Qt::PointingHandCursor));
285 m_pButtlay->addWidget(m_pOkaybutton);
286 m_pApplybutton = new QPushButton(this, "Applybutton");
287 m_pApplybutton->setMinimumWidth(120);
288 m_pApplybutton->setPaletteBackgroundColor(QColor(198, 196, 186));
289 m_pApplybutton->setCursor(QCursor(Qt::PointingHandCursor));
290 m_pButtlay->addWidget(m_pApplybutton);
291 // QSpacerItem *Spacey = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
292 // m_pButtlay->addItem(Spacey);
293 m_pCancelbutton = new QPushButton(this, "Cancelbutton");
294 m_pCancelbutton->setMinimumWidth(120);
295 m_pCancelbutton->setPaletteBackgroundColor(QColor(198, 196, 186));
296 m_pCancelbutton->setCursor(QCursor(Qt::PointingHandCursor));
297 m_pButtlay->addWidget(m_pCancelbutton);
298 m_pCancelbutton->setDefault(true);
299 m_pVlayout->addLayout(m_pButtlay);
301 // Connect our signals to slots, accept() and reject() are Qt implicit
302 connect(m_pOkaybutton, SIGNAL(clicked(void)), SLOT(accept(void)));
303 connect(m_pApplybutton, SIGNAL(clicked(void)), SIGNAL(applied(void)));
304 connect(m_pCancelbutton, SIGNAL(clicked(void)), SLOT(reject(void)));
305 connect(m_pCorbacheck, SIGNAL(toggled(bool)), SLOT(enableCorba(bool)));
306 connect(m_pSoapcheck, SIGNAL(toggled(bool)), SLOT(enableSoap(bool)));
307 this->textChange();
308 this->resize(QSize(400, 264).expandedTo(minimumSizeHint()));
309 }
311 //
312 // Sets the light shading colour for rows
313 //
314 void Prefpanel::shadeLight(void)
315 {
316 QColorDialog::setCustomColor(0, this->getRevlight()->rgb());
317 QColorDialog::setCustomColor(1, this->getRevdark()->rgb());
318 QColorDialog::setCustomColor(2, this->getAltlight()->rgb());
319 QColorDialog::setCustomColor(3, this->getAltdark()->rgb());
320 QColor Colortemp = QColorDialog::getColor(*m_pLight);
321 if (Colortemp.isValid()) {
322 delete m_pLight;
323 m_pLight = new QColor(Colortemp);
324 m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
325 }
326 }
328 //
329 // Sets the dark shading colour for rows
330 //
331 void Prefpanel::shadeDark(void)
332 {
333 QColorDialog::setCustomColor(0, m_pLight->rgb());
334 QColorDialog::setCustomColor(1, m_pDark->rgb());
335 QColor Colortemp = QColorDialog::getColor(*m_pDark);
336 if (Colortemp.isValid()) {
337 delete m_pDark;
338 m_pDark = new QColor(Colortemp);
339 m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
340 }
341 }
343 //
344 // Reverts the shading colours to default values
345 //
346 void Prefpanel::shadeRevert(void)
347 {
348 delete m_pLight;
349 m_pLight = new QColor(*this->getRevlight());
350 m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
351 delete m_pDark;
352 m_pDark = new QColor(*this->getRevdark());
353 m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
354 }
356 //
357 // Polish off ending changes after creating and before widget shows
358 //
359 void Prefpanel::polish(void)
360 {
361 // Set our buttons now that user has probably set their colours
362 m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
363 m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
364 }
366 //
367 // Sets the strings of the subwidgets using the current language
368 //
369 void Prefpanel::textChange(void)
370 {
371 this->setCaption(trUtf8("AS Applicate Preferences", "Personal preferences are persistent across sessions"));
373 m_pTabselect->changeTab(m_pBoolpage, trUtf8("General"));
374 m_pTabselect->changeTab(m_pGeneralpage, trUtf8("Paths"));
375 m_pTabselect->changeTab(m_pRemotepage, trUtf8("Hosts"));
376 m_pTabselect->changeTab(m_pColourpage, trUtf8("Colour"));
378 m_pOkaybutton->setText(trUtf8("Okay", "Comment for Okaybutton"));
379 QToolTip::add(m_pOkaybutton, trUtf8("Applies and saves changes", "Comment for tooltip Okaybutton"));
380 Q3WhatsThis::add(m_pOkaybutton, trUtf8("The okay button applies and saves changes", "Comment for whatsThis Okaybutton"));
382 m_pApplybutton->setText(trUtf8("Apply", "Comment for Applybutton"));
383 QToolTip::add(m_pApplybutton, trUtf8("Apply changes immediately", "Comment for toolTip Applybutton"));
384 Q3WhatsThis::add(m_pApplybutton, trUtf8("The apply button applies changes immediately", "Comment for whatsThis Applybutton"));
386 m_pCancelbutton->setText(trUtf8("Cancel", "Comment for Cancelbutton"));
387 QToolTip::add(m_pCancelbutton, trUtf8("Cancel any changes", "Comment for toolTip Cancelbutton"));
388 Q3WhatsThis::add(m_pCancelbutton, trUtf8("The cancel button cancels any changes", "Comment for whatsThis Cancelbutton"));
390 m_pGenbox->setTitle(trUtf8("File and directory paths", "Comment for Genbox"));
391 m_pAcctlabel->setText(trUtf8("Accounts path", "Comment for Acctlabel"));
392 m_pEventlabel->setText(trUtf8("Events directory", "Comment for Eventlabel"));
393 m_pUserlabel->setText(trUtf8("User name", "Comment for Userlabel"));
394 m_pHomelabel->setText(trUtf8("Home directory", "Comment for Homelabel"));
395 QToolTip::add(m_pAcctline, trUtf8("The accounts file pathname", "Comment for toolTip Acctline"));
396 QToolTip::add(m_pEventline, trUtf8("The default events directory", "Comment for toolTip Eventline"));
397 QToolTip::add(m_pUserline, trUtf8("The user name", "Comment for toolTip Userline"));
398 QToolTip::add(m_pHomeline, trUtf8("The home directory", "Comment for toolTip Homeline"));
400 m_pRembox->setTitle(trUtf8("Remote host names", "Comment for Rembox"));
401 m_pCorbalabel->setText(trUtf8("CORBA host", "Comment for Corbalabel"));
402 m_pSoaplabel->setText(trUtf8("SOAP host", "Comment for Soaplabel"));
403 QToolTip::add(m_pCorbaline, trUtf8("The CORBA host name", "Comment for toolTip Corbaline"));
404 QToolTip::add(m_pSoapline, trUtf8("The SOAP host name", "Comment for toolTip Soapline"));
406 m_pCorbacheck->setText(trUtf8("Enable IIOP transmission", "Comment for Corbacheck"));
407 QToolTip::add(m_pCorbacheck, trUtf8("Will enable transmission over IIOP", "Comment for toolTip Corbacheck"));
408 Q3WhatsThis::add(m_pCorbacheck, trUtf8("Check this box to enable transmission to a CORBA host", "Comment whatsThis for Corbacheck"));
410 m_pSoapcheck->setText(trUtf8("Enable SOAP transmission", "Comment for Soapcheck"));
411 QToolTip::add(m_pSoapcheck, trUtf8("Will enable transmission over SOAP", "Comment for toolTip Soapcheck"));
412 Q3WhatsThis::add(m_pSoapcheck, trUtf8("Check this box to enable transmission to a SOAP host", "Comment whatsThis for Soapcheck"));
414 m_pShadebox->setTitle(trUtf8("Row shading", "Comment for Shadebox"));
415 m_pThemebox->setTitle(trUtf8("Skin themes", "Comment for Themebox"));
417 m_pLightlab->setText(trUtf8("Light", "Comment for Lightlabel"));
418 m_pDarklab->setText(trUtf8("Dark", "Comment for Darklabel"));
419 m_pRevertlab->setText(trUtf8("Revert", "Comment for Revertlabel"));
420 QToolTip::add(m_pLightbutt, trUtf8("Light row shading colour", "Comment for tooltip Lightbutt"));
421 Q3WhatsThis::add(m_pLightbutt, trUtf8("The Light button sets the light row shading colour.", "Comment for whatsThis Lightbutt"));
422 QToolTip::add(m_pDarkbutt, trUtf8("Dark row shading colour", "Comment for tooltip Darkbutt"));
423 Q3WhatsThis::add(m_pDarkbutt, trUtf8("The Dark button sets the light row shading colour.", "Comment for whatsThis Darkbutt"));
425 m_pStylegroup->setTitle(trUtf8("Available styles", "Comment for Stylebuttons"));
426 m_pReportgroup->setTitle(trUtf8("Report options", "Comment for Reportbox"));
427 m_pSwitchgroup->setTitle(trUtf8("Other options", "Comment for Switchbox"));
428 }