KOffice – TDE office suite
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.

44 lines
1.3KB

  1. /*
  2. * main.cc - part of KImageShop
  3. *
  4. * Copyright (c) 1999 Matthias Elter <me@kde.org>
  5. * Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. */
  20. #include <dcopclient.h>
  21. #include <tdecmdlineargs.h>
  22. #include <KoApplication.h>
  23. #include "ui/kis_aboutdata.h"
  24. static const TDECmdLineOptions options[] = {
  25. { "+[file(s)]", I18N_NOOP("File(s) or URL(s) to open"), 0 },
  26. TDECmdLineLastOption
  27. };
  28. extern "C" KRITA_EXPORT int kdemain(int argc, char **argv)
  29. {
  30. TDECmdLineArgs::init(argc, argv, newChalkAboutData());
  31. TDECmdLineArgs::addCmdLineOptions(options);
  32. KoApplication app;
  33. if (!app.start())
  34. return 1;
  35. return app.exec();
  36. }