KDevelop API Documentation

app.cpp

Go to the documentation of this file.
00001 #include <kiconloader.h>
00002 #include <kstandarddirs.h>
00003 #include <kstdaction.h>
00004 #include <kapplication.h>
00005 #include <kaction.h>
00006 #include <klocale.h>
00007 #include <kfiledialog.h>
00008 #include <kmessagebox.h>
00009 #include <kcmdlineargs.h>
00010 #include <klibloader.h>
00011 #include <qwidget.h>
00012 #include <qdir.h>
00013 
00014 #include <ktrader.h>
00015 
00016 #include "viewmanager.h"
00017 #include "docmanager.h"
00018 #include "app.h"
00019 
00020 Shell::Shell()
00021 {
00022   setXMLFile("manager.rc");
00023 
00024   DocManager *dm = new DocManager ();
00025   ViewManager *vm = new ViewManager (this, dm);
00026   setCentralWidget (vm );
00027 
00028   KStdAction::openNew( vm, SLOT( slotDocumentNew() ), actionCollection(), "file_new" );
00029   KStdAction::open( vm, SLOT( slotDocumentOpen() ), actionCollection(), "file_open" );
00030   KStdAction::close( vm, SLOT( slotDocumentClose() ), actionCollection(), "file_close" );
00031 
00032   createGUI();
00033 
00034   resize( 600, 350 );
00035 }
00036 
00037 Shell::~Shell()
00038 {
00039 }
00040 
00041 int main( int argc, char **argv )
00042 {
00043   KApplication app( argc, argv, "manager" );
00044   Shell *shell = new Shell;
00045   shell->show();
00046   return app.exec();
00047 }
00048 
00049 #include "app.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003