www.pudn.com > hobby_cpp.rar > main.cpp


/*
 * Copyright (C) 2003 Anne-Marie Mahfouf 
 */

#include "sigcreate.h"
#include 
#include 
#include 
#include 

static const char description[] =
    I18N_NOOP("A KDE KPart Application");

static const char version[] = "0.1";

static KCmdLineOptions options[] =
{
//    { "+[URL]", I18N_NOOP( "Document to open." ), 0 },
    KCmdLineLastOption
};

int main(int argc, char **argv)
{
    KAboutData about("sigcreate", I18N_NOOP("SigCreate"), version, description,
                     KAboutData::License_GPL, "(C) 2003 Anne-Marie Mahfouf", 0, 0, "annma@kde.org");
    about.addAuthor( "Anne-Marie Mahfouf", 0, "annma@kde.org" );
    KCmdLineArgs::init(argc, argv, &about);
    KCmdLineArgs::addCmdLineOptions( options );
    KApplication app;
    SigCreate *mainWin = 0;

   /* if (app.isRestored())
    {
        RESTORE(SigCreate);
    }
    else*/
     {
        // no session.. just start up normally
        KCmdLineArgs *args = KCmdLineArgs::parsedArgs();

        /// @todo do something with the command line args here

        mainWin = new SigCreate();
        app.setMainWidget( mainWin );
        mainWin->show();

        args->clear();
    }

    // mainWin has WDestructiveClose flag by default, so it will delete itself.
    return app.exec();
}