head 1.16; access; symbols; locks; strict; comment @ * @; 1.16 date 2004.05.27.21.48.41; author ms; state Exp; branches; next 1.15; 1.15 date 2003.11.20.11.31.20; author ms; state Exp; branches; next 1.14; 1.14 date 2003.02.25.09.26.16; author ms; state Exp; branches; next 1.13; 1.13 date 2003.02.21.23.42.09; author ms; state Exp; branches; next 1.12; 1.12 date 2003.02.21.15.04.04; author ms; state Exp; branches; next 1.11; 1.11 date 2003.02.21.10.11.36; author ms; state Exp; branches; next 1.10; 1.10 date 2003.02.20.21.08.47; author ms; state Exp; branches; next 1.9; 1.9 date 2003.02.17.17.18.43; author ms; state Exp; branches; next 1.8; 1.8 date 2003.02.14.17.31.55; author ms; state Exp; branches; next 1.7; 1.7 date 2003.02.13.18.22.32; author ms; state Exp; branches; next 1.6; 1.6 date 2003.02.12.19.33.05; author ms; state Exp; branches; next 1.5; 1.5 date 2003.02.12.17.00.43; author ms; state Exp; branches; next 1.4; 1.4 date 2003.02.12.16.31.43; author ms; state Exp; branches; next 1.3; 1.3 date 2003.02.11.14.19.57; author ms; state Exp; branches; next 1.2; 1.2 date 2003.02.10.22.46.06; author ms; state Exp; branches; next 1.1; 1.1 date 2003.02.07.16.37.55; author ms; state Exp; branches; next ; desc @@ 1.16 log @Modernize copyright text in source and graphic headers. @ text @// // OSSP asgui - Accounting system graphical user interface // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) // Copyright (c) 2002-2004 Ralf S. Engelschall // Copyright (c) 2002-2004 Michael Schloh von Bennewitz // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH // // This file is part of OSSP asgui, an accounting system graphical user // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. // // Permission to use, copy, modify, and distribute this software for // any purpose with or without fee is hereby granted, provided that // the above copyright notice and this permission notice appear in all // copies. // // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF // USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT // OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. // // as_panel.h: ISO C++ interface // #ifndef PREFPANEL_H #define PREFPANEL_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "as_gui.h" // For usage of style_t class Prefpanel : public QDialog { Q_OBJECT public: Prefpanel(QWidget *pParent = 0, const char *kszName = 0, bool bModal = true, WFlags Flags = 0); // ~Prefpanel(void); // No need to destroy widgets, because qt does it for us private: Preferences *m_pPanprefs; QColor *m_pLight, *m_pDark; QColorGroup *m_pOrigcolours, *m_pAltcolours; public: QGroupBox *m_pGenbox, *m_pRembox, *m_pShadebox, *m_pThemebox; QVBoxLayout *m_pStylelay, *m_pReportlay, *m_pSwitchlay; QVBoxLayout *m_pVlayout, *m_pBinlayout; QHBoxLayout *m_pBoolayout, *m_pGenlayout, *m_pRemlayout; QVBoxLayout *m_pShadeboxlay, *m_pThemeboxlay; QHBoxLayout *m_pGenboxlay, *m_pRemboxlay, *m_pColourlayout; QGridLayout *m_pGeninner, *m_pReminner, *m_pShadelayout; QWidget *m_pBoolpage, *m_pGeneralpage, *m_pRemotepage, *m_pColourpage; QHBoxLayout *m_pButtlay; QPushButton *m_pOkaybutton; QPushButton *m_pApplybutton; QPushButton *m_pCancelbutton; QTabWidget *m_pTabselect; QLabel *m_pAcctlabel, *m_pEventlabel; QLabel *m_pUserlabel, *m_pHomelabel; QLabel *m_pCorbalabel, *m_pSoaplabel; QLineEdit *m_pAcctline, *m_pEventline; QLineEdit *m_pUserline, *m_pHomeline; QLineEdit *m_pCorbaline, *m_pSoapline; QCheckBox *m_pCorbacheck, *m_pSoapcheck; QLabel *m_pLightlab, *m_pDarklab, *m_pRevertlab; QToolButton *m_pLightbutt, *m_pDarkbutt, *m_pRevertbutt; QButtonGroup *m_pStylegroup, *m_pReportgroup, *m_pSwitchgroup; QCheckBox *m_pBackupcheck, *m_pExtendcheck; QCheckBox *m_pDetailcheck, *m_pSigncheck; public: // Accessor get methods QString getStyle(void) {return (m_pStylegroup->selected()->text());}; QString getAccounts(void) {return (m_pAcctline->text());}; QString getEvents(void) {return (m_pEventline->text());}; QString getUser(void) {return (m_pUserline->text());}; QString getHome(void) {return (m_pHomeline->text());}; QString getCorbahost(void) {return (m_pCorbaline->text());}; QString getSoaphost(void) {return (m_pSoapline->text());}; bool getCorbaon(void) {return (m_pCorbacheck->isChecked());}; bool getSoapon(void) {return (m_pSoapcheck->isChecked());}; bool getBackon(void) {return (m_pBackupcheck->isChecked());}; bool getExtendon(void) {return (m_pExtendcheck->isChecked());}; bool getDetailon(void) {return (m_pDetailcheck->isChecked());}; bool getSignaton(void) {return (m_pSigncheck->isChecked());}; QColor *getLight(void) {return m_pLight;}; QColor *getDark(void) {return m_pDark;}; QColor *getRevlight(void) {return (QColor *)&m_pOrigcolours->foreground();}; QColor *getRevdark(void) {return (QColor *)&m_pOrigcolours->background();}; QColor *getAltlight(void) {return (QColor *)&m_pAltcolours->foreground();}; QColor *getAltdark(void) {return (QColor *)&m_pAltcolours->background();}; // Accessor set methods void setAccounts(const QString &kInstr) {m_pAcctline->setText(kInstr);}; void setEvents(const QString &kInstr) {m_pEventline->setText(kInstr);}; void setUser(const QString &kInstr) {m_pUserline->setText(kInstr);}; void setHome(const QString &kInstr) {m_pHomeline->setText(kInstr);}; void setCorbahost(const QString &kInstr) {m_pCorbaline->setText(kInstr);}; void setSoaphost(const QString &kInstr) {m_pSoapline->setText(kInstr);}; void setBackon(const bool &kbEnable = true) {m_pBackupcheck->setChecked(kbEnable);}; void setExtendon(const bool &kbEnable = true) {m_pExtendcheck->setChecked(kbEnable);}; void setDetailon(const bool &kbEnable = true) {m_pDetailcheck->setChecked(kbEnable);}; void setSignaton(const bool &kbEnable = true) {m_pSigncheck->setChecked(kbEnable);}; void lockCorba(const bool &kbLock = true) {m_pCorbacheck->setEnabled(!kbLock);}; void lockSoap(const bool &kbLock = true) {m_pSoapcheck->setEnabled(!kbLock);}; void setLight(const QColor *pLight) {m_pLight = (QColor *)pLight;}; void setDark(const QColor *pDark) {m_pDark = (QColor *)pDark;}; void setOrigcolour(QColorGroup *pGroup) {m_pOrigcolours = pGroup;}; void setAltcolour(QColorGroup *pGroup) {m_pAltcolours = pGroup;}; void setCorbaon(const bool &kbEnable = true) { m_pCorbaline->setEnabled(kbEnable); m_pCorbacheck->setChecked(kbEnable); }; void setSoapon(const bool &kbEnable = true) { m_pSoapline->setEnabled(kbEnable); m_pSoapcheck->setChecked(kbEnable); }; void setStyle(const char *pkszStyle) { for (int nIter = 0; nIter < m_pStylegroup->count(); nIter++) if (m_pStylegroup->find(nIter)->text() == pkszStyle) m_pStylegroup->setButton(nIter); }; protected slots: virtual void polish(void); virtual void textChange(void); virtual void shadeLight(void); virtual void shadeDark(void); virtual void shadeRevert(void); void enableCorba(bool bOn) {m_pCorbaline->setEnabled(bOn);}; void enableSoap(bool bOn) {m_pSoapline->setEnabled(bOn);}; signals: void applied(void); }; #endif // PREFPANEL_H @ 1.15 log @Handle the time consuming bureaucracy of changing a company name. @ text @d3 4 a6 4 // Copyright (c) 2002-2003 The OSSP Project (http://www.ossp.org/) // Copyright (c) 2002-2003 Ralf S. Engelschall // Copyright (c) 2002-2003 Michael Schloh von Bennewitz // Copyright (c) 2002-2003 Cable & Wireless Telecommunications Services GmbH @ 1.14 log @Hook in alternate custom colours for windows users. @ text @a3 1 // Copyright (c) 2002-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) d6 1 @ 1.13 log @Added detailed listing and signature prefs, with linkage to public accessors. @ text @d67 1 a67 1 QColorGroup *m_pOrigcolours; d120 2 d139 1 @ 1.12 log @Last touches to colour dialogs and preferences. @ text @d114 2 d130 2 @ 1.11 log @Implemented user-defined row shading colours, acessible in preferences panel and elsewhere. @ text @d67 1 d116 2 d132 1 @ 1.10 log @Added options to enable detailed report listings and add a signature line to report footers. @ text @d41 2 d53 1 a53 1 #include "as_gui.h" // For usage of style_t d64 6 a69 1 QGroupBox *m_pGenbox, *m_pRembox; d73 3 a75 2 QHBoxLayout *m_pGenboxlay, *m_pRemboxlay; QGridLayout *m_pGeninner, *m_pReminner; d77 1 a77 1 QWidget *m_pBoolpage, *m_pGeneralpage, *m_pRemotepage; d93 3 d113 2 d125 5 a129 3 void lockCorba(const bool &kbLock = true) {m_pCorbacheck->setEnabled(!kbLock);}; void lockSoap(const bool &kbLock = true) {m_pSoapcheck->setEnabled(!kbLock);}; void setCorbaon(const bool &kbEnable = true) { d144 1 d146 3 @ 1.9 log @Fixes, cleanups, improvements. @ text @d63 2 a64 2 QVBoxLayout *m_pStylelay, *m_pSwitchlay; QVBoxLayout *m_pVlayout; d85 1 a85 1 QButtonGroup *m_pStylegroup, *m_pSwitchgroup; d87 1 @ 1.8 log @Moved preference data application from panel items to own method, added applyPrefs logic, and a new proxy method to handle applied signals, and reorganized file incusion in throughout to loosen source file coupling. @ text @a36 2 #include @ 1.7 log @Lots of RPC changes including disable and enablement according to compile time transport availability, multi row spanning with SOAP transmission, and solve security problems by making CORBA and SOAP hosts user configurable. @ text @a130 1 void apply(void); d133 3 @ 1.6 log @Completed working logic of preferences class Panel. @ text @d113 2 @ 1.5 log @Bugfix typos. @ text @d53 2 d92 1 d99 4 d105 21 a125 6 void setAccounts(const QString &Instr) {m_pAcctline->setText(Instr);}; void setEvents(const QString &Instr) {m_pEventline->setText(Instr);}; void setUser(const QString &Instr) {m_pUserline->setText(Instr);}; void setHome(const QString &Instr) {m_pHomeline->setText(Instr);}; void setCorbahost(const QString &Instr) {m_pCorbaline->setText(Instr);}; void setSoaphost(const QString &Instr) {m_pSoapline->setText(Instr);}; d130 2 @ 1.4 log @Added accessors to panel class. @ text @d93 3 a95 3 QString getHome(void) {return (m_pCorbaline->text());}; QString getCorbahost(void) {return (m_pSoapline->text());}; QString getSoaphost(void) {return (m_pHomeline->text());}; @ 1.3 log @Hard coded left alignment into task table items, made amount control appearance and behaviour consistent with amount table items, and split remote host name and switches out of prefs panel paths page to its own remote page. @ text @d38 14 a52 14 // Forward class definitions to avoid including qt headers, // rather include them in the implementation file class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QButtonGroup; class QLabel; class QLineEdit; class QPushButton; class QRadioButton; class QCheckBox; class QGroupBox; class QTabWidget; class QWidget; d87 17 @ 1.2 log @Completed the prefs panel user interface. @ text @d62 1 a62 1 QGroupBox *m_pGenbox; d65 3 a67 3 QHBoxLayout *m_pGenlayout, *m_pBoolayout; QHBoxLayout *m_pGenboxlay; QGridLayout *m_pGeninner; d69 1 a69 1 QWidget *m_pGeneralpage, *m_pBoolpage; d83 1 @ 1.1 log @Added new preferences panel class, made consistent destructor signatures. @ text @d49 2 a51 1 class QToolButton; d62 10 a71 1 QButtonGroup *m_pPrefgroup; d73 1 d77 9 a85 9 QWidget *m_pGeneralpage; QLabel *m_pAcctlabel; QLineEdit *m_pAcctline; QToolButton *m_pAcctbutton; QWidget *m_pStylepage; QButtonGroup *m_pStylegroup; QRadioButton *m_pStylebutton1; // These buttons must later be dynamically QRadioButton *m_pStylebutton2; // instantiated, to allow variable styles d88 2 a89 1 virtual void textChange(); @