int main(int argc, char** argv) { // Initialise the program KCmdLineArgs::init(argc, argv, "kexidbcomboboxtest", 0, KLocalizedString(), "", KLocalizedString(), true); KApplication* app = new KApplication(true, true); // Look for installed database drivers KDbDriverManager manager; KDbDriver::InfoHash drvs = manager.driversInfo(); // Set up a combo box and a quit widget in a new container QWidget* vbox = new QWidget(); Q3VBoxLayout* vbLayout = new Q3VBoxLayout(vbox); KexiDBDriverComboBox* all = new KexiDBDriverComboBox(vbox, drvs); KexiDBDriverComboBox* srvOnly = new KexiDBDriverComboBox(vbox, drvs, KexiDBDriverComboBox::ShowServerDrivers); QPushButton* quit = new QPushButton("Quit", vbox); vbLayout->addWidget(all); // Combobox listing all drivers vbLayout->addWidget(srvOnly); // Combobox only drivers for DB servers vbLayout->addWidget(quit); // Show the whole lot QObject::connect(quit, SIGNAL(clicked()), app, SLOT(quit())); vbox->show(); app->exec(); delete app; }
int main(int argc, char ** argv) { KCmdLineOptions options; options.add("+URL1", ki18n("The first URL to play")); options.add("+URL2", ki18n("The second URL to play")); KAboutData about("crossfade", 0, ki18n("Phonon Crossfade Example"), "1.0", KLocalizedString(), KAboutData::License_LGPL); about.addAuthor(ki18n("Matthias Kretz"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &about); KCmdLineArgs::addCmdLineOptions(options); KApplication app; KUrl url1; KUrl url2; KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args->count() == 2) { url1 = args->url(0); url2 = args->url(1); if (url1.isValid() && url2.isValid()) { Crossfader xfader(url1, url2); return app.exec(); } } return 1; }
int main(int argc, char **argv) { KCmdLineArgs::init(argc, argv, "demo", 0, KLocalizedString(), "version", KLocalizedString()); KApplication app; app.setQuitOnLastWindowClosed( true ); QWidget *mainWidget = new QWidget; QVBoxLayout* l = new QVBoxLayout; KTextEditor::Message* m = new KTextEditor::Message(KTextEditor::Message::Information, "This is an information message, awesome!"); QAction* a = new QAction("Action 1", m); m->addAction(a); a = new QAction("Action 2", m); m->addAction(a, false); KateMessageWidget* mw = new KateMessageWidget(m); l->addWidget(mw); mw = new KateMessageWidget(m); l->addWidget(mw); l->addWidget(new QLabel("some text in the middle", mw)); mw = new KateMessageWidget(m); l->addWidget(mw); l->addWidget(new QLabel("some text at the bottom", mw)); mainWidget->setLayout(l); mainWidget->show(); return app.exec(); }
int main(int argc, char *argv[]) { KAboutData aboutData("itemview-test", 0, ki18n("test for item view"), "0.1", ki18n("test app"), KAboutData::License_GPL, ki18n("(c) 2008 Alessandro Diaferia"), KLocalizedString(), "", "*****@*****.**"); aboutData.addAuthor(ki18n("Alessandro Diaferia"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions options; KCmdLineArgs::addCmdLineOptions(options); KCmdLineArgs::parsedArgs(); KApplication app; KDialog *window = new KDialog(); RaptorItemsView *itemsView = new RaptorItemsView(window); Kickoff::ApplicationModel *model = new Kickoff::ApplicationModel(); itemsView->setModel(model); RaptorItemDelegate *delegate = new RaptorItemDelegate(); itemsView->setItemDelegate(delegate); window->setMainWidget(itemsView); window->show(); return app.exec(); }
int main(int argc, char *argv[]) { KAboutData aboutData("PTT", 0, ki18n("Plasma Theme Tester"), "0.1", ki18n("Description"), KAboutData::License_GPL, ki18n("(c) 2008 Riccardo Iaconelli"), KLocalizedString(), "", "*****@*****.**"); aboutData.addAuthor(ki18n("Riccardo Iaconelli"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions options; KCmdLineArgs::addCmdLineOptions(options); KCmdLineArgs::parsedArgs(); KApplication app; Ui::MainWindow ui; KMainWindow *mw = new KMainWindow; ui.setupUi(mw); // set all the properties... ui.background->setType("background"); mw->show(); return app.exec(); }
int main(int argc, char *argv[]) { KAboutData aboutData("orario", 0, ki18n("Orario"), "0.1", ki18n("Description"), KAboutData::License_GPL, ki18n("(c) 2008 Riccardo Iaconelli"), KLocalizedString(), "", "*****@*****.**"); aboutData.addAuthor(ki18n("Riccardo Iaconelli"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions options; KCmdLineArgs::addCmdLineOptions(options); KCmdLineArgs::parsedArgs(); KApplication app; KMainWindow *wi = new KMainWindow; QWidget *w = new QWidget; Ui::Form ui; ui.setupUi(w); wi->setCentralWidget(w); wi->show(); return app.exec(); }
int main(int argc, char **argv) { KAboutData about("active-documentviewer", 0, ki18n("Reader"), version, ki18n(description), KAboutData::License_GPL, ki18n("Copyright 2012 Marco Martin"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor( ki18n("Marco Martin"), KLocalizedString(), "*****@*****.**" ); about.setProgramIconName("okular"); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add("+[url]", ki18n( "URL of the file to open" )); KCmdLineArgs::addCmdLineOptions(options); KApplication app; KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); KGlobal::locale()->insertCatalog("org.kde.okular"); //kDebug() << "ARGS:" << args << args->count(); KDeclarativeMainWindow *mainWindow = new KDeclarativeMainWindow(); mainWindow->declarativeView()->setPackageName("org.kde.active.documentviewer"); mainWindow->show(); args->clear(); return app.exec(); }
int main(int argc, char **argv) { KAboutData aboutData("kppplogview", 0, ki18n("KPPP Log Viewer"), version, ki18n(description), KAboutData::License_GPL, ki18n("(c) 1999-2002, The KPPP Developers")); aboutData.addAuthor(ki18n("Bernd Wuebben"),KLocalizedString(), "*****@*****.**"); aboutData.addAuthor(ki18n("Mario Weilguni")); aboutData.addAuthor(ki18n("Harri Porten"),KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions option; option.add("kppp", ki18n("Run in KPPP mode")); KCmdLineArgs::addCmdLineOptions( option ); KApplication a; loadLogs(); TopWidget *w = new TopWidget; w->show(); return a.exec(); }
KCMKontactSummary::KCMKontactSummary( const KComponentData &inst, QWidget *parent ) : KCModule( inst, parent ) { setButtons( NoAdditionalButton ); QVBoxLayout *layout = new QVBoxLayout( this ); layout->setSpacing( KDialog::spacingHint() ); layout->setMargin( 0 ); QLabel *label = new QLabel( i18n( "Select the plugin summaries to show on the summary page." ), this ); layout->addWidget( label ); mPluginView = new PluginView( this ); layout->addWidget( mPluginView ); layout->setStretchFactor( mPluginView, 1 ); load(); connect( mPluginView, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(changed()) ); KAboutData *about = new KAboutData( I18N_NOOP( "kontactsummary" ), 0, ki18n( "KDE Kontact Summary" ), 0, KLocalizedString(), KAboutData::License_GPL, ki18n( "(c), 2004 Tobias Koenig" ) ); about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "*****@*****.**" ); setAboutData( about ); }
int main(int argc, char **argv) { KupDaemon *lDaemon = new KupDaemon(); if(!lDaemon->shouldStart()) { qWarning() <<ki18n("Kup is not enabled, enable it from the system settings module.").toString(); return 0; } KAboutData lAbout("kupdaemon", "kup", ki18nc("@title", "Kup Daemon"), version, ki18n(description), KAboutData::License_GPL, ki18n("Copyright (C) 2011 Simon Persson"), KLocalizedString(), 0, "*****@*****.**"); lAbout.addAuthor(ki18n("Simon Persson"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &lAbout); KUniqueApplication::addCmdLineOptions(); if (!KUniqueApplication::start()) { qWarning() <<ki18n("Kup is already running!").toString(); return 0; } KUniqueApplication lApp; // Use for debugging... // KApplication lApp; lApp.setQuitOnLastWindowClosed(false); lApp.disableSessionManagement(); KStartupInfo::appStarted(); //make startup notification go away. lDaemon->setupGuiStuff(); return lApp.exec(); }
int main(int argc, char **argv) { KAboutData aboutData( "ksnapshot", 0, ki18n("KSnapshot"), KSNAPVERSION, ki18n(description), KAboutData::License_GPL, ki18n("(c) 1997-2008, Richard J. Moore,\n(c) 2000, Matthias Ettrich,\n(c) 2002-2003 Aaron J. Seigo")); aboutData.addAuthor(ki18n("Richard J. Moore"),KLocalizedString(), "*****@*****.**"); aboutData.addAuthor(ki18n("Matthias Ettrich"),KLocalizedString(), "*****@*****.**"); aboutData.addAuthor(ki18n("Aaron J. Seigo"), KLocalizedString(), "*****@*****.**"); aboutData.addCredit( ki18n("Nadeem Hasan"), ki18n("Region Grabbing\nReworked GUI"), "*****@*****.**" ); aboutData.addCredit( ki18n("Marcus Hufgard"), ki18n("\"Open With\" function"), "*****@*****.**" ); aboutData.addCredit( ki18n("Pau Garcia i Quiles"), ki18n("Free region grabbing, KIPI plugins support, port to Windows"), "*****@*****.**" ); KCmdLineArgs::init( argc, argv, &aboutData ); KCmdLineArgs::addCmdLineOptions( ksnapshot_options() ); // Add our own options. KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); // This is one of the applications that requires the "native" / X11 graphics backend to work. QApplication::setGraphicsSystem("native"); KApplication app; // Create top level window KSnapshot *toplevel; bool showTopLevel = false; if ( args->isSet( "current" ) ) toplevel = new KSnapshot( 0, KSnapshotObject::WindowUnderCursor ); else if(args->isSet( "fullscreen" )) { //we grad directly desktop => show dialogbox showTopLevel = true; toplevel = new KSnapshot( 0, KSnapshotObject::FullScreen ); } else if(args->isSet( "region" )) toplevel = new KSnapshot( 0, KSnapshotObject::Region ); else if(args->isSet( "freeregion" )) toplevel = new KSnapshot( 0, KSnapshotObject::FreeRegion ); else if(args->isSet( "child" )) toplevel = new KSnapshot( 0, KSnapshotObject::ChildWindow ); else { showTopLevel = true; toplevel = new KSnapshot(); } args->clear(); new KsnapshotAdaptor(toplevel); QDBusConnection::sessionBus().registerObject("/KSnapshot", toplevel); if(showTopLevel) toplevel->show(); return app.exec(); }
int main ( int argc, char **argv ) { KAboutData about ( "kmilion", 0, ki18n ( "KMilion" ), version, ki18n ( description ), KAboutData::License_GPL, ki18n ( "(C) 2010 Mikołaj Sochacki" ), KLocalizedString(), 0, "*****@*****.**" ); about.addAuthor ( ki18n ( "Mikołaj Sochacki" ), KLocalizedString(), "*****@*****.**" ); KCmdLineArgs::init ( argc, argv, &about ); KCmdLineOptions options; options.add ( "+[URL]", ki18n ( "Document to open" ) ); KCmdLineArgs::addCmdLineOptions ( options ); KApplication app; KMilion *widget = new KMilion; const QRect r = app.desktop()->frameGeometry(); widget->setScreenSize ( r.width(), r.height() ); KCmdLineArgs *args; if ( app.isSessionRestored() ) { RESTORE ( KMilion ); } else { args = KCmdLineArgs::parsedArgs(); widget->show(); } args->clear(); // Tak jest w orginale nie mam pojęcia dlaczego? Szczególnie po co kilka razy show! //see if we are starting with session management // if (app.isSessionRestored()) // { // RESTORE(KMilion); // } // else // { // // no session.. just start up normally // KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); // if (args->count() == 0) // { // //kmilion *widget = new kmilion; // widget->show(); // } // else // { // int i = 0; // for (; i < args->count(); i++) // { // //kmilion *widget = new kmilion; // widget->show(); // } // } // args->clear(); // } return app.exec(); }
AboutData::AboutData() : KAboutData ("silence", 0, ki18n(APPNAME), VERSION, ki18n("An information management tool."), KAboutData::License_GPL_V2, ki18n("(c) 2009 - 2010, Silence developers"), KLocalizedString(), "http://silence.sekalura.net", "*****@*****.**") { addAuthor(ki18n("Manuel Unglaub"), ki18n("Maintainer"), "*****@*****.**"); addAuthor(ki18n("Yves Adler"), KLocalizedString(), "*****@*****.**"); }
KLocalizedString KSaneOption::unitString() { switch (m_optDesc->unit) { case SANE_UNIT_NONE: return KLocalizedString(); case SANE_UNIT_PIXEL: return ki18ncp("SpinBox parameter unit", " Pixel", " Pixels"); case SANE_UNIT_BIT: return ki18ncp("SpinBox parameter unit", " Bit", " Bits"); case SANE_UNIT_MM: return ki18nc("SpinBox parameter unit (Millimeter)", " mm"); case SANE_UNIT_DPI: return ki18nc("SpinBox parameter unit (Dots Per Inch)", " DPI"); case SANE_UNIT_PERCENT: return ki18nc("SpinBox parameter unit (Percentage)", " %"); case SANE_UNIT_MICROSECOND: return ki18nc("SpinBox parameter unit (Microseconds)", " µs"); } return KLocalizedString(); }
KComponentData::KComponentData(const QByteArray &name, const QByteArray &catalog, MainComponentRegistration registerAsMain) : d(new KComponentDataPrivate(KAboutData(name, catalog, KLocalizedString(), "", KLocalizedString()))) { Q_ASSERT(!name.isEmpty()); if (kdeLibraryPathsAdded == NeedLazyInit) { kdeLibraryPathsAdded = LazyInitDone; d->lazyInit(*this); } if (registerAsMain == RegisterAsMainComponent) { KGlobal::newComponentData(*this); } }
int main(int argc, char **argv) { KAboutData about("moviemanager", 0, ki18n("MovieManager"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2012 Sandeep Raju P & Sadan Sohan M"), KLocalizedString(), 0, "[email protected]\[email protected]"); about.addAuthor( ki18n("Sandeep Raju P"), KLocalizedString(), "*****@*****.**" ); about.addAuthor( ki18n("Sadan Sohan M"), KLocalizedString(), "*****@*****.**" ); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add("+[URL]", ki18n( "Document to open" )); KCmdLineArgs::addCmdLineOptions(options); KApplication app; MovieManager *widget = new MovieManager(); // see if we are starting with session management if (app.isSessionRestored()) { RESTORE(MovieManager); } else { // no session.. just start up normally KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args->count() == 0) { //moviemanager *widget = new moviemanager; //widget->setMaximumSize(200,200); widget->show(); //mainListScroll->show(); // widget->mainListScroll->show(); } else { int i = 0; for (; i < args->count(); i++) { //moviemanager *widget = new moviemanager; //widget->setMaximumSize(200,200); widget->show(); //widget->mainListScroll->show(); } } args->clear(); } return app.exec(); }
const KAboutData *KCMTodoSummary::aboutData() const { KAboutData *about = new KAboutData( I18N_NOOP( "kcmtodosummary" ), 0, ki18n( "Pending To-dos Configuration Dialog" ), 0, KLocalizedString(), KAboutData::License_GPL, ki18n( "(c) 2003 - 2004 Tobias Koenig" ) ); about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "*****@*****.**" ); about->addAuthor( ki18n( "Allen Winter" ), KLocalizedString(), "*****@*****.**" ); return about; }
int main(int argc, char **argv) { KAboutData about(QByteArray("KDirWatchTest_GUI"), QByteArray(), ki18n("KDirWatchTest_GUI"), QByteArray("0.1"), ki18n("KDirWatchTest_GUI"), KAboutData::License_LGPL, ki18n("(C) 2006 Dirk Stoecker"), KLocalizedString(), QByteArray(), QByteArray("*****@*****.**")); about.addAuthor( ki18n("Dirk Stoecker"), KLocalizedString(), QByteArray("*****@*****.**") ); KCmdLineArgs::init(argc, argv, &about); QApplication app(argc, argv); KDirWatchTest_GUI *mainWin = new KDirWatchTest_GUI(); mainWin->show(); return app.exec(); }
int main(int argc, char **argv) { KAboutData about("soundkonverter", 0, ki18n("soundKonverter"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2005-2012 Daniel Faust"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor( ki18n("Daniel Faust"), KLocalizedString(), "*****@*****.**" ); about.addCredit( ki18n("David Vignoni"), ki18n("Nuvola icon theme"), 0, "http://www.icon-king.com" ); about.addCredit( ki18n("Scott Wheeler"), ki18n("TagLib"), "*****@*****.**", "http://ktown.kde.org/~wheeler" ); about.addCredit( ki18n("Marco Nelles"), ki18n("Audex"), 0, "http://opensource.maniatek.de/audex" ); about.addCredit( ki18n("Amarok developers"), ki18n("Amarok"), 0, "http://amarok.kde.org" ); about.addCredit( ki18n("All programmers of audio converters"), ki18n("Backends") ); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add( "replaygain", ki18n("Open the Replay Gain tool an add all given files") ); options.add( "rip <device>", ki18n("List all tracks on the cd drive <device>, 'auto' will search for a cd") ); options.add( "profile <profile>", ki18n("Add all files using the given profile") ); options.add( "format <format>", ki18n("Add all files using the given format") ); options.add( "output <directory>", ki18n("Output all files to <directory>") ); options.add( "invisible", ki18n("Start soundKonverter invisible") ); options.add( "autostart", ki18n("Start the conversion immediately (enabled when using '--invisible')") ); options.add( "autoclose", ki18n("Close soundKonverter after all files are converted (enabled when using '--invisible')") ); options.add( "command <command>", ki18n("Execute <command> after each file has been converted (%i=input file, %o=output file)") ); options.add( "+[files]", ki18n("Audio file(s) to append to the file list") ); KCmdLineArgs::addCmdLineOptions(options); soundKonverterApp::addCmdLineOptions(); if( !soundKonverterApp::start() ) { return 0; } soundKonverterApp app; // mainWin has WDestructiveClose flag by default, so it will delete itself. return app.exec(); }
int main(int argc, char **argv) { KAboutData about("KNetworkStatusTestClient", 0, ki18n("knetworkstatustestclient"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2007 Will Stephenson"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor( ki18n("Will Stephenson"), KLocalizedString(), "*****@*****.**" ); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; KCmdLineArgs::addCmdLineOptions(options); KApplication app; KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args->count() == 0) { TestClient *widget = new TestClient; widget->show(); } else { int i = 0; for (; i < args->count(); i++) { TestClient *widget = new TestClient; widget->show(); } } args->clear(); return app.exec(); }
int main( int argc, char **argv ) { qDebug()<<"Choqok "<<version; KAboutData about( "choqok", 0, ki18n( "Choqok" ), version, ki18n( description ), KAboutData::License_GPL_V3, ki18n( "(C) 2008-2010 Mehrdad Momeny\n(C) 2011-2012 Choqok Developers" ), KLocalizedString(), 0 ); about.addAuthor( ki18n( "Mehrdad Momeny" ), ki18n( "Author and Core Developer" ), "*****@*****.**", "http://identi.ca/mtux" ); about.addAuthor( ki18n( "Andrey Esin" ), ki18n( "Developer" ), "*****@*****.**", "http://twitter.com/la_stik" ); about.addCredit( ki18n( "Roozbeh Shafiee" ), ki18n( "Artworks" ), "*****@*****.**" ); about.addCredit( ki18n( "Shahrzad Shojaei" ), ki18n( "Artworks" ), "*****@*****.**" ); about.addCredit( ki18n( "Daniel Schaal" ), ki18n( "UI improvements" ), "*****@*****.**"); about.addCredit( ki18n( "Stephen Henderson" ), ki18n( "Search API implementation" ), "*****@*****.**"); about.addCredit( ki18n( "Tejas Dinkar" ), ki18n( "Developer" ), "*****@*****.**", "http://twitter.com/tdinkar" ); about.addCredit( ki18n( "Emanuele Bigiarini"), ki18n("D-Bus and Konqueror plugin"), "*****@*****.**"); about.addCredit( ki18n( "Alex Infantes"), ki18n("Improvements on Image preview plugin"), "*****@*****.**" ); about.addCredit( ki18n( "Bardia Daneshvar" ), ki18n("UI improvements"), "*****@*****.**"); about.addCredit( ki18n( "Atanas Gospodinov" ), ki18n("Twitter photo upload"), QByteArray()); //TODO before next release, Add new contributers to credits KCmdLineArgs::init( argc, argv, &about ); ChoqokApplication app; return app.exec(); }
int main(int argc, char** argv) { qsrand(time(0)); KAboutData about("palapeli", 0, ki18nc("The application's name", "Palapeli"), "2.0", ki18n("KDE Jigsaw Puzzle Game"), KAboutData::License_GPL, ki18n("Copyright 2009, 2010, Stefan Majewsky")); about.addAuthor(ki18n("Stefan Majewsky"), KLocalizedString(), "*****@*****.**", "http://majewsky.wordpress.com"); about.addCredit (ki18n ("Johannes Loehnert"), ki18n ("The option to preview the completed puzzle"), "*****@*****.**"); about.setHomepage("https://www.kde.org/applications/games/palapeli/"); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add("+puzzlefile", ki18n("Path to puzzle file (will be opened if -i is not given)")); options.add("i").add("import", ki18n("Import the given puzzle file into the local collection (does nothing if no puzzle file is given)")); options.add("", ki18n("If the -i/--import option is specified, the main window will not be shown after importing the given puzzle.")); KCmdLineArgs::addCmdLineOptions(options); KApplication app; KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); //NOTE: Syntax errors are reported on stderr, while file errors are presented to the user. if (args->isSet("import")) //perform import request new Palapeli::ImportHelper(args); else //no import request, show main window (new Palapeli::MainWindow(args))->show(); return app.exec(); }
int main( int argc, char **argv ) { KAboutData aboutData("kmenuedit", 0, ki18n("KDE Menu Editor"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2000-2003, Waldo Bastian, Raffaele Sandrini, Matthias Elter")); aboutData.addAuthor(ki18n("Waldo Bastian"), ki18n("Maintainer"), "*****@*****.**"); aboutData.addAuthor(ki18n("Raffaele Sandrini"), ki18n("Previous Maintainer"), "*****@*****.**"); aboutData.addAuthor(ki18n("Matthias Elter"), ki18n("Original Author"), "*****@*****.**"); aboutData.addAuthor(ki18n("Montel Laurent"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init( argc, argv, &aboutData ); KUniqueApplication::addCmdLineOptions(); KCmdLineOptions options; options.add("+[menu]", ki18n("Sub menu to pre-select")); options.add("+[menu-id]", ki18n("Menu entry to pre-select")); KCmdLineArgs::addCmdLineOptions( options ); if (!KUniqueApplication::start()) return 1; KMenuApplication app; menuEdit = new KMenuEdit(); menuEdit->show(); return app.exec(); }
int main(int argc, char *argv[]) { KAboutData about("kgpg", 0, ki18n("KGpg"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2003 Jean-Baptiste Mardelle"), KLocalizedString(), "http://utils.kde.org/projects/kgpg"); about.addAuthor(ki18n("Jean-Baptiste Mardelle"), ki18n("Author and former maintainer"), "*****@*****.**"); about.addAuthor(ki18n("Jimmy Gilles"), KLocalizedString(), "*****@*****.**"); about.addAuthor(ki18n("Rolf Eike Beer"), ki18n("Maintainer"), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add("e", ki18n("Encrypt file")); options.add("k", ki18n("Open key manager")); options.add("d", ki18n("Open editor")); options.add("s", ki18n("Show encrypted file")); options.add("S", ki18n("Sign File")); options.add("V", ki18n("Verify signature")); options.add("+[File]", ki18n("File to open")); KCmdLineArgs::addCmdLineOptions(options); KUniqueApplication::addCmdLineOptions(); if (!KUniqueApplication::start()) return 0; KApplication *app = new KGpgApp(); app->setQuitOnLastWindowClosed(false); return app->exec(); }
AboutData::AboutData() : KAboutData("basket", "", ki18n("BasKet Note Pads"), VERSION, ki18n(description), KAboutData::License_GPL_V2, ki18n("(c) 2003-2007, S\303\251bastien Lao\303\273t, (c) 2013-2016, Gleb Baryshev"), KLocalizedString(), "http://basket.kde.org/", "https://bugs.launchpad.net/basket") { //Pass basket.kde.org to constructor to be used as D-Bus domain name, but set the displayed address below setHomepage("https://launchpad.net/basket"); addAuthor(ki18n("OmegaPhil"), ki18n("Paste as plaintext option"), "*****@*****.**"); addAuthor(ki18n("Kelvie Wong"), ki18n("Maintainer"), "*****@*****.**"); addAuthor(ki18n("S\303\251bastien Lao\303\273t"), ki18n("Original Author"), "*****@*****.**"); addAuthor(ki18n("Petri Damst\303\251n"), ki18n("Basket encryption, Kontact integration, KnowIt importer"), "*****@*****.**"); addAuthor(ki18n("Alex Gontmakher"), ki18n("Baskets auto lock, save-status icon, HTML copy/paste, basket name tooltip, drop to basket name"), "*****@*****.**"); addAuthor(ki18n("Marco Martin"), ki18n("Original icon"), "*****@*****.**"); }
int main (int argc, char **argv) { KAboutData aboutData("ksokoban", 0, ki18n("KSokoban"), version, ki18n(description), KAboutData::License_GPL, ki18n("(c) 1998-2001 Anders Widell"), KLocalizedString(), "http://hem.passagen.se/awl/ksokoban/"); aboutData.addAuthor(ki18n("Anders Widell"), KLocalizedString(), "*****@*****.**", "http://hem.passagen.se/awl/"); aboutData.addCredit(ki18n("David W. Skinner"), ki18n("For contributing the Sokoban levels included in this game"), "*****@*****.**", "http://users.bentonrea.com/~sasquatch/"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions options; options.add("+[file]", ki18n("Level collection file to load")); KCmdLineArgs::addCmdLineOptions(options); // KUniqueApplication::addCmdLineOptions(); // if (!KUniqueApplication::start()) // return 0; QApplication::setColorSpec(QApplication::ManyColor); // KUniqueApplication app; KApplication app; // MainWindow *widget = new MainWindow(); widget->show(); KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args->count() > 0) { widget->openUrl(args->url(0)); } args->clear(); QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); int rc = app.exec(); // delete widget; return rc; }
int main(int argc, char **argv) { KAboutData about("kmarknote", 0, ki18n("KMarkNote"), version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2015 Darcy Shen"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor( ki18n("Darcy Shen"), KLocalizedString(), "*****@*****.**" ); KCmdLineArgs::init(argc, argv, &about); KCmdLineOptions options; options.add("+[URL]", ki18n( "Document to open" )); KCmdLineArgs::addCmdLineOptions(options); KApplication app; KMarkNote *mainWindow = new KMarkNote; mainWindow->show(); return app.exec(); }
int main(int argc, char* argv[]) { KAboutData about("kcolorutilsdemo", 0, ki18n("kcolorutilsdemo"), "0.1", ki18n("KColorUtils demo/test application"), KAboutData::License_GPL, ki18n("Copyright 2009 Matthew Woehlke"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor(ki18n("Matthew Woehlke"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init(argc, argv, &about); KApplication app; KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); Q_UNUSED(args); KColorUtilsDemo *d = new KColorUtilsDemo; d->show(); return app.exec(); }
int main(int argc, char **argv) { KAboutData about("ksimond", 0, ki18n("KSimond"), simon_version, ki18n(description), KAboutData::License_GPL, ki18n("(C) 2008 Peter Grasch"), KLocalizedString(), 0, "*****@*****.**"); about.addAuthor( ki18n("Peter Grasch"), KLocalizedString(), "*****@*****.**" ); KCmdLineArgs::init(argc, argv, &about); KApplication app; QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()+"/../plugins"); app.setQuitOnLastWindowClosed(false); KSimondView *widget = new KSimondView(); //widget->show(); int ret = app.exec(); delete widget; return ret; }
int main(int argc, char *argv[]) { xsltStylesheetPtr cur = NULL; xmlDocPtr doc, res; const char *params[16 + 1]; int nbparams = 0; params[nbparams] = NULL; KAboutData aboutData( "umbodoc", 0, ki18n("Umbrello UML Modeller autonomous code generator"), umbrelloVersion(), ki18n(description), KAboutData::License_GPL, ki18n("(c) 2006 Gael de Chalendar (aka Kleag), (c) 2002-2006 Umbrello UML Modeller Authors"), KLocalizedString(), "http://uml.sf.net/"); aboutData.addAuthor(ki18n("Gael de Chalendar (aka Kleag)"),KLocalizedString(), "*****@*****.**"); aboutData.addAuthor(ki18n("Umbrello UML Modeller Authors"), KLocalizedString(), "*****@*****.**"); KCmdLineArgs::init( argc, argv, &aboutData ); KCmdLineOptions options; options.add("+[File]", ki18n("File to transform")); options.add("xslt <url>", ki18n("The XSLT file to use")); KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); QCStringList xsltOpt = args->getOptionList("xslt"); if (xsltOpt.size() > 0) { QString xsltFile(xsltOpt.last()); xmlSubstituteEntitiesDefault(1); xmlLoadExtDtdDefaultValue = 1; cur = xsltParseStylesheetFile((const xmlChar *)xsltFile.latin1()); doc = xmlParseFile(args->url( 0 ).url().latin1()); res = xsltApplyStylesheet(cur, doc, params); xsltSaveResultToFile(stdout, res, cur); xsltFreeStylesheet(cur); xmlFreeDoc(res); xmlFreeDoc(doc); xsltCleanupGlobals(); xmlCleanupParser(); } return(0); }