as_panel.cpp

Thu, 06 Aug 2009 13:04:50 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 06 Aug 2009 13:04:50 +0200
changeset 14
1c58588f9cb6
parent 12
ceb4ba3d2d00
child 15
0e0eb7c91312
permissions
-rw-r--r--

Correct cursor method signatures and explicitly require XML linkage.

     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 #define QT3_SUPPORT
    34 #include <vector>
    36 #include <qimage.h>
    38 //Added by qt3to4:
    39 #include <Q3HBoxLayout>
    40 #include <Q3GridLayout>
    41 #include <QLabel>
    42 #include <Q3VBoxLayout>
    44 #include "as_panel.h"
    45 #include "as_generic.h"
    46 #include "as_const.h"
    48 #include "as_gfx/revcolour.xpm"
    50 //
    51 // Constructs a Prefpanel as a child of 'pParent', with the 
    52 // name 'kszName' and widget flags set to 'Flags'.
    53 //
    54 // The dialog will by default be modal, unless you set 'bModal' to
    55 // false to construct a modeless dialog.
    56 //
    57 Prefpanel::Prefpanel(QWidget *pParent, const char *kszName, bool bModal, Qt::WFlags Flags)
    58     : QDialog(pParent, kszName, bModal, Flags)
    59 {
    60     if (!kszName)
    61         this->setName("Prefpanel");
    63     this->setSizeGripEnabled(false);
    64     this->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)5,
    65         (QSizePolicy::SizeType)5, 0, 0, this->sizePolicy().hasHeightForWidth()));
    67     // Initialize our button colours
    68     m_pLight = new QColor();
    69     m_pDark = new QColor();
    71     m_pVlayout = new Q3VBoxLayout(this, 11, 6, "Formlayout");
    72     m_pTabselect = new QTabWidget(this, "Tabselector");
    74     // Start of style chooser UI pieces
    75     m_pBoolpage = new QWidget(m_pTabselect, "Tabpage");
    76     m_pBoolayout = new Q3HBoxLayout(m_pBoolpage, 11, 6, "Genlayout"); 
    77     m_pBinlayout = new Q3VBoxLayout(0, 0, 6, "Binarylayout"); 
    78     m_pStylegroup = new Q3ButtonGroup(m_pBoolpage, "Stylebuttongroup");
    79     m_pStylegroup->setColumnLayout(0, Qt::Vertical);
    80     m_pStylegroup->layout()->setSpacing(6);
    81     m_pStylegroup->layout()->setMargin(11);
    82     m_pStylegroup->setExclusive(true);
    84     m_pStylelay = new Q3VBoxLayout(m_pStylegroup->layout());
    85     m_pStylelay->setAlignment(Qt::AlignTop);
    87     // Block to handle a vector of radio buttons
    88     int nIter = 0;
    89     QStringList Styles = QStyleFactory::keys();
    90     std::vector<QRadioButton *> Stylevector(Styles.size());
    92     // Discover which interface styles are available, and
    93     // dynamically construct new radio buttons to represent them
    94     for (QStringList::Iterator Stylename = Styles.begin();
    95         Stylename != Styles.end(); Stylename++) {
    96         Stylevector[nIter] = new QRadioButton(m_pStylegroup, *Stylename + "_button");
    97         Stylevector[nIter]->setText(trUtf8(*Stylename, "Comment for " + *Stylename));
    98         Stylevector[nIter]->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding,
    99             Stylevector[nIter]->sizePolicy().hasHeightForWidth());
   100         QToolTip::add(Stylevector[nIter], trUtf8("The " + *Stylename + " style",
   101             "Comment for toolTip " + *Stylename));
   102         Q3WhatsThis::add(Stylevector[nIter], trUtf8("Click this button to enjoy the style of the "
   103             + *Stylename + " user interface", "Comment whatsThis for " + *Stylename));
   104         m_pStylelay->addWidget(Stylevector[nIter]);
   105         nIter++;
   106     }
   108     // Start of binary option UI pieces (like make backups, yes or no)
   109     m_pSwitchgroup = new Q3ButtonGroup(m_pBoolpage, "Switchbuttongroup");
   110     m_pSwitchgroup->setColumnLayout(0, Qt::Vertical);
   111     m_pSwitchgroup->layout()->setSpacing(6);
   112     m_pSwitchgroup->layout()->setMargin(11);
   113     m_pSwitchgroup->setExclusive(false);
   114     m_pSwitchlay = new Q3VBoxLayout(m_pSwitchgroup->layout());
   115     m_pSwitchlay->setAlignment(Qt::AlignTop);
   117     // Optional file backups with hard coded extension .bak
   118     m_pBackupcheck = new QCheckBox(m_pSwitchgroup, "Backupbutton");
   119     m_pBackupcheck->setText(trUtf8("Make .bak file on save", "Comment for Backupcheck"));
   120     QToolTip::add(m_pBackupcheck, trUtf8("Make a .bak file when saving", "Comment for toolTip Backupcheck"));
   121     Q3WhatsThis::add(m_pBackupcheck, trUtf8("Check this box to enable automatic file backups when overwriting an existing file", "Comment whatsThis for Backupcheck"));
   122     m_pSwitchlay->addWidget(m_pBackupcheck);
   124     // Optional easy filename appending with hard coded extension .as
   125     m_pExtendcheck = new QCheckBox(m_pSwitchgroup, "Extensionbutton");
   126     m_pExtendcheck->setText(trUtf8("Append .as extension", "Comment for Extensioncheck"));
   127     QToolTip::add(m_pExtendcheck, trUtf8("Use the .as file extension", "Comment for toolTip Extensioncheck"));
   128     Q3WhatsThis::add(m_pExtendcheck, trUtf8("Check this box to automatically append '.as' to new filenames when saving", "Comment whatsThis for Extensioncheck"));
   129     m_pSwitchlay->addWidget(m_pExtendcheck);
   131     // Start of report option UI pieces (like detailed report listings)
   132     m_pReportgroup = new Q3ButtonGroup(m_pBoolpage, "Reportbuttongroup");
   133     m_pReportgroup->setColumnLayout(0, Qt::Vertical);
   134     m_pReportgroup->layout()->setSpacing(6);
   135     m_pReportgroup->layout()->setMargin(11);
   136     m_pReportgroup->setExclusive(false);
   137     m_pReportlay = new Q3VBoxLayout(m_pReportgroup->layout());
   138     m_pReportlay->setAlignment(Qt::AlignTop);
   140     // Optional detailed report listings write all events in range
   141     m_pDetailcheck = new QCheckBox(m_pReportgroup, "Detailistbutton");
   142     m_pDetailcheck->setText(trUtf8("Detailed listing", "Comment for Detailcheck"));
   143     QToolTip::add(m_pDetailcheck, trUtf8("Write detailed event listings", "Comment for toolTip 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"));
   145     m_pReportlay->addWidget(m_pDetailcheck);
   147     // Optional signature line in report footer
   148     m_pSigncheck = new QCheckBox(m_pReportgroup, "Signaturebutton");
   149     m_pSigncheck->setText(trUtf8("Signature line", "Comment for Signaturecheck"));
   150     QToolTip::add(m_pSigncheck, trUtf8("Append a signature line", "Comment for toolTip Signaturecheck"));
   151     Q3WhatsThis::add(m_pSigncheck, trUtf8("Check this box to write a signature line to the report footer", "Comment whatsThis for Signaturecheck"));
   152     m_pReportlay->addWidget(m_pSigncheck);
   153     m_pBoolayout->addWidget(m_pStylegroup);
   154     m_pBinlayout->addWidget(m_pReportgroup);
   155     m_pBinlayout->addWidget(m_pSwitchgroup);
   156     m_pBoolayout->addLayout(m_pBinlayout);
   157     m_pTabselect->insertTab(m_pBoolpage, "");
   159     // Start of paths page UI pieces
   160     m_pGeneralpage = new QWidget(m_pTabselect, "Generalpage");
   161     m_pGenlayout = new Q3HBoxLayout(m_pGeneralpage, 11, 6, "Genlayout");
   162     m_pGenbox = new Q3GroupBox(m_pGeneralpage, "Groupboxlayout");
   163     m_pGenbox->setColumnLayout(0, Qt::Vertical);
   164     m_pGenbox->layout()->setSpacing(6);
   165     m_pGenbox->layout()->setMargin(11);
   166     m_pGenboxlay = new Q3HBoxLayout(m_pGenbox->layout());
   167     m_pGenboxlay->setAlignment(Qt::AlignTop);
   169     // Start of path text entry preferences UI pieces
   170     m_pGeninner = new Q3GridLayout(0, 4, 2, 0, 16, "Innergrid");
   171     m_pAcctlabel = new QLabel(m_pGenbox, "Accfilelabel");
   172     m_pGeninner->addWidget(m_pAcctlabel, 0, 0);
   173     m_pAcctline = new QLineEdit(m_pGenbox, "Accountline");
   174     m_pGeninner->addWidget(m_pAcctline, 0, 1);
   175     m_pEventlabel = new QLabel(m_pGenbox, "Evntdirlabel");
   176     m_pGeninner->addWidget(m_pEventlabel, 1, 0);
   177     m_pEventline = new QLineEdit(m_pGenbox, "Eventline");
   178     m_pGeninner->addWidget(m_pEventline, 1, 1);
   179     m_pHomelabel = new QLabel(m_pGenbox, "Homelabel");
   180     m_pGeninner->addWidget(m_pHomelabel, 2, 0);
   181     m_pHomeline = new QLineEdit(m_pGenbox, "Homeline");
   182     m_pGeninner->addWidget(m_pHomeline, 2, 1);
   183     m_pUserlabel = new QLabel(m_pGenbox, "Userlabel");
   184     m_pGeninner->addWidget(m_pUserlabel, 3, 0);
   185     m_pUserline = new QLineEdit(m_pGenbox, "Userline");
   186     m_pGeninner->addWidget(m_pUserline, 3, 1);
   187     m_pGenboxlay->addLayout(m_pGeninner);
   189     m_pGenlayout->addWidget(m_pGenbox);
   190     m_pTabselect->insertTab(m_pGeneralpage, "");
   192     // Start of remote page UI pieces
   193     m_pRemotepage = new QWidget(m_pTabselect, "Remotepage");
   194     m_pRemlayout = new Q3HBoxLayout(m_pRemotepage, 11, 6, "Remlayout");
   195     m_pRembox = new Q3GroupBox(m_pRemotepage, "Remoteboxlayout");
   197     m_pRembox->setColumnLayout(0, Qt::Vertical);
   198     m_pRembox->layout()->setSpacing(6);
   199     m_pRembox->layout()->setMargin(11);
   200     m_pRemboxlay = new Q3HBoxLayout(m_pRembox->layout());
   201     m_pRemboxlay->setAlignment(Qt::AlignTop);
   203     // Start of RPC preferences UI pieces
   204     m_pReminner = new Q3GridLayout(0, 5, 2, 0, 12, "Innergrid");
   205     m_pCorbalabel = new QLabel(m_pRembox, "Corbalabel");
   206     m_pReminner->addWidget(m_pCorbalabel, 0, 0);
   207     m_pCorbaline = new QLineEdit(m_pRembox, "Corbaline");
   208     m_pReminner->addWidget(m_pCorbaline, 0, 1);
   209     m_pCorbacheck = new QCheckBox(m_pRembox, "Corbacheckbox");
   210     m_pReminner->addWidget(m_pCorbacheck, 1, 1);
   211     QSpacerItem *Spacey = new QSpacerItem(6, 12, QSizePolicy::Minimum, QSizePolicy::Minimum);
   212     m_pReminner->addItem(Spacey, 2, 0);
   213     m_pSoaplabel = new QLabel(m_pRembox, "Soaplabel");
   214     m_pReminner->addWidget(m_pSoaplabel, 3, 0);
   215     m_pSoapline = new QLineEdit(m_pRembox, "Soapline");
   216     m_pReminner->addWidget(m_pSoapline, 3, 1);
   217     m_pSoapcheck = new QCheckBox(m_pRembox, "Corbacheckbox");
   218     m_pReminner->addWidget(m_pSoapcheck, 4, 1);
   219     m_pRemboxlay->addLayout(m_pReminner);
   221     m_pRemlayout->addWidget(m_pRembox);
   222     m_pTabselect->insertTab(m_pRemotepage, "");
   224     // Start of color page UI pieces
   225     m_pColourpage = new QWidget(m_pTabselect, "Colourpage");
   226     m_pColourlayout = new Q3HBoxLayout(m_pColourpage, 11, 6, "Colourlayout");
   227     m_pShadebox = new Q3GroupBox(m_pColourpage, "Shadegroupbox");
   228     m_pShadebox->setColumnLayout(0, Qt::Horizontal);
   229     m_pShadebox->layout()->setSpacing(6);
   230     m_pShadebox->layout()->setMargin(11);
   231     m_pShadeboxlay = new Q3VBoxLayout(m_pShadebox->layout());
   232     m_pShadeboxlay->setAlignment(Qt::AlignTop);
   234     m_pShadelayout = new Q3GridLayout(0, 2, 2, 6, 16, "Shadelayout");
   235     m_pLightlab = new QLabel(m_pShadebox, "Lightlabel");
   236     m_pLightlab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
   237     m_pShadelayout->addWidget(m_pLightlab, 0, 0);
   238     m_pLightbutt = new QToolButton(m_pShadebox, "Lightbutton");
   239     m_pLightbutt->setFocusPolicy(Qt::TabFocus);
   240     m_pLightbutt->setCursor(QCursor(Qt::PointingHandCursor));
   241     m_pShadelayout->addWidget(m_pLightbutt, 0, 1);
   243     m_pDarklab = new QLabel(m_pShadebox, "Darklabel");
   244     m_pDarklab->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred, this->sizePolicy().hasHeightForWidth());
   245     m_pShadelayout->addWidget(m_pDarklab, 1, 0);
   246     m_pDarkbutt = new QToolButton(m_pShadebox, "Darkbutton");
   247     m_pDarkbutt->setFocusPolicy(Qt::TabFocus);
   248     m_pDarkbutt->setCursor(QCursor(Qt::PointingHandCursor));
   249     m_pShadelayout->addWidget(m_pDarkbutt, 1, 1);
   251     m_pRevertlab = new QLabel(m_pShadebox, "Revertlabel");
   252     m_pShadelayout->addWidget(m_pRevertlab, 2, 0);
   253     m_pRevertbutt = new QToolButton(m_pShadebox, "Revertbutton");
   254     m_pRevertbutt->setFocusPolicy(Qt::TabFocus);
   255 //    m_pRevertbutt->setIconSet(QIconSet(QPixmap(s_kpcRevcolour_xpm)));
   256     m_pRevertbutt->setCursor(QCursor(Qt::PointingHandCursor));
   257     m_pShadelayout->addWidget(m_pRevertbutt, 2, 1);
   259     m_pThemebox = new Q3GroupBox(m_pColourpage, "Themegroupbox");
   260     m_pThemebox->setColumnLayout(0, Qt::Vertical);
   261     m_pThemebox->layout()->setSpacing(6);
   262     m_pThemebox->layout()->setMargin(11);
   263     m_pThemeboxlay = new Q3VBoxLayout(m_pThemebox->layout());
   265     QLabel *pPlaceholder = new QLabel(m_pThemebox, "Placeholderlabel");
   266     pPlaceholder->setText(trUtf8("Reserved for future use", "Comment for Placeholderlabel"));
   267     m_pThemeboxlay->addWidget(pPlaceholder, 1, Qt::AlignCenter);
   269     m_pShadeboxlay->addLayout(m_pShadelayout);
   270     m_pColourlayout->addWidget(m_pShadebox);
   271     m_pColourlayout->addWidget(m_pThemebox);
   272     m_pTabselect->insertTab(m_pColourpage, "");
   274     connect(m_pLightbutt, SIGNAL(clicked(void)), SLOT(shadeLight(void)));
   275     connect(m_pDarkbutt, SIGNAL(clicked(void)), SLOT(shadeDark(void)));
   276     connect(m_pRevertbutt, SIGNAL(clicked(void)), SLOT(shadeRevert(void)));
   278     // Finally add the damn pages to the tab selector widget!
   279     m_pVlayout->addWidget(m_pTabselect);
   281     // Start of bottom buttons for aknowlegement and commital of changes
   282     m_pButtlay = new Q3HBoxLayout(0, 0, 12, "Buttonlayout");
   283     m_pOkaybutton = new QPushButton(this, "Okaybutton");
   284     m_pOkaybutton->setMinimumWidth(120);
   285     m_pOkaybutton->setPaletteBackgroundColor(QColor(202, 194, 182));
   286     m_pOkaybutton->setCursor(QCursor(Qt::PointingHandCursor));
   287     m_pButtlay->addWidget(m_pOkaybutton);
   288     m_pApplybutton = new QPushButton(this, "Applybutton");
   289     m_pApplybutton->setMinimumWidth(120);
   290     m_pApplybutton->setPaletteBackgroundColor(QColor(198, 196, 186));
   291     m_pApplybutton->setCursor(QCursor(Qt::PointingHandCursor));
   292     m_pButtlay->addWidget(m_pApplybutton);
   293 //    QSpacerItem *Spacey = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
   294 //    m_pButtlay->addItem(Spacey);
   295     m_pCancelbutton = new QPushButton(this, "Cancelbutton");
   296     m_pCancelbutton->setMinimumWidth(120);
   297     m_pCancelbutton->setPaletteBackgroundColor(QColor(198, 196, 186));
   298     m_pCancelbutton->setCursor(QCursor(Qt::PointingHandCursor));
   299     m_pButtlay->addWidget(m_pCancelbutton);
   300     m_pCancelbutton->setDefault(true);
   301     m_pVlayout->addLayout(m_pButtlay);
   303     // Connect our signals to slots, accept() and reject() are Qt implicit
   304     connect(m_pOkaybutton, SIGNAL(clicked(void)), SLOT(accept(void)));
   305     connect(m_pApplybutton, SIGNAL(clicked(void)), SIGNAL(applied(void)));
   306     connect(m_pCancelbutton, SIGNAL(clicked(void)), SLOT(reject(void)));
   307     connect(m_pCorbacheck, SIGNAL(toggled(bool)), SLOT(enableCorba(bool)));
   308     connect(m_pSoapcheck, SIGNAL(toggled(bool)), SLOT(enableSoap(bool)));
   309     this->textChange();
   310     this->resize(QSize(400, 264).expandedTo(minimumSizeHint()));
   311 }
   313 //
   314 // Sets the light shading colour for rows
   315 //
   316 void Prefpanel::shadeLight(void)
   317 {
   318     QColorDialog::setCustomColor(0, this->getRevlight()->rgb());
   319     QColorDialog::setCustomColor(1, this->getRevdark()->rgb());
   320     QColorDialog::setCustomColor(2, this->getAltlight()->rgb());
   321     QColorDialog::setCustomColor(3, this->getAltdark()->rgb());
   322     QColor Colortemp = QColorDialog::getColor(*m_pLight);
   323     if (Colortemp.isValid()) {
   324         delete m_pLight;
   325         m_pLight = new QColor(Colortemp);
   326         m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
   327     }
   328 }
   330 //
   331 // Sets the dark shading colour for rows
   332 //
   333 void Prefpanel::shadeDark(void)
   334 {
   335     QColorDialog::setCustomColor(0, m_pLight->rgb());
   336     QColorDialog::setCustomColor(1, m_pDark->rgb());
   337     QColor Colortemp = QColorDialog::getColor(*m_pDark);
   338     if (Colortemp.isValid()) {
   339         delete m_pDark;
   340         m_pDark = new QColor(Colortemp);
   341         m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
   342     }
   343 }
   345 //
   346 // Reverts the shading colours to default values
   347 //
   348 void Prefpanel::shadeRevert(void)
   349 {
   350     delete m_pLight;
   351     m_pLight = new QColor(*this->getRevlight());
   352     m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
   353     delete m_pDark;
   354     m_pDark = new QColor(*this->getRevdark());
   355     m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
   356 }
   358 //
   359 // Polish off ending changes after creating and before widget shows
   360 //
   361 void Prefpanel::polish(void)
   362 {
   363     // Set our buttons now that user has probably set their colours
   364     m_pLightbutt->setPaletteBackgroundColor(*m_pLight);
   365     m_pDarkbutt->setPaletteBackgroundColor(*m_pDark);
   366 }
   368 //
   369 // Sets the strings of the subwidgets using the current language
   370 //
   371 void Prefpanel::textChange(void)
   372 {
   373     this->setCaption(trUtf8("AS Applicate Preferences", "Personal preferences are persistent across sessions"));
   375     m_pTabselect->changeTab(m_pBoolpage, trUtf8("General"));
   376     m_pTabselect->changeTab(m_pGeneralpage, trUtf8("Paths"));
   377     m_pTabselect->changeTab(m_pRemotepage, trUtf8("Hosts"));
   378     m_pTabselect->changeTab(m_pColourpage, trUtf8("Colour"));
   380     m_pOkaybutton->setText(trUtf8("Okay", "Comment for Okaybutton"));
   381     QToolTip::add(m_pOkaybutton, trUtf8("Applies and saves changes", "Comment for tooltip Okaybutton"));
   382     Q3WhatsThis::add(m_pOkaybutton, trUtf8("The okay button applies and saves changes", "Comment for whatsThis Okaybutton"));
   384     m_pApplybutton->setText(trUtf8("Apply", "Comment for Applybutton"));
   385     QToolTip::add(m_pApplybutton, trUtf8("Apply changes immediately", "Comment for toolTip Applybutton"));
   386     Q3WhatsThis::add(m_pApplybutton, trUtf8("The apply button applies changes immediately", "Comment for whatsThis Applybutton"));
   388     m_pCancelbutton->setText(trUtf8("Cancel", "Comment for Cancelbutton"));
   389     QToolTip::add(m_pCancelbutton, trUtf8("Cancel any changes", "Comment for toolTip Cancelbutton"));
   390     Q3WhatsThis::add(m_pCancelbutton, trUtf8("The cancel button cancels any changes", "Comment for whatsThis Cancelbutton"));
   392     m_pGenbox->setTitle(trUtf8("File and directory paths", "Comment for Genbox"));
   393     m_pAcctlabel->setText(trUtf8("Accounts path", "Comment for Acctlabel"));
   394     m_pEventlabel->setText(trUtf8("Events directory", "Comment for Eventlabel"));
   395     m_pUserlabel->setText(trUtf8("User name", "Comment for Userlabel"));
   396     m_pHomelabel->setText(trUtf8("Home directory", "Comment for Homelabel"));
   397     QToolTip::add(m_pAcctline, trUtf8("The accounts file pathname", "Comment for toolTip Acctline"));
   398     QToolTip::add(m_pEventline, trUtf8("The default events directory", "Comment for toolTip Eventline"));
   399     QToolTip::add(m_pUserline, trUtf8("The user name", "Comment for toolTip Userline"));
   400     QToolTip::add(m_pHomeline, trUtf8("The home directory", "Comment for toolTip Homeline"));
   402     m_pRembox->setTitle(trUtf8("Remote host names", "Comment for Rembox"));
   403     m_pCorbalabel->setText(trUtf8("CORBA host", "Comment for Corbalabel"));
   404     m_pSoaplabel->setText(trUtf8("SOAP host", "Comment for Soaplabel"));
   405     QToolTip::add(m_pCorbaline, trUtf8("The CORBA host name", "Comment for toolTip Corbaline"));
   406     QToolTip::add(m_pSoapline, trUtf8("The SOAP host name", "Comment for toolTip Soapline"));
   408     m_pCorbacheck->setText(trUtf8("Enable IIOP transmission", "Comment for Corbacheck"));
   409     QToolTip::add(m_pCorbacheck, trUtf8("Will enable transmission over IIOP", "Comment for toolTip Corbacheck"));
   410     Q3WhatsThis::add(m_pCorbacheck, trUtf8("Check this box to enable transmission to a CORBA host", "Comment whatsThis for Corbacheck"));
   412     m_pSoapcheck->setText(trUtf8("Enable SOAP transmission", "Comment for Soapcheck"));
   413     QToolTip::add(m_pSoapcheck, trUtf8("Will enable transmission over SOAP", "Comment for toolTip Soapcheck"));
   414     Q3WhatsThis::add(m_pSoapcheck, trUtf8("Check this box to enable transmission to a SOAP host", "Comment whatsThis for Soapcheck"));
   416     m_pShadebox->setTitle(trUtf8("Row shading", "Comment for Shadebox"));
   417     m_pThemebox->setTitle(trUtf8("Skin themes", "Comment for Themebox"));
   419     m_pLightlab->setText(trUtf8("Light", "Comment for Lightlabel"));
   420     m_pDarklab->setText(trUtf8("Dark", "Comment for Darklabel"));
   421     m_pRevertlab->setText(trUtf8("Revert", "Comment for Revertlabel"));
   422     QToolTip::add(m_pLightbutt, trUtf8("Light row shading colour", "Comment for tooltip Lightbutt"));
   423     Q3WhatsThis::add(m_pLightbutt, trUtf8("The Light button sets the light row shading colour.", "Comment for whatsThis Lightbutt"));
   424     QToolTip::add(m_pDarkbutt, trUtf8("Dark row shading colour", "Comment for tooltip Darkbutt"));
   425     Q3WhatsThis::add(m_pDarkbutt, trUtf8("The Dark button sets the light row shading colour.", "Comment for whatsThis Darkbutt"));
   427     m_pStylegroup->setTitle(trUtf8("Available styles", "Comment for Stylebuttons"));
   428     m_pReportgroup->setTitle(trUtf8("Report options", "Comment for Reportbox"));
   429     m_pSwitchgroup->setTitle(trUtf8("Other options", "Comment for Switchbox"));
   430 }

mercurial