as_panel.cpp

changeset 4
c920180c879a
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:ebbdfc782200 1:a751f56c245e
1 // 1 //
2 // OSSP asgui - Accounting system graphical user interface 2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 3 // Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 4 // Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 5 // Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 6 // Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
7 // 7 //
8 // This file is part of OSSP asgui, an accounting system graphical user 8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 9 // interface which can be found at http://asgui.europalab.com/.
10 // 10 //
11 // Permission to use, copy, modify, and distribute this software for 11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that 12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all 13 // the above copyright notice and this permission notice appear in all
14 // copies. 14 // copies.
27 // SUCH DAMAGE. 27 // SUCH DAMAGE.
28 // 28 //
29 // as_panel.cpp: ISO C++ implementation 29 // as_panel.cpp: ISO C++ implementation
30 // 30 //
31 31
32 #define QT3_SUPPORT
33
32 #include <vector> 34 #include <vector>
33 35
34 #include <qimage.h> 36 #include <qimage.h>
37
38 //Added by qt3to4:
39 #include <Q3HBoxLayout>
40 #include <Q3GridLayout>
41 #include <QLabel>
42 #include <Q3VBoxLayout>
35 43
36 #include "as_panel.h" 44 #include "as_panel.h"
37 #include "as_generic.h" 45 #include "as_generic.h"
38 #include "as_const.h" 46 #include "as_const.h"
39 47
44 // name 'kszName' and widget flags set to 'Flags'. 52 // name 'kszName' and widget flags set to 'Flags'.
45 // 53 //
46 // The dialog will by default be modal, unless you set 'bModal' to 54 // The dialog will by default be modal, unless you set 'bModal' to
47 // false to construct a modeless dialog. 55 // false to construct a modeless dialog.
48 // 56 //
49 Prefpanel::Prefpanel(QWidget *pParent, const char *kszName, bool bModal, WFlags Flags) 57 Prefpanel::Prefpanel(QWidget *pParent, const char *kszName, bool bModal, Qt::WFlags Flags)
50 : QDialog(pParent, kszName, bModal, Flags) 58 : QDialog(pParent, kszName, bModal, Flags)
51 { 59 {
52 if (!kszName) 60 if (!kszName)
53 this->setName("Prefpanel"); 61 this->setName("Prefpanel");
54 62
58 66
59 // Initialize our button colours 67 // Initialize our button colours
60 m_pLight = new QColor(); 68 m_pLight = new QColor();
61 m_pDark = new QColor(); 69 m_pDark = new QColor();
62 70
63 m_pVlayout = new QVBoxLayout(this, 11, 6, "Formlayout"); 71 m_pVlayout = new Q3VBoxLayout(this, 11, 6, "Formlayout");
64 m_pTabselect = new QTabWidget(this, "Tabselector"); 72 m_pTabselect = new QTabWidget(this, "Tabselector");
65 73
66 // Start of style chooser UI pieces 74 // Start of style chooser UI pieces
67 m_pBoolpage = new QWidget(m_pTabselect, "Tabpage"); 75 m_pBoolpage = new QWidget(m_pTabselect, "Tabpage");
68 m_pBoolayout = new QHBoxLayout(m_pBoolpage, 11, 6, "Genlayout"); 76 m_pBoolayout = new Q3HBoxLayout(m_pBoolpage, 11, 6, "Genlayout");
69 m_pBinlayout = new QVBoxLayout(0, 0, 6, "Binarylayout"); 77 m_pBinlayout = new Q3VBoxLayout(0, 0, 6, "Binarylayout");
70 m_pStylegroup = new QButtonGroup(m_pBoolpage, "Stylebuttongroup"); 78 m_pStylegroup = new Q3ButtonGroup(m_pBoolpage, "Stylebuttongroup");
71 m_pStylegroup->setColumnLayout(0, Qt::Vertical); 79 m_pStylegroup->setColumnLayout(0, Qt::Vertical);
72 m_pStylegroup->layout()->setSpacing(6); 80 m_pStylegroup->layout()->setSpacing(6);
73 m_pStylegroup->layout()->setMargin(11); 81 m_pStylegroup->layout()->setMargin(11);
74 m_pStylegroup->setExclusive(true); 82 m_pStylegroup->setExclusive(true);
75 83
76 m_pStylelay = new QVBoxLayout(m_pStylegroup->layout()); 84 m_pStylelay = new Q3VBoxLayout(m_pStylegroup->layout());
77 m_pStylelay->setAlignment(Qt::AlignTop); 85 m_pStylelay->setAlignment(Qt::AlignTop);
78 86
79 // Block to handle a vector of radio buttons 87 // Block to handle a vector of radio buttons
80 int nIter = 0; 88 int nIter = 0;
81 QStringList Styles = QStyleFactory::keys(); 89 QStringList Styles = QStyleFactory::keys();
89 Stylevector[nIter]->setText(trUtf8(*Stylename, "Comment for " + *Stylename)); 97 Stylevector[nIter]->setText(trUtf8(*Stylename, "Comment for " + *Stylename));
90 Stylevector[nIter]->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding, 98 Stylevector[nIter]->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding,
91 Stylevector[nIter]->sizePolicy().hasHeightForWidth()); 99 Stylevector[nIter]->sizePolicy().hasHeightForWidth());
92 QToolTip::add(Stylevector[nIter], trUtf8("The " + *Stylename + " style", 100 QToolTip::add(Stylevector[nIter], trUtf8("The " + *Stylename + " style",
93 "Comment for toolTip " + *Stylename)); 101 "Comment for toolTip " + *Stylename));
94 QWhatsThis::add(Stylevector[nIter], trUtf8("Click this button to enjoy the style of the " 102 Q3WhatsThis::add(Stylevector[nIter], trUtf8("Click this button to enjoy the style of the "
95 + *Stylename + " user interface", "Comment whatsThis for " + *Stylename)); 103 + *Stylename + " user interface", "Comment whatsThis for " + *Stylename));
96 m_pStylelay->addWidget(Stylevector[nIter]); 104 m_pStylelay->addWidget(Stylevector[nIter]);
97 nIter++; 105 nIter++;
98 } 106 }
99 107
100 // Start of binary option UI pieces (like make backups, yes or no) 108 // Start of binary option UI pieces (like make backups, yes or no)
101 m_pSwitchgroup = new QButtonGroup(m_pBoolpage, "Switchbuttongroup"); 109 m_pSwitchgroup = new Q3ButtonGroup(m_pBoolpage, "Switchbuttongroup");
102 m_pSwitchgroup->setColumnLayout(0, Qt::Vertical); 110 m_pSwitchgroup->setColumnLayout(0, Qt::Vertical);
103 m_pSwitchgroup->layout()->setSpacing(6); 111 m_pSwitchgroup->layout()->setSpacing(6);
104 m_pSwitchgroup->layout()->setMargin(11); 112 m_pSwitchgroup->layout()->setMargin(11);
105 m_pSwitchgroup->setExclusive(false); 113 m_pSwitchgroup->setExclusive(false);
106 m_pSwitchlay = new QVBoxLayout(m_pSwitchgroup->layout()); 114 m_pSwitchlay = new Q3VBoxLayout(m_pSwitchgroup->layout());
107 m_pSwitchlay->setAlignment(Qt::AlignTop); 115 m_pSwitchlay->setAlignment(Qt::AlignTop);
108 116
109 // Optional file backups with hard coded extension .bak 117 // Optional file backups with hard coded extension .bak
110 m_pBackupcheck = new QCheckBox(m_pSwitchgroup, "Backupbutton"); 118 m_pBackupcheck = new QCheckBox(m_pSwitchgroup, "Backupbutton");
111 m_pBackupcheck->setText(trUtf8("Make .bak file on save", "Comment for Backupcheck")); 119 m_pBackupcheck->setText(trUtf8("Make .bak file on save", "Comment for Backupcheck"));
112 QToolTip::add(m_pBackupcheck, trUtf8("Make a .bak file when saving", "Comment for toolTip Backupcheck")); 120 QToolTip::add(m_pBackupcheck, trUtf8("Make a .bak file when saving", "Comment for toolTip Backupcheck"));
113 QWhatsThis::add(m_pBackupcheck, trUtf8("Check this box to enable automatic file backups when overwriting an existing file", "Comment whatsThis for Backupcheck")); 121 Q3WhatsThis::add(m_pBackupcheck, trUtf8("Check this box to enable automatic file backups when overwriting an existing file", "Comment whatsThis for Backupcheck"));
114 m_pSwitchlay->addWidget(m_pBackupcheck); 122 m_pSwitchlay->addWidget(m_pBackupcheck);
115 123
116 // Optional easy filename appending with hard coded extension .as 124 // Optional easy filename appending with hard coded extension .as
117 m_pExtendcheck = new QCheckBox(m_pSwitchgroup, "Extensionbutton"); 125 m_pExtendcheck = new QCheckBox(m_pSwitchgroup, "Extensionbutton");
118 m_pExtendcheck->setText(trUtf8("Append .as extension", "Comment for Extensioncheck")); 126 m_pExtendcheck->setText(trUtf8("Append .as extension", "Comment for Extensioncheck"));
119 QToolTip::add(m_pExtendcheck, trUtf8("Use the .as file extension", "Comment for toolTip Extensioncheck")); 127 QToolTip::add(m_pExtendcheck, trUtf8("Use the .as file extension", "Comment for toolTip Extensioncheck"));
120 QWhatsThis::add(m_pExtendcheck, trUtf8("Check this box to automatically append '.as' to new filenames when saving", "Comment whatsThis for Extensioncheck")); 128 Q3WhatsThis::add(m_pExtendcheck, trUtf8("Check this box to automatically append '.as' to new filenames when saving", "Comment whatsThis for Extensioncheck"));
121 m_pSwitchlay->addWidget(m_pExtendcheck); 129 m_pSwitchlay->addWidget(m_pExtendcheck);
122 130
123 // Start of report option UI pieces (like detailed report listings) 131 // Start of report option UI pieces (like detailed report listings)
124 m_pReportgroup = new QButtonGroup(m_pBoolpage, "Reportbuttongroup"); 132 m_pReportgroup = new Q3ButtonGroup(m_pBoolpage, "Reportbuttongroup");
125 m_pReportgroup->setColumnLayout(0, Qt::Vertical); 133 m_pReportgroup->setColumnLayout(0, Qt::Vertical);
126 m_pReportgroup->layout()->setSpacing(6); 134 m_pReportgroup->layout()->setSpacing(6);
127 m_pReportgroup->layout()->setMargin(11); 135 m_pReportgroup->layout()->setMargin(11);
128 m_pReportgroup->setExclusive(false); 136 m_pReportgroup->setExclusive(false);
129 m_pReportlay = new QVBoxLayout(m_pReportgroup->layout()); 137 m_pReportlay = new Q3VBoxLayout(m_pReportgroup->layout());
130 m_pReportlay->setAlignment(Qt::AlignTop); 138 m_pReportlay->setAlignment(Qt::AlignTop);
131 139
132 // Optional detailed report listings write all events in range 140 // Optional detailed report listings write all events in range
133 m_pDetailcheck = new QCheckBox(m_pReportgroup, "Detailistbutton"); 141 m_pDetailcheck = new QCheckBox(m_pReportgroup, "Detailistbutton");
134 m_pDetailcheck->setText(trUtf8("Detailed listing", "Comment for Detailcheck")); 142 m_pDetailcheck->setText(trUtf8("Detailed listing", "Comment for Detailcheck"));
135 QToolTip::add(m_pDetailcheck, trUtf8("Write detailed event listings", "Comment for toolTip Detailcheck")); 143 QToolTip::add(m_pDetailcheck, trUtf8("Write detailed event listings", "Comment for toolTip Detailcheck"));
136 QWhatsThis::add(m_pDetailcheck, trUtf8("Check this box to enable writing of detailed event listings to the local report", "Comment whatsThis for Detailcheck")); 144 Q3WhatsThis::add(m_pDetailcheck, trUtf8("Check this box to enable writing of detailed event listings to the local report", "Comment whatsThis for Detailcheck"));
137 m_pReportlay->addWidget(m_pDetailcheck); 145 m_pReportlay->addWidget(m_pDetailcheck);
138 146
139 // Optional signature line in report footer 147 // Optional signature line in report footer
140 m_pSigncheck = new QCheckBox(m_pReportgroup, "Signaturebutton"); 148 m_pSigncheck = new QCheckBox(m_pReportgroup, "Signaturebutton");
141 m_pSigncheck->setText(trUtf8("Signature line", "Comment for Signaturecheck")); 149 m_pSigncheck->setText(trUtf8("Signature line", "Comment for Signaturecheck"));
142 QToolTip::add(m_pSigncheck, trUtf8("Append a signature line", "Comment for toolTip Signaturecheck")); 150 QToolTip::add(m_pSigncheck, trUtf8("Append a signature line", "Comment for toolTip Signaturecheck"));
143 QWhatsThis::add(m_pSigncheck, trUtf8("Check this box to write a signature line to the report footer", "Comment whatsThis for Signaturecheck")); 151 Q3WhatsThis::add(m_pSigncheck, trUtf8("Check this box to write a signature line to the report footer", "Comment whatsThis for Signaturecheck"));
144 m_pReportlay->addWidget(m_pSigncheck); 152 m_pReportlay->addWidget(m_pSigncheck);
145 m_pBoolayout->addWidget(m_pStylegroup); 153 m_pBoolayout->addWidget(m_pStylegroup);
146 m_pBinlayout->addWidget(m_pReportgroup); 154 m_pBinlayout->addWidget(m_pReportgroup);
147 m_pBinlayout->addWidget(m_pSwitchgroup); 155 m_pBinlayout->addWidget(m_pSwitchgroup);
148 m_pBoolayout->addLayout(m_pBinlayout); 156 m_pBoolayout->addLayout(m_pBinlayout);
149 m_pTabselect->insertTab(m_pBoolpage, ""); 157 m_pTabselect->insertTab(m_pBoolpage, "");
150 158
151 // Start of paths page UI pieces 159 // Start of paths page UI pieces
152 m_pGeneralpage = new QWidget(m_pTabselect, "Generalpage"); 160 m_pGeneralpage = new QWidget(m_pTabselect, "Generalpage");
153 m_pGenlayout = new QHBoxLayout(m_pGeneralpage, 11, 6, "Genlayout"); 161 m_pGenlayout = new Q3HBoxLayout(m_pGeneralpage, 11, 6, "Genlayout");
154 m_pGenbox = new QGroupBox(m_pGeneralpage, "Groupboxlayout"); 162 m_pGenbox = new Q3GroupBox(m_pGeneralpage, "Groupboxlayout");
155 m_pGenbox->setColumnLayout(0, Qt::Vertical); 163 m_pGenbox->setColumnLayout(0, Qt::Vertical);
156 m_pGenbox->layout()->setSpacing(6); 164 m_pGenbox->layout()->setSpacing(6);
157 m_pGenbox->layout()->setMargin(11); 165 m_pGenbox->layout()->setMargin(11);
158 m_pGenboxlay = new QHBoxLayout(m_pGenbox->layout()); 166 m_pGenboxlay = new Q3HBoxLayout(m_pGenbox->layout());
159 m_pGenboxlay->setAlignment(Qt::AlignTop); 167 m_pGenboxlay->setAlignment(Qt::AlignTop);
160 168
161 // Start of path text entry preferences UI pieces 169 // Start of path text entry preferences UI pieces
162 m_pGeninner = new QGridLayout(0, 4, 2, 0, 16, "Innergrid"); 170 m_pGeninner = new Q3GridLayout(0, 4, 2, 0, 16, "Innergrid");
163 m_pAcctlabel = new QLabel(m_pGenbox, "Accfilelabel"); 171 m_pAcctlabel = new QLabel(m_pGenbox, "Accfilelabel");
164 m_pGeninner->addWidget(m_pAcctlabel, 0, 0); 172 m_pGeninner->addWidget(m_pAcctlabel, 0, 0);
165 m_pAcctline = new QLineEdit(m_pGenbox, "Accountline"); 173 m_pAcctline = new QLineEdit(m_pGenbox, "Accountline");
166 m_pGeninner->addWidget(m_pAcctline, 0, 1); 174 m_pGeninner->addWidget(m_pAcctline, 0, 1);
167 m_pEventlabel = new QLabel(m_pGenbox, "Evntdirlabel"); 175 m_pEventlabel = new QLabel(m_pGenbox, "Evntdirlabel");
181 m_pGenlayout->addWidget(m_pGenbox); 189 m_pGenlayout->addWidget(m_pGenbox);
182 m_pTabselect->insertTab(m_pGeneralpage, ""); 190 m_pTabselect->insertTab(m_pGeneralpage, "");
183 191
184 // Start of remote page UI pieces 192 // Start of remote page UI pieces
185 m_pRemotepage = new QWidget(m_pTabselect, "Remotepage"); 193 m_pRemotepage = new QWidget(m_pTabselect, "Remotepage");
186 m_pRemlayout = new QHBoxLayout(m_pRemotepage, 11, 6, "Remlayout"); 194 m_pRemlayout = new Q3HBoxLayout(m_pRemotepage, 11, 6, "Remlayout");
187 m_pRembox = new QGroupBox(m_pRemotepage, "Remoteboxlayout"); 195 m_pRembox = new Q3GroupBox(m_pRemotepage, "Remoteboxlayout");
188 196
189 m_pRembox->setColumnLayout(0, Qt::Vertical); 197 m_pRembox->setColumnLayout(0, Qt::Vertical);
190 m_pRembox->layout()->setSpacing(6); 198 m_pRembox->layout()->setSpacing(6);
191 m_pRembox->layout()->setMargin(11); 199 m_pRembox->layout()->setMargin(11);
192 m_pRemboxlay = new QHBoxLayout(m_pRembox->layout()); 200 m_pRemboxlay = new Q3HBoxLayout(m_pRembox->layout());
193 m_pRemboxlay->setAlignment(Qt::AlignTop); 201 m_pRemboxlay->setAlignment(Qt::AlignTop);
194 202
195 // Start of RPC preferences UI pieces 203 // Start of RPC preferences UI pieces
196 m_pReminner = new QGridLayout(0, 5, 2, 0, 12, "Innergrid"); 204 m_pReminner = new Q3GridLayout(0, 5, 2, 0, 12, "Innergrid");
197 m_pCorbalabel = new QLabel(m_pRembox, "Corbalabel"); 205 m_pCorbalabel = new QLabel(m_pRembox, "Corbalabel");
198 m_pReminner->addWidget(m_pCorbalabel, 0, 0); 206 m_pReminner->addWidget(m_pCorbalabel, 0, 0);
199 m_pCorbaline = new QLineEdit(m_pRembox, "Corbaline"); 207 m_pCorbaline = new QLineEdit(m_pRembox, "Corbaline");
200 m_pReminner->addWidget(m_pCorbaline, 0, 1); 208 m_pReminner->addWidget(m_pCorbaline, 0, 1);
201 m_pCorbacheck = new QCheckBox(m_pRembox, "Corbacheckbox"); 209 m_pCorbacheck = new QCheckBox(m_pRembox, "Corbacheckbox");
213 m_pRemlayout->addWidget(m_pRembox); 221 m_pRemlayout->addWidget(m_pRembox);
214 m_pTabselect->insertTab(m_pRemotepage, ""); 222 m_pTabselect->insertTab(m_pRemotepage, "");
215 223
216 // Start of color page UI pieces 224 // Start of color page UI pieces
217 m_pColourpage = new QWidget(m_pTabselect, "Colourpage"); 225 m_pColourpage = new QWidget(m_pTabselect, "Colourpage");
218 m_pColourlayout = new QHBoxLayout(m_pColourpage, 11, 6, "Colourlayout"); 226 m_pColourlayout = new Q3HBoxLayout(m_pColourpage, 11, 6, "Colourlayout");
219 m_pShadebox = new QGroupBox(m_pColourpage, "Shadegroupbox"); 227 m_pShadebox = new Q3GroupBox(m_pColourpage, "Shadegroupbox");
220 m_pShadebox->setColumnLayout(0, Qt::Horizontal); 228 m_pShadebox->setColumnLayout(0, Qt::Horizontal);
221 m_pShadebox->layout()->setSpacing(6); 229 m_pShadebox->layout()->setSpacing(6);
222 m_pShadebox->layout()->setMargin(11); 230 m_pShadebox->layout()->setMargin(11);
223 m_pShadeboxlay = new QVBoxLayout(m_pShadebox->layout()); 231 m_pShadeboxlay = new Q3VBoxLayout(m_pShadebox->layout());
224 m_pShadeboxlay->setAlignment(Qt::AlignTop); 232 m_pShadeboxlay->setAlignment(Qt::AlignTop);
225 233
226 m_pShadelayout = new QGridLayout(0, 2, 2, 6, 16, "Shadelayout"); 234 m_pShadelayout = new Q3GridLayout(0, 2, 2, 6, 16, "Shadelayout");
227 m_pLightlab = new QLabel(m_pShadebox, "Lightlabel"); 235 m_pLightlab = new QLabel(m_pShadebox, "Lightlabel");
228 m_pLightlab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth()); 236 m_pLightlab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
229 m_pShadelayout->addWidget(m_pLightlab, 0, 0); 237 m_pShadelayout->addWidget(m_pLightlab, 0, 0);
230 m_pLightbutt = new QToolButton(m_pShadebox, "Lightbutton"); 238 m_pLightbutt = new QToolButton(m_pShadebox, "Lightbutton");
231 m_pLightbutt->setFocusPolicy(QToolButton::TabFocus); 239 m_pLightbutt->setFocusPolicy(Qt::TabFocus);
232 m_pLightbutt->setCursor(QCursor(13)); 240 m_pLightbutt->setCursor(QCursor(13));
233 m_pShadelayout->addWidget(m_pLightbutt, 0, 1); 241 m_pShadelayout->addWidget(m_pLightbutt, 0, 1);
234 242
235 m_pDarklab = new QLabel(m_pShadebox, "Darklabel"); 243 m_pDarklab = new QLabel(m_pShadebox, "Darklabel");
236 m_pDarklab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth()); 244 m_pDarklab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
237 m_pShadelayout->addWidget(m_pDarklab, 1, 0); 245 m_pShadelayout->addWidget(m_pDarklab, 1, 0);
238 m_pDarkbutt = new QToolButton(m_pShadebox, "Darkbutton"); 246 m_pDarkbutt = new QToolButton(m_pShadebox, "Darkbutton");
239 m_pDarkbutt->setFocusPolicy(QToolButton::TabFocus); 247 m_pDarkbutt->setFocusPolicy(Qt::TabFocus);
240 m_pDarkbutt->setCursor(QCursor(13)); 248 m_pDarkbutt->setCursor(QCursor(13));
241 m_pShadelayout->addWidget(m_pDarkbutt, 1, 1); 249 m_pShadelayout->addWidget(m_pDarkbutt, 1, 1);
242 250
243 m_pRevertlab = new QLabel(m_pShadebox, "Revertlabel"); 251 m_pRevertlab = new QLabel(m_pShadebox, "Revertlabel");
244 m_pShadelayout->addWidget(m_pRevertlab, 2, 0); 252 m_pShadelayout->addWidget(m_pRevertlab, 2, 0);
245 m_pRevertbutt = new QToolButton(m_pShadebox, "Revertbutton"); 253 m_pRevertbutt = new QToolButton(m_pShadebox, "Revertbutton");
246 m_pRevertbutt->setFocusPolicy(QToolButton::TabFocus); 254 m_pRevertbutt->setFocusPolicy(Qt::TabFocus);
247 // m_pRevertbutt->setIconSet(QIconSet(QPixmap(s_kpcRevcolour_xpm))); 255 // m_pRevertbutt->setIconSet(QIconSet(QPixmap(s_kpcRevcolour_xpm)));
248 m_pRevertbutt->setCursor(QCursor(13)); 256 m_pRevertbutt->setCursor(QCursor(13));
249 m_pShadelayout->addWidget(m_pRevertbutt, 2, 1); 257 m_pShadelayout->addWidget(m_pRevertbutt, 2, 1);
250 258
251 m_pThemebox = new QGroupBox(m_pColourpage, "Themegroupbox"); 259 m_pThemebox = new Q3GroupBox(m_pColourpage, "Themegroupbox");
252 m_pThemebox->setColumnLayout(0, Qt::Vertical); 260 m_pThemebox->setColumnLayout(0, Qt::Vertical);
253 m_pThemebox->layout()->setSpacing(6); 261 m_pThemebox->layout()->setSpacing(6);
254 m_pThemebox->layout()->setMargin(11); 262 m_pThemebox->layout()->setMargin(11);
255 m_pThemeboxlay = new QVBoxLayout(m_pThemebox->layout()); 263 m_pThemeboxlay = new Q3VBoxLayout(m_pThemebox->layout());
256 264
257 QLabel *pPlaceholder = new QLabel(m_pThemebox, "Placeholderlabel"); 265 QLabel *pPlaceholder = new QLabel(m_pThemebox, "Placeholderlabel");
258 pPlaceholder->setText(trUtf8("Reserved for future use", "Comment for Placeholderlabel")); 266 pPlaceholder->setText(trUtf8("Reserved for future use", "Comment for Placeholderlabel"));
259 m_pThemeboxlay->addWidget(pPlaceholder, 1, Qt::AlignCenter); 267 m_pThemeboxlay->addWidget(pPlaceholder, 1, Qt::AlignCenter);
260 268
269 277
270 // Finally add the damn pages to the tab selector widget! 278 // Finally add the damn pages to the tab selector widget!
271 m_pVlayout->addWidget(m_pTabselect); 279 m_pVlayout->addWidget(m_pTabselect);
272 280
273 // Start of bottom buttons for aknowlegement and commital of changes 281 // Start of bottom buttons for aknowlegement and commital of changes
274 m_pButtlay = new QHBoxLayout(0, 0, 12, "Buttonlayout"); 282 m_pButtlay = new Q3HBoxLayout(0, 0, 12, "Buttonlayout");
275 m_pOkaybutton = new QPushButton(this, "Okaybutton"); 283 m_pOkaybutton = new QPushButton(this, "Okaybutton");
276 m_pOkaybutton->setMinimumWidth(120); 284 m_pOkaybutton->setMinimumWidth(120);
277 m_pOkaybutton->setPaletteBackgroundColor(QColor(202, 194, 182)); 285 m_pOkaybutton->setPaletteBackgroundColor(QColor(202, 194, 182));
278 m_pOkaybutton->setCursor(QCursor(13)); 286 m_pOkaybutton->setCursor(QCursor(13));
279 m_pButtlay->addWidget(m_pOkaybutton); 287 m_pButtlay->addWidget(m_pOkaybutton);
369 m_pTabselect->changeTab(m_pRemotepage, trUtf8("Hosts")); 377 m_pTabselect->changeTab(m_pRemotepage, trUtf8("Hosts"));
370 m_pTabselect->changeTab(m_pColourpage, trUtf8("Colour")); 378 m_pTabselect->changeTab(m_pColourpage, trUtf8("Colour"));
371 379
372 m_pOkaybutton->setText(trUtf8("Okay", "Comment for Okaybutton")); 380 m_pOkaybutton->setText(trUtf8("Okay", "Comment for Okaybutton"));
373 QToolTip::add(m_pOkaybutton, trUtf8("Applies and saves changes", "Comment for tooltip Okaybutton")); 381 QToolTip::add(m_pOkaybutton, trUtf8("Applies and saves changes", "Comment for tooltip Okaybutton"));
374 QWhatsThis::add(m_pOkaybutton, trUtf8("The okay button applies and saves changes", "Comment for whatsThis Okaybutton")); 382 Q3WhatsThis::add(m_pOkaybutton, trUtf8("The okay button applies and saves changes", "Comment for whatsThis Okaybutton"));
375 383
376 m_pApplybutton->setText(trUtf8("Apply", "Comment for Applybutton")); 384 m_pApplybutton->setText(trUtf8("Apply", "Comment for Applybutton"));
377 QToolTip::add(m_pApplybutton, trUtf8("Apply changes immediately", "Comment for toolTip Applybutton")); 385 QToolTip::add(m_pApplybutton, trUtf8("Apply changes immediately", "Comment for toolTip Applybutton"));
378 QWhatsThis::add(m_pApplybutton, trUtf8("The apply button applies changes immediately", "Comment for whatsThis Applybutton")); 386 Q3WhatsThis::add(m_pApplybutton, trUtf8("The apply button applies changes immediately", "Comment for whatsThis Applybutton"));
379 387
380 m_pCancelbutton->setText(trUtf8("Cancel", "Comment for Cancelbutton")); 388 m_pCancelbutton->setText(trUtf8("Cancel", "Comment for Cancelbutton"));
381 QToolTip::add(m_pCancelbutton, trUtf8("Cancel any changes", "Comment for toolTip Cancelbutton")); 389 QToolTip::add(m_pCancelbutton, trUtf8("Cancel any changes", "Comment for toolTip Cancelbutton"));
382 QWhatsThis::add(m_pCancelbutton, trUtf8("The cancel button cancels any changes", "Comment for whatsThis Cancelbutton")); 390 Q3WhatsThis::add(m_pCancelbutton, trUtf8("The cancel button cancels any changes", "Comment for whatsThis Cancelbutton"));
383 391
384 m_pGenbox->setTitle(trUtf8("File and directory paths", "Comment for Genbox")); 392 m_pGenbox->setTitle(trUtf8("File and directory paths", "Comment for Genbox"));
385 m_pAcctlabel->setText(trUtf8("Accounts path", "Comment for Acctlabel")); 393 m_pAcctlabel->setText(trUtf8("Accounts path", "Comment for Acctlabel"));
386 m_pEventlabel->setText(trUtf8("Events directory", "Comment for Eventlabel")); 394 m_pEventlabel->setText(trUtf8("Events directory", "Comment for Eventlabel"));
387 m_pUserlabel->setText(trUtf8("User name", "Comment for Userlabel")); 395 m_pUserlabel->setText(trUtf8("User name", "Comment for Userlabel"));
397 QToolTip::add(m_pCorbaline, trUtf8("The CORBA host name", "Comment for toolTip Corbaline")); 405 QToolTip::add(m_pCorbaline, trUtf8("The CORBA host name", "Comment for toolTip Corbaline"));
398 QToolTip::add(m_pSoapline, trUtf8("The SOAP host name", "Comment for toolTip Soapline")); 406 QToolTip::add(m_pSoapline, trUtf8("The SOAP host name", "Comment for toolTip Soapline"));
399 407
400 m_pCorbacheck->setText(trUtf8("Enable IIOP transmission", "Comment for Corbacheck")); 408 m_pCorbacheck->setText(trUtf8("Enable IIOP transmission", "Comment for Corbacheck"));
401 QToolTip::add(m_pCorbacheck, trUtf8("Will enable transmission over IIOP", "Comment for toolTip Corbacheck")); 409 QToolTip::add(m_pCorbacheck, trUtf8("Will enable transmission over IIOP", "Comment for toolTip Corbacheck"));
402 QWhatsThis::add(m_pCorbacheck, trUtf8("Check this box to enable transmission to a CORBA host", "Comment whatsThis for Corbacheck")); 410 Q3WhatsThis::add(m_pCorbacheck, trUtf8("Check this box to enable transmission to a CORBA host", "Comment whatsThis for Corbacheck"));
403 411
404 m_pSoapcheck->setText(trUtf8("Enable SOAP transmission", "Comment for Soapcheck")); 412 m_pSoapcheck->setText(trUtf8("Enable SOAP transmission", "Comment for Soapcheck"));
405 QToolTip::add(m_pSoapcheck, trUtf8("Will enable transmission over SOAP", "Comment for toolTip Soapcheck")); 413 QToolTip::add(m_pSoapcheck, trUtf8("Will enable transmission over SOAP", "Comment for toolTip Soapcheck"));
406 QWhatsThis::add(m_pSoapcheck, trUtf8("Check this box to enable transmission to a SOAP host", "Comment whatsThis for Soapcheck")); 414 Q3WhatsThis::add(m_pSoapcheck, trUtf8("Check this box to enable transmission to a SOAP host", "Comment whatsThis for Soapcheck"));
407 415
408 m_pShadebox->setTitle(trUtf8("Row shading", "Comment for Shadebox")); 416 m_pShadebox->setTitle(trUtf8("Row shading", "Comment for Shadebox"));
409 m_pThemebox->setTitle(trUtf8("Skin themes", "Comment for Themebox")); 417 m_pThemebox->setTitle(trUtf8("Skin themes", "Comment for Themebox"));
410 418
411 m_pLightlab->setText(trUtf8("Light", "Comment for Lightlabel")); 419 m_pLightlab->setText(trUtf8("Light", "Comment for Lightlabel"));
412 m_pDarklab->setText(trUtf8("Dark", "Comment for Darklabel")); 420 m_pDarklab->setText(trUtf8("Dark", "Comment for Darklabel"));
413 m_pRevertlab->setText(trUtf8("Revert", "Comment for Revertlabel")); 421 m_pRevertlab->setText(trUtf8("Revert", "Comment for Revertlabel"));
414 QToolTip::add(m_pLightbutt, trUtf8("Light row shading colour", "Comment for tooltip Lightbutt")); 422 QToolTip::add(m_pLightbutt, trUtf8("Light row shading colour", "Comment for tooltip Lightbutt"));
415 QWhatsThis::add(m_pLightbutt, trUtf8("The Light button sets the light row shading colour.", "Comment for whatsThis Lightbutt")); 423 Q3WhatsThis::add(m_pLightbutt, trUtf8("The Light button sets the light row shading colour.", "Comment for whatsThis Lightbutt"));
416 QToolTip::add(m_pDarkbutt, trUtf8("Dark row shading colour", "Comment for tooltip Darkbutt")); 424 QToolTip::add(m_pDarkbutt, trUtf8("Dark row shading colour", "Comment for tooltip Darkbutt"));
417 QWhatsThis::add(m_pDarkbutt, trUtf8("The Dark button sets the light row shading colour.", "Comment for whatsThis Darkbutt")); 425 Q3WhatsThis::add(m_pDarkbutt, trUtf8("The Dark button sets the light row shading colour.", "Comment for whatsThis Darkbutt"));
418 426
419 m_pStylegroup->setTitle(trUtf8("Available styles", "Comment for Stylebuttons")); 427 m_pStylegroup->setTitle(trUtf8("Available styles", "Comment for Stylebuttons"));
420 m_pReportgroup->setTitle(trUtf8("Report options", "Comment for Reportbox")); 428 m_pReportgroup->setTitle(trUtf8("Report options", "Comment for Reportbox"));
421 m_pSwitchgroup->setTitle(trUtf8("Other options", "Comment for Switchbox")); 429 m_pSwitchgroup->setTitle(trUtf8("Other options", "Comment for Switchbox"));
422 } 430 }

mercurial