libkdepim Library API Documentation

core.h

00001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00022 #ifndef KOMPOSER_CORE_H
00023 #define KOMPOSER_CORE_H
00024 
00025 #include <kparts/mainwindow.h>
00026 #include <kparts/part.h>
00027 
00028 #include <qptrlist.h>
00029 
00030 namespace KParts {
00031   class PartManager;
00032 }
00033 namespace KSettings {
00034   class Dialog;
00035 }
00036 class QWidgetStack;
00037 
00038 namespace Komposer
00039 {
00040 
00041   class Editor;
00042   class PluginManager;
00043 
00047   class Core : public KParts::MainWindow
00048   {
00049     Q_OBJECT
00050   public:
00051     Core( QWidget *parentWidget = 0, const char *name = 0 );
00052     virtual ~Core();
00053 
00054     KParts::ReadWritePart* createPart( const char *libname );
00055 
00056   protected slots:
00057     void slotActivePartChanged( KParts::Part *part );
00058     void slotPreferences();
00059     void slotQuit();
00060 
00061   protected:
00062     //virtual void initWidgets();
00063     virtual void initWidgets();
00064     void loadSettings();
00065     void saveSettings();
00066 
00067     void loadEditors();
00068     void unloadEditors();
00069     void addEditor( Komposer::Editor *editor );
00070     void addPart( KParts::Part *part );
00071 
00072   private:
00073     QMap<QCString, KParts::ReadWritePart*> m_parts;
00074     KParts::PartManager* m_partManager;
00075     QWidgetStack* m_stack;
00076     Editor* m_currentEditor;
00077 
00078     PluginManager* m_pluginManager;
00079 
00080     KSettings::Dialog* m_dlg;
00081 
00082     class Private;
00083     Private *d;
00084 };
00085 
00086 }
00087 
00088 #endif
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 4 14:40:45 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003