~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to src/main_assistant.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <config.h>
2
 
 
3
 
#include <kaboutdata.h>
4
 
#include <kapplication.h>
5
 
#include <kcmdlineargs.h>
6
 
#include <klocale.h>
7
 
#include <kmainwindow.h>
8
 
#include <kstandarddirs.h>
9
 
#include <kdebug.h>
10
 
#include <dcopclient.h>
11
 
 
12
 
#include <qfileinfo.h>
13
 
 
14
 
#include "splashscreen.h"
15
 
#include "toplevel.h"
16
 
#include "plugincontroller.h"
17
 
#include "partcontroller.h"
18
 
#include "core.h"
19
 
#include "projectmanager.h"
20
 
 
21
 
#include "kdevassistantextension.h"
22
 
 
23
 
static KCmdLineOptions options[] =
24
 
{
25
 
    { "profile <profile>",      I18N_NOOP("Profile to load"), 0 },
26
 
/*    { "+file(s)",             I18N_NOOP("Files to load"), 0 },*/
27
 
    { 0,0,0 }
28
 
};
29
 
 
30
 
int main(int argc, char *argv[])
31
 
{
32
 
  static const char description[] = I18N_NOOP("The KDevelop Integrated Development Environment:\nassistant and documentation viewer");
33
 
  KAboutData aboutData("kdevassistant", I18N_NOOP("KDevelop Assistant"),
34
 
                       VERSION, description, KAboutData::License_GPL,
35
 
                       I18N_NOOP("(c) 1999-2007, The KDevelop developers"), "", "http://www.kdevelop.org");
36
 
  aboutData.addAuthor("Alexander Dymo", I18N_NOOP("Release coordinator, Overall improvements, Pascal support, C++ support, New File and Documentation parts"), "adymo@kdevelop.org");
37
 
  aboutData.addAuthor("Amilcar do Carmo Lucas", I18N_NOOP("Release coordinator, API documentation, Doxygen and autoproject patches"), "amilcar@ida.ing.tu-bs.de");
38
 
  aboutData.addAuthor("Bernd Gehrmann", I18N_NOOP("Initial idea, basic architecture, much initial source code"), "bernd@kdevelop.org");
39
 
  aboutData.addAuthor("Caleb Tennis", I18N_NOOP("KTabBar, bugfixes"), "caleb@aei-tech.com");
40
 
  aboutData.addAuthor("Richard Dale", I18N_NOOP("Java & Objective C support"), "Richard_Dale@tipitina.demon.co.uk");
41
 
  aboutData.addAuthor("John Birch", I18N_NOOP("Debugger frontend"), "jbb@kdevelop.org");
42
 
  aboutData.addAuthor("Sandy Meier", I18N_NOOP("PHP support, context menu stuff"), "smeier@kdevelop.org");
43
 
  aboutData.addAuthor("Kurt Granroth", I18N_NOOP("KDE application templates"), "kurth@granroth.org");
44
 
  aboutData.addAuthor("Ian Reinhart Geiser", I18N_NOOP("Dist part, bash support, application templates"), "geiseri@yahoo.com");
45
 
  aboutData.addAuthor("Matthias Hoelzer-Kluepfel", I18N_NOOP("Several components, htdig indexing"), "hoelzer@kde.org");
46
 
  aboutData.addAuthor("Victor Roeder", I18N_NOOP("Help with Automake manager and persistent class store"), "victor_roeder@gmx.de");
47
 
  aboutData.addAuthor("Harald Fernengel", I18N_NOOP("Ported to Qt 3, patches, valgrind, diff and perforce support"), "harry@kdevelop.org");
48
 
  aboutData.addAuthor("Roberto Raggi", I18N_NOOP("QEditor component, code completion, Abbrev component, C++ support, Java support"), "roberto@kdevelop.org");
49
 
  aboutData.addAuthor("Simon Hausmann", I18N_NOOP("Help with KParts infrastructure"), "hausmann@kde.org");
50
 
  aboutData.addAuthor("Oliver Kellogg", I18N_NOOP("Ada support"), "okellogg@users.sourceforge.net");
51
 
  aboutData.addAuthor("Jakob Simon-Gaarde", I18N_NOOP("QMake projectmanager"), "jsgaarde@tdcspace.dk");
52
 
  aboutData.addAuthor("F@lk Brettschneider", I18N_NOOP("MDI modes, QEditor, bugfixes"), "falkbr@kdevelop.org");
53
 
  aboutData.addAuthor("Mario Scalas", I18N_NOOP("PartExplorer, redesign of CvsPart, patches, bugs(fixes)"), "mario.scalas@libero.it");
54
 
  aboutData.addAuthor("Jens Dagerbo", I18N_NOOP("Replace, Bookmarks, FileList and CTags2 plugins. Overall improvements and patches"), "jens.dagerbo@swipnet.se");
55
 
  aboutData.addAuthor("Julian Rockey", I18N_NOOP("Filecreate part and other bits and patches"), "linux@jrockey.com");
56
 
  aboutData.addCredit("Ajay Guleria", I18N_NOOP("ClearCase support"), "ajay_guleria@yahoo.com");
57
 
  aboutData.addCredit("Marek Janukowicz", I18N_NOOP("Ruby support"), "child@t17.ds.pwr.wroc.pl");
58
 
 
59
 
  aboutData.addCredit("The KWrite authors", I18N_NOOP("Kate editor component"), "kwrite-devel@kde.org");
60
 
  aboutData.addCredit("The KHTML authors", I18N_NOOP("HTML documentation component"), "kfm-devel@kde.org");
61
 
  aboutData.addCredit("Robert Moniot", I18N_NOOP("Fortran documentation"), "moniot@fordham.edu");
62
 
  aboutData.addCredit("Ka-Ping Yee", I18N_NOOP("Python documentation utility"), "ping@lfw.org");
63
 
  aboutData.addCredit("Dimitri van Heesch", I18N_NOOP("Doxygen wizard"), "dimitri@stack.nl");
64
 
  aboutData.addCredit("Hugo Varotto", I18N_NOOP("Fileselector component"), "hugo@varotto-usa.com");
65
 
  aboutData.addCredit("Matt Newell", I18N_NOOP("Fileselector component"), "newellm@proaxis.com");
66
 
  aboutData.addCredit("Trolltech AS", I18N_NOOP("Designer code"), "info@trolltech.com");
67
 
  aboutData.addCredit("Daniel Engelschalt", I18N_NOOP("C++ code completion, persistent class store"), "daniel.engelschalt@gmx.net");
68
 
  aboutData.addCredit("Stephane ANCELOT", I18N_NOOP("Patches"), "sancelot@free.fr");
69
 
  aboutData.addCredit("Jens Zurheide", I18N_NOOP("Patches"), "jens.zurheide@gmx.de");
70
 
  aboutData.addCredit("Luc Willems", I18N_NOOP("Help with Perl support"), "Willems.luc@pandora.be");
71
 
  aboutData.addCredit("Marcel Turino", I18N_NOOP("Documentation index view"), "M.Turino@gmx.de");
72
 
  aboutData.addCredit("Yann Hodique", I18N_NOOP("Patches"), "Yann.Hodique@lifl.fr");
73
 
  aboutData.addCredit("Tobias Gl\303\244\303\237er" , I18N_NOOP("Documentation Finder,  qmake projectmanager patches, usability improvements, bugfixes ... "), "tobi.web@gmx.de");
74
 
  aboutData.addCredit("Andreas Koepfle" , I18N_NOOP("QMake project manager patches"), "koepfle@ti.uni-mannheim.de");
75
 
  aboutData.addCredit("Sascha Cunz" , I18N_NOOP("Cleanup and bugfixes for qEditor, AutoMake and much other stuff"), "mail@sacu.de");
76
 
 
77
 
  KCmdLineArgs::init(argc, argv, &aboutData);
78
 
  KCmdLineArgs::addCmdLineOptions( options );
79
 
//  KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
80
 
 
81
 
  KApplication app;
82
 
 
83
 
  KDevAssistantExtension::init();
84
 
 
85
 
  KDevSplashScreen *splash = 0;
86
 
  QString splashFile = locate("data", "kdevelop/pics/kdevassistant-splash.png");
87
 
  if (!splashFile.isEmpty())
88
 
  {
89
 
    QPixmap pm;
90
 
    pm.load(splashFile);
91
 
    splash = new KDevSplashScreen( pm );
92
 
  }
93
 
  if (splash) splash->show();
94
 
 
95
 
  app.processEvents();
96
 
 
97
 
  QObject::connect(PluginController::getInstance(), SIGNAL(loadingPlugin(const QString &)),
98
 
                   splash, SLOT(showMessage(const QString &)));
99
 
 
100
 
  if (splash) splash->message( i18n( "Loading Settings" ) );
101
 
  TopLevel::getInstance()->loadSettings();
102
 
 
103
 
  PluginController::getInstance()->loadInitialPlugins();
104
 
 
105
 
  if (splash) splash->message( i18n( "Starting GUI" ) );
106
 
  TopLevel::getInstance()->main()->show();
107
 
 
108
 
  Core::getInstance()->doEmitCoreInitialized();
109
 
 
110
 
  if (splash) delete splash;
111
 
 
112
 
  kapp->dcopClient()->registerAs("kdevassistant");
113
 
 
114
 
  return app.exec();
115
 
}