Index: ossp-pkg/as/as-gui/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/Makefile.in,v rcsdiff -q -kk '-r1.40' '-r1.41' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/Makefile.in,v' 2>/dev/null --- Makefile.in 2003/02/03 21:14:58 1.40 +++ Makefile.in 2003/02/07 16:37:55 1.41 @@ -72,9 +72,9 @@ TARGET_PROGS = as-gui TARGET_MANS = as-gui.1 as-gui.conf.5 -SRCS = as_main.cpp as_gui.cpp as_assist.cpp as_slot.cpp as_dataop.cpp as_except.cpp as_generic.cpp as_amount.cpp as_table.cpp as_pref.cpp as_user.cpp as_rand.cpp as_crc.cpp as_uuid.cpp as_version.cpp +SRCS = as_main.cpp as_gui.cpp as_assist.cpp as_slot.cpp as_dataop.cpp as_except.cpp as_generic.cpp as_amount.cpp as_table.cpp as_panel.cpp as_pref.cpp as_user.cpp as_rand.cpp as_crc.cpp as_uuid.cpp as_version.cpp -OBJS = as_main.o as_gui.o as_assist.o as_slot.o as_dataop.o as_except.o as_generic.o as_amount.o as_table.o as_pref.o as_user.o as_rand.o as_crc.o as_uuid.o as_version.o +OBJS = as_main.o as_gui.o as_assist.o as_slot.o as_dataop.o as_except.o as_generic.o as_amount.o as_table.o as_panel.o as_pref.o as_user.o as_rand.o as_crc.o as_uuid.o as_version.o GRAFX = gfx/ossplogo.xpm @@ -84,8 +84,8 @@ IDL_OBJ = as_stub.o # Qt meta object compiler (MOC) generated -MOC_OUT = moc_as_gui.cpp moc_as_table.cpp -MOC_OBJ = moc_as_gui.o moc_as_table.o +MOC_OUT = moc_as_gui.cpp moc_as_table.cpp moc_as_panel.cpp +MOC_OBJ = moc_as_gui.o moc_as_table.o moc_as_panel.o .SUFFIXES: .SUFFIXES: .c .cc .cpp .cxx .o @@ -103,6 +103,8 @@ all: Makefile $(TARGET_PROGS) +# Build the program conditionally including +# RPC stubs and skeleton objects ifdef CORBABASE $(PROG_NAME): $(OBJS) $(IDL_OBJ) $(MOC_OBJ) $(CXX) $(LDFLAGS) -o $@ $+ $(LIBS) @@ -114,6 +116,13 @@ moc_%.cpp: %.h $(MOC) $< -o $@ +# Use the Trolltech uic to compile headers +# and implementation from ui XML +#%.h: %.ui +# uic $< -o $@ +#%.cpp: %.ui +# uic -impl $*.h $< -o $@ + # Run the IDL compiler over IDL source # but avoid a make deps spaghetti nest ifdef CORBABASE Index: ossp-pkg/as/as-gui/as_crc.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_crc.h,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_crc.h,v' 2>/dev/null --- as_crc.h 2003/02/03 21:14:58 1.1 +++ as_crc.h 2003/02/07 16:37:55 1.2 @@ -47,8 +47,8 @@ U32 mirrorBits(U32, U8); // Helper method, mirror a bitstream void initCrc(void); // Helper method, fill hash table -public: // Constructors - Qualistring() : QString() {initCrc();}; // Default +public: // Constructors + Qualistring(void) : QString() {initCrc();}; // Default Qualistring(const QString &kCopy) : QString(kCopy) {initCrc();}; // Copy Qualistring(const char *pkcCopy) : QString(pkcCopy) {initCrc();}; // Copy Qualistring(const std::string &kCopy) : QString(kCopy) {initCrc();}; // Copy Index: ossp-pkg/as/as-gui/as_generic.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_generic.h,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_generic.h,v' 2>/dev/null --- as_generic.h 2002/11/28 20:44:36 1.2 +++ as_generic.h 2003/02/07 16:37:55 1.3 @@ -41,7 +41,7 @@ public: Prototype(); void doMbox(); - ~Prototype(); + ~Prototype(void); protected: Index: ossp-pkg/as/as-gui/as_panel.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_panel.cpp,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/as/as-gui/as_panel.cpp,v' | diff -u /dev/null - -L'ossp-pkg/as/as-gui/as_panel.cpp' 2>/dev/null --- ossp-pkg/as/as-gui/as_panel.cpp +++ - 2025-04-18 22:12:09.590737589 +0200 @@ -0,0 +1,143 @@ +// +// OSSP asgui - Accounting system graphical user interface +// Copyright (c) 2002-2003 The OSSP Project (http://www.ossp.org/) +// Copyright (c) 2002-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) +// Copyright (c) 2002-2003 Ralf S. Engelschall +// Copyright (c) 2002-2003 Michael Schloh von Bennewitz +// +// 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.cpp: ISO C++ implementation +// + +#include "as_panel.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// +// Constructs a Prefpanel as a child of 'pParent', with the +// name 'kszName' and widget flags set to 'Flags'. +// +// The dialog will by default be modeless, unless you set 'bModal' to +// true to construct a modal dialog. +// +Prefpanel::Prefpanel(QWidget *pParent, const char *kszName, bool bModal, WFlags Flags) + : QDialog(pParent, kszName, bModal, Flags) +{ + if (!kszName) + this->setName("Prefpanel"); + + setSizeGripEnabled(false); + setSizePolicy(QSizePolicy((QSizePolicy::SizeType)5, + (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth())); + + m_pPrefgroup = new QButtonGroup(this, "Prefbuttons"); + m_pPrefgroup->setGeometry(QRect(230, 350, 220, 60)); + + m_pOkaybutton = new QPushButton(m_pPrefgroup, "Okaybutton"); + m_pOkaybutton->setGeometry(QRect(10, 20, 86, 30)); + + m_pCancelbutton = new QPushButton(m_pPrefgroup, "Cancelbutton"); + m_pCancelbutton->setGeometry(QRect(120, 20, 86, 30)); + m_pCancelbutton->setDefault(true); + + m_pTabselect = new QTabWidget(this, "Tabselector"); + m_pTabselect->setGeometry(QRect(10, 10, 470, 320)); + + m_pGeneralpage = new QWidget(m_pTabselect, "Generalpage"); + + m_pAcctlabel = new QLabel(m_pGeneralpage, "Accfilelabel"); + m_pAcctlabel->setGeometry(QRect(30, 40, 80, 20)); + + m_pAcctline = new QLineEdit(m_pGeneralpage, "Accountline"); + m_pAcctline->setGeometry(QRect(130, 40, 108, 22)); + + m_pAcctbutton = new QToolButton(m_pGeneralpage, "Accfilebutton"); + m_pAcctbutton->setGeometry(QRect(270, 40, 80, 20)); + m_pAcctbutton->setFocusPolicy(QToolButton::StrongFocus); + m_pTabselect->insertTab(m_pGeneralpage, ""); + + m_pStylepage = new QWidget(m_pTabselect, "Stylepage"); + + m_pStylegroup = new QButtonGroup(m_pStylepage, "Stylebuttons"); + m_pStylegroup->setGeometry(QRect(150, 30, 140, 230)); + + m_pStylebutton1 = new QRadioButton(m_pStylegroup, "Stylebutton1"); + m_pStylebutton1->setGeometry(QRect(20, 30, 60, 20)); + + m_pStylebutton2 = new QRadioButton(m_pStylegroup, "Stylebutton2"); + m_pStylebutton2->setGeometry(QRect(20, 70, 95, 20)); + m_pTabselect->insertTab(m_pStylepage, ""); + this->textChange(); + this->resize(QSize(491, 433).expandedTo(minimumSizeHint())); +} + +// +// Sets the strings of the subwidgets using the current language +// +void Prefpanel::textChange() +{ + this->setCaption(tr("AS Applicate Preferences", "Personal preferences are persistent across sessions")); + m_pPrefgroup->setTitle(tr("Prefbuttons", "Buttons for preferences")); + QToolTip::add(m_pPrefgroup, tr("Buttons for Preferences", "Comment for toolTip Prefbuttons")); + QWhatsThis::add(m_pPrefgroup, tr("Buttons for Preferences", "Comment for whatsThis Prefbuttons")); + m_pOkaybutton->setText(tr("Okay", "Comment for Okaybutton")); + QToolTip::add(m_pOkaybutton, tr("Tooltip for Okaybutton", "Comment for tooltip Okaybutton")); + QWhatsThis::add(m_pOkaybutton, tr("Whatsthis for Okaybutton", "Comment for whatsThis Okaybutton")); + m_pCancelbutton->setText(tr("Cancel", "Comment for Cancelbutton")); + QToolTip::add(m_pCancelbutton, tr("Tooltip for Cancelbutton", "Comment for toolTip Cancelbutton")); + QWhatsThis::add(m_pCancelbutton, tr("Whatsthis for Cancelbutton", "Comment for whatsThis Cancelbutton")); + QToolTip::add(m_pTabselect, tr("Tooltip for General Preferences", "Comment for toolTip General Preferences")); + QWhatsThis::add(m_pTabselect, tr("Whats this for General Not sure", "Comment for whatsthis General Preferences")); + m_pAcctlabel->setText(tr("Account path", "Comment for Accfile")); + QToolTip::add(m_pAcctlabel, tr("Tooltip for Accfilelabel", "Comment for toolTip Accfilelabel")); + QWhatsThis::add(m_pAcctlabel, tr("Whatsthis for Accfilelabel", "Comment for whatsThis Accfilelabel")); + m_pAcctline->setText(tr("Initialname", "Comment for text Lineedit")); + QToolTip::add(m_pAcctline, tr("Tooltip for Accountfile", "Comment for toolTip Accountfile")); + QWhatsThis::add(m_pAcctline, tr("Whatsthis for Accountfile", "Comment for whatsThis Accountfile")); + m_pAcctbutton->setText(tr("Change...", "Text for Accfilebutton")); + m_pAcctbutton->setTextLabel(tr("Accfile label", "Comment for textLabel Accfilebutton")); + QToolTip::add(m_pAcctbutton, tr("Tooltip for Accfilebutton", "Comment for toolTip Accfilbutton")); + QWhatsThis::add(m_pAcctbutton, tr("Whatsthis for Accfilebutton", "Comment for whatsThis Accfilebutton")); + m_pTabselect->changeTab(m_pGeneralpage, tr("General")); + m_pStylegroup->setTitle(tr("Available styles", "Comment for Stylebuttons")); + QToolTip::add(m_pStylegroup, tr("Tooltip for Stylebutton", "Comment for toolTip Stylebutton")); + QWhatsThis::add(m_pStylegroup, tr("Whatsthis for Stylebutton", "Comment for whatsThis Stylebuttons")); + m_pStylebutton1->setText(tr("Erste", "Comment for Stylebutton1")); + QToolTip::add(m_pStylebutton1, tr("Tooltip for Stylebutton1", "Comment for toolTip Stylebutton1")); + QWhatsThis::add(m_pStylebutton1, tr("Whatsthis for Stylebutton1", "Comment whatsThis for Stylebutton1")); + m_pStylebutton2->setText(tr("Zweite", "Comment for Stylebutton2")); + QToolTip::add(m_pStylebutton2, tr("Tooltip for Stylebutton2", "Comment toolTip for Stylebutton2")); + QWhatsThis::add(m_pStylebutton2, tr("Whatsthis for Stylebutton2", "Comment for whatsThis Stylebutton2")); + m_pTabselect->changeTab(m_pStylepage, tr("Styles")); +} Index: ossp-pkg/as/as-gui/as_panel.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_panel.h,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/as/as-gui/as_panel.h,v' | diff -u /dev/null - -L'ossp-pkg/as/as-gui/as_panel.h' 2>/dev/null --- ossp-pkg/as/as-gui/as_panel.h +++ - 2025-04-18 22:12:09.593830935 +0200 @@ -0,0 +1,80 @@ +// +// OSSP asgui - Accounting system graphical user interface +// Copyright (c) 2002-2003 The OSSP Project (http://www.ossp.org/) +// Copyright (c) 2002-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) +// Copyright (c) 2002-2003 Ralf S. Engelschall +// Copyright (c) 2002-2003 Michael Schloh von Bennewitz +// +// 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 + + +// 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 QTabWidget; +class QToolButton; +class QWidget; + +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 + + QButtonGroup *m_pPrefgroup; + QPushButton *m_pOkaybutton; + QPushButton *m_pCancelbutton; + QTabWidget *m_pTabselect; + + 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 + +protected slots: + virtual void textChange(); +}; + +#endif // PREFPANEL_H Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.114' '-r1.115' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- as_slot.cpp 2003/02/06 16:47:19 1.114 +++ as_slot.cpp 2003/02/07 16:37:55 1.115 @@ -47,6 +47,7 @@ #include "as_uuid.h" // UUID classes #include "as_datedit.h" // Derived from QDateEdit #include "as_crc.h" // Useful qualistring class +#include "as_panel.h" // For prefpanel class // RPC headers #ifdef HAVE_ESOAP @@ -1119,8 +1120,17 @@ // void Titraqform::configPrefs(void) { - Prototype Unimp; - Unimp.doMbox(); + Prefpanel *pUserpanel = NULL; + + // Create a new preferences panel window + pUserpanel = new Prefpanel(this, "Userprefpanel"); + + // Handle panel modality + if (pUserpanel->exec() == QDialog::Accepted) { +// pvData = pUserpanel->getData(); +// setPrefs(pvData); + } + delete pUserpanel; } //