Index: ossp-pkg/as/as-gui/as_const.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v rcsdiff -q -kk '-r1.60' '-r1.61' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_const.h,v' 2>/dev/null --- as_const.h 2003/02/28 17:13:25 1.60 +++ as_const.h 2003/03/05 20:27:34 1.61 @@ -205,6 +205,7 @@ #define TITRAQ_SEPARATORTOK " " #define TITRAQ_HOMEDIRTOK "~/" #define TITRAQ_FEXTENSION ".as" +#define TITRAQ_REFHELP "as-gui.html" #define TITRAQ_DATAPATTERN "%!AS-EVENTS-" #define TITRAQ_SAVEFIRST "The timesheet contains unsaved changes.\nDo you want to save the changes or discard them?" #define TITRAQ_OVERWRITE "A file already exists with the chosen name.\nDo you want to overwrite it with new data?" Index: ossp-pkg/as/as-gui/as_helpanel.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.cpp,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.cpp,v' 2>/dev/null --- as_helpanel.cpp 2003/02/27 13:57:09 1.1 +++ as_helpanel.cpp 2003/03/05 20:27:34 1.2 @@ -48,7 +48,7 @@ // 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) +Helpanel::Helpanel(const QString &kSource, QWidget *pParent, const char *kszName, bool bModal, WFlags Flags) : QDialog(pParent, kszName, bModal, Flags) { // Boilerplate code to initialize the panel @@ -65,6 +65,7 @@ // Groupbox and its text display m_pBrowser = new QTextBrowser(this, "Helpbrowser"); + m_pBrowser->setSource(QString(TITRAQ_DOCDIR) + QChar('/') + kSource); m_pBrowser->setReadOnly(true); m_pBrowser->setFocus(); Index: ossp-pkg/as/as-gui/as_helpanel.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.h,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_helpanel.h,v' 2>/dev/null --- as_helpanel.h 2003/02/27 13:57:09 1.1 +++ as_helpanel.h 2003/03/05 20:27:34 1.2 @@ -48,7 +48,7 @@ Q_OBJECT public: - Helpanel(QWidget *pParent = 0, const char *kszName = 0, + Helpanel(const QString &, 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 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.136' '-r1.137' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- as_slot.cpp 2003/02/28 18:07:42 1.136 +++ as_slot.cpp 2003/03/05 20:27:34 1.137 @@ -1869,7 +1869,7 @@ void Titraqform::helpContents(void) { try { // Create and execute a new help contents window - std::auto_ptr pHelpcont(new AS::Helpanel(this, "Helpanel")); + std::auto_ptr pHelpcont(new AS::Helpanel(TITRAQ_REFHELP, this, "Helpanel")); pHelpcont->exec(); delete pHelpcont.release(); // Technically unnecessary, smart pointer } @@ -1886,10 +1886,10 @@ { QString Namever = QString(TITRAQ_APPTITLE) + ' ' + asgui_version.v_short; QMessageBox *pCwmsg = new QMessageBox(Namever, - QObject::trUtf8("AS-GUI is a time and task-based\n" + QObject::trUtf8("The as-gui is a time and task-based\n" "accounting system that acts as both a\n" "work-like punch card and time tracker.\n" - "Development of AS-GUI is sponsored by\n" + "Development of as-gui is sponsored by\n" "Cable & Wireless Deutschland GmbH."), QMessageBox::NoIcon, QMessageBox::Ok | QMessageBox::Default, QMessageBox::NoButton, QMessageBox::NoButton,