KnowIt – tool for managing notes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.cpp 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /***************************************************************************
  2. main.cpp - description
  3. -------------------
  4. begin : czw wrz 26 08:27:40 CEST 2002
  5. copyright : (C) 2002-2004 by Micha³ Rudolf
  6. email : mrudolf@kdewebdev.org
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #include <tdecmdlineargs.h>
  17. #include <tdeaboutdata.h>
  18. #include <tdelocale.h>
  19. #include "knowit.h"
  20. #include "knowitapp.h"
  21. static const char *description =
  22. I18N_NOOP("KnowIt - notes management utility");
  23. static TDECmdLineOptions options[] =
  24. {
  25. { "+file", I18N_NOOP("Document to open"), 0 },
  26. { 0, 0, 0 }
  27. };
  28. int main(int argc, char *argv[])
  29. {
  30. TDEAboutData aboutData( "knowit", I18N_NOOP("KnowIt"),
  31. VERSION, description, TDEAboutData::License_GPL,
  32. "(C) 2002-2004 Michal Rudolf", 0, 0, "mrudolf@kdewebdev.org");
  33. aboutData.addAuthor("Michal Rudolf",0, "mrudolf@kdewebdev.org");
  34. aboutData.setTranslator (I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"),
  35. I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
  36. TDECmdLineArgs::init( argc, argv, &aboutData );
  37. TDECmdLineArgs::addCmdLineOptions( options );
  38. KnowitApplication a(true, true);
  39. Knowit *knowit = new Knowit(0, "KnowIt");
  40. a.setMainWidget(knowit);
  41. return a.exec();
  42. }