• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/App

  • sources
  • kde-4.14
  • kdeedu
  • rocs
  • App
Main.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2008-2011 Tomaz Canabrava <tomaz.canabrava@gmail.com>
4  Copyright 2008 Ugo Sangiori <ugorox@gmail.com>
5  Copyright 2010 Wagner Reck <wagner.reck@gmail.com>
6 
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of
11  the License, or (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #include <KApplication>
23 #include <KAboutData>
24 #include <KCmdLineArgs>
25 #include <KDebug>
26 #include <KLocale>
27 #include <KLocalizedString>
28 #include <QByteArray>
29 
30 #include "rocsversion.h"
31 #include "Ui/MainWindow.h"
32 #include <DataStructureBackendManager.h>
33 
34 
35 int main(int argc, char *argv[])
36 {
37  KAboutData aboutData("rocs",
38  "rocs",
39  ki18nc("@title Displayed program name", "Rocs"),
40  ROCS_VERSION_STR,
41  ki18nc("@title KAboutData: short program description", "Graph Theory Tool"),
42  KAboutData::License_GPL,
43  ki18nc("@info:credit", "(c) 2009-2013 Rocs Developers"),
44  ki18nc("@title Short program description", "Rocs - Data Structure Analysis")
45  );
46 
47  aboutData.addAuthor(ki18nc("@info:credit Developer name",
48  "Tomaz Canabrava"),
49  ki18nc("@info:credit Role", "Developer"),
50  "tcanabrava@kde.org",
51  "http://liveblue.wordpress.com");
52 
53  aboutData.addAuthor(ki18nc("@info:credit Developer name", "Wagner Reck"),
54  ki18nc("@info:credit Role", "Developer"),
55  "wagner.reck@gmail.com",
56  "http://wiglot.wordpress.com");
57 
58  aboutData.addAuthor(ki18nc("@info:credit Developer name", "Andreas Cord-Landwehr"),
59  ki18nc("@info:credit Role", "Developer"),
60  "cordlandwehr@kde.org",
61  "http://cordlandwehr.wordpress.com");
62 
63  KCmdLineArgs::init(argc, argv, &aboutData);
64  KApplication app;
65 
66  if (DataStructureBackendManager::self().backends().count() == 0) {
67  KMessageBox::detailedError(0,
68  i18n("No Data Structure plugins found on your system. Exiting."),
69  i18n("Rocs needs at least one data structure plugin to continue.\n"
70  "Try running kbuildsycoca4 from a console and after execute Rocs again."));
71 
72  } else {
73  MainWindow *window = new MainWindow();
74  window->show();
75  return app.exec();
76  }
77  return 0;
78 }
MainWindow.h
MainWindow
Definition: MainWindow.h:60
main
int main(int argc, char *argv[])
Definition: Main.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/App

Skip menu "rocs/App"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal