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.44' '-r1.45' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/Makefile.in,v' 2>/dev/null --- Makefile.in 2003/02/25 09:24:07 1.44 +++ Makefile.in 2003/02/27 13:57:09 1.45 @@ -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_panel.cpp as_reportpanel.cpp as_numdial.cpp as_sfile.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_reportpanel.cpp as_helpanel.cpp as_numdial.cpp as_sfile.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_panel.o as_sfile.o as_pref.o as_reportpanel.o as_numdial.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_sfile.o as_pref.o as_reportpanel.o as_helpanel.o as_numdial.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_as_panel.cpp moc_as_reportpanel.cpp moc_as_numdial.cpp -MOC_OBJ = moc_as_gui.o moc_as_table.o moc_as_panel.o moc_as_reportpanel.o moc_as_numdial.o +MOC_OUT = moc_as_gui.cpp moc_as_table.cpp moc_as_panel.cpp moc_as_reportpanel.cpp moc_as_helpanel.cpp moc_as_numdial.cpp +MOC_OBJ = moc_as_gui.o moc_as_table.o moc_as_panel.o moc_as_reportpanel.o moc_as_helpanel.o moc_as_numdial.o .SUFFIXES: .SUFFIXES: .c .cc .cpp .cxx .o Index: ossp-pkg/as/as-gui/as_helpanel.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.cpp,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.cpp,v' | diff -u /dev/null - -L'ossp-pkg/as/as-gui/as_helpanel.cpp' 2>/dev/null --- ossp-pkg/as/as-gui/as_helpanel.cpp +++ - 2025-04-18 22:20:19.823301919 +0200 @@ -0,0 +1,108 @@ +// +// 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_helpanel.cpp: ISO C++ implementation +// + +#include +#include +#include +#include +#include +#include + +#include "as_helpanel.h" + + +namespace AS { + +// +// Constructs a Helpanel as a child of 'pParent', with the +// name 'kszName' and widget flags set to 'Flags'. +// +// The dialog will by default be modal, unless you set 'bModal' to +// false to construct a modeless dialog. +// +Helpanel::Helpanel(QWidget *pParent, const char *kszName, bool bModal, WFlags Flags) + : QDialog(pParent, kszName, bModal, Flags) +{ + // Boilerplate code to initialize the panel + if (!kszName) + this->setName("Helpanel"); + + // Make panel resizeable + this->setSizeGripEnabled(true); + this->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)5, + (QSizePolicy::SizeType)5, 0, 0, this->sizePolicy().hasHeightForWidth())); + + // Build panel using already constructed widgets and layouts + m_pFormlay = new QVBoxLayout(this, 11, 6, "Formlayout"); + + // Groupbox and its text display + m_pBrowser = new QTextBrowser(this, "Helpbrowser"); + m_pBrowser->setReadOnly(true); + m_pBrowser->setFocus(); + + // Add a spacer to sideline the otherwise massive dismiss button + m_pButtlay = new QHBoxLayout(0, 0, 6, "Buttonlayout"); + QSpacerItem *pSpacey = new QSpacerItem(40, 20, QSizePolicy::Minimum, QSizePolicy::Minimum); + m_pButtlay->addItem(pSpacey); + + // Add dismiss push button + m_pDismissbutt = new QPushButton(this, "Dismissbutton"); + m_pDismissbutt->setPaletteBackgroundColor(QColor(198, 196, 186)); + m_pDismissbutt->setCursor(QCursor(13)); + m_pButtlay->addWidget(m_pDismissbutt); + + // Add the stuff to our form layout + m_pFormlay->addWidget(m_pBrowser); + m_pFormlay->addSpacing(6); + m_pFormlay->addLayout(m_pButtlay); + + // Connect signals to slots, accept() and reject() are Qt implicit + connect(m_pDismissbutt, SIGNAL(clicked(void)), SLOT(accept(void))); + this->resize(QSize(464, 332).expandedTo(minimumSizeHint())); + this->textChange(); +} + +// +// Sets the strings of the subwidgets using the current language +// +void Helpanel::textChange(void) +{ + this->setCaption(trUtf8("AS Accounting System help contents", "Help contents for the AS GUI application.")); + + // Top level push buttons associated with accept and save slots + m_pDismissbutt->setText(trUtf8("Dismiss", "Comment for Dismissbutton")); + QToolTip::add(m_pDismissbutt, trUtf8("Closes the help panel", "Comment for tooltip Dismissbutton")); + QWhatsThis::add(m_pDismissbutt, trUtf8("The dismiss button dismisses the help panel", "Comment for whatsThis Dismissbutton")); + + // The main text browser window which presents the HTML help contents + QWhatsThis::add(m_pBrowser, trUtf8("The text browser window displays the help contents", "Comment for whatsThis Browser")); +} +} // namespace AS Index: ossp-pkg/as/as-gui/as_helpanel.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.h,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.h,v' | diff -u /dev/null - -L'ossp-pkg/as/as-gui/as_helpanel.h' 2>/dev/null --- ossp-pkg/as/as-gui/as_helpanel.h +++ - 2025-04-18 22:20:19.825977375 +0200 @@ -0,0 +1,68 @@ +// +// 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_helpanel.h: ISO C++ interface +// + +#ifndef HELPANEL_H +#define HELPANEL_H + +#include +#include + + +class QVBoxLayout; +class QHBoxLayout; +class QPushButton; +class QTextBrowser; + +namespace AS { + +class Helpanel : public QDialog +{ + Q_OBJECT + +public: + Helpanel(QWidget *pParent = 0, const char *kszName = 0, + bool bModal = true, WFlags Flags = 0); +// ~Helpanel(void); // No need to destroy widgets, because qt does it for us + +public: + QTextBrowser *m_pBrowser; + QPushButton *m_pDismissbutt; + +protected: + QVBoxLayout *m_pFormlay; + QHBoxLayout *m_pButtlay; + +protected slots: + virtual void textChange(void); +}; +} // namespace AS + +#endif // HELPANEL_H