OSSP CVS Repository

ossp - ossp-pkg/as/as-gui/as_generic.cpp 1.1
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/as/as-gui/as_generic.cpp 1.1
#include <qobject.h>
#include "generic.h"

// Construct a Prototype object
Prototype::Prototype()
{
    // For display of a prototype implementation
    m_pProtomsg = new QMessageBox("OSSP titraq",
        QObject::trUtf8("This method is not implemented yet."),
        QMessageBox::NoIcon, QMessageBox::Ok | QMessageBox::Default,
        QMessageBox::Cancel | QMessageBox::Escape, QMessageBox::NoButton,
        NULL, "Prototypemsg", true, Qt::WStyle_NormalBorder);
}

// Destroy a Prototype object
Prototype::~Prototype()
{
    // Destroy our QMessageBox
    delete m_pProtomsg;
}

// Display a message box, acting as an implementation prototype
void Prototype::doMbox()
{
    int nRet; // Return value

    // Launch our QMessageBox
    nRet = m_pProtomsg->exec();

    // Handle message box modality
    switch (nRet) {
    case QMessageBox::Ok:
        break;
    case QMessageBox::Cancel:
    default: // Just for sanity
        break;
    }
}

CVSTrac 2.0.1