예제 #1
0
int main(int argc, char **argv)
{
  KCmdLineArgs::init(argc, argv, "secpolicy", description, version);

  if (!KUniqueApplication::start())
     exit(0);

  KUniqueApplication app;
  SecPolicyWin *spWin = new SecPolicyWin();

  app.setMainWidget(spWin);
  return app.exec();
}
예제 #2
0
int main(int argc, char **argv)
{
    KAboutData about("klaid", I18N_NOOP("K Learning Aid"), "0.0", description,
                     KAboutData::License_GPL, "(C) %{YEAR} Rene Schmidt", 0, 0, "*****@*****.**");
    about.addAuthor( "Rene Schmidt", 0, "*****@*****.**" );

    KCmdLineArgs::init(argc, argv, &about);

    if (!KUniqueApplication::start())
    {
      fprintf(stderr, "KLAid is already running!\n");
      exit(0);
    }
    KUniqueApplication app;

//     KApplication app;

    KLAidWidget *mainWin = 0;
    mainWin = new KLAidWidget;
    app.setMainWidget( mainWin );
    return app.exec();
}
예제 #3
0
extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
{
    TDELocale::setMainCatalogue("kmenuedit");
    TDEAboutData aboutData("kcontroledit", I18N_NOOP("Trinity Control Center Editor"),
			 version, description, TDEAboutData::License_GPL,
			 "(C) 2000-2004, Waldo Bastian, Raffaele Sandrini, Matthias Elter");
    aboutData.addAuthor("Waldo Bastian", I18N_NOOP("Maintainer"), "*****@*****.**");
    aboutData.addAuthor("Raffaele Sandrini", I18N_NOOP("Previous Maintainer"), "*****@*****.**");
    aboutData.addAuthor("Matthias Elter", I18N_NOOP("Original Author"), "*****@*****.**");

    TDECmdLineArgs::init( argc, argv, &aboutData );
    KUniqueApplication::addCmdLineOptions();

    if (!KUniqueApplication::start()) 
	return 1;

    KUniqueApplication app;

    KMenuEdit *menuEdit = new KMenuEdit(true);
    menuEdit->show();

    app.setMainWidget(menuEdit);
    return  app.exec();
}