diff options
Diffstat (limited to 'src/piklab/main.cpp')
-rw-r--r-- | src/piklab/main.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/piklab/main.cpp b/src/piklab/main.cpp new file mode 100644 index 0000000..409be80 --- /dev/null +++ b/src/piklab/main.cpp @@ -0,0 +1,32 @@ +/*************************************************************************** + * Copyright (C) 2005 Nicolas Hadacek <hadacek@kde.org> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + ***************************************************************************/ + +#include "libgui/toplevel.h" +#include "common/global/about.h" +#include "libgui/likeback.h" + +const KCmdLineOptions OPTIONS[] = { + { "+[file]", I18N_NOOP("Optional filenames to be opened upon startup."), 0 }, + { 0, 0, 0} +}; + +int main(int argc, char **argv) +{ + Piklab::AboutData *about = new Piklab::AboutData("piklab", I18N_NOOP("Piklab"), I18N_NOOP( "Graphical development environment for applications based on PIC and dsPIC microcontrollers.")); + Piklab::init(about, argc, argv, true, OPTIONS); + LikeBack::init(true); + LikeBack::setServer("piklab.sourceforge.net", "/likeback/send.php"); + LikeBack::setAllowFeatureWishes(true); + if ( kapp->isRestored() ) RESTORE(MainWindow) + else { + MainWindow *wid = new MainWindow; + wid->show(); + } + return kapp->exec(); +} |