00001 /*************************************************************************** 00002 editormanager.h - description 00003 ------------------- 00004 begin : Sun May 18 2003 00005 copyright : (C) 2003 by Elad Lahav 00006 email : elad@eldarshany.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef EDITORMANAGER_H 00019 #define EDITORMANAGER_H 00020 00021 #include <qwidget.h> 00022 #include <kparts/partmanager.h> 00023 #include <klibloader.h> 00024 #include <ktexteditor/document.h> 00025 00033 class EditorManager : public KParts::PartManager 00034 { 00035 Q_OBJECT 00036 00037 public: 00043 EditorManager(QWidget* pParent = 0, const char* szName = 0); 00047 ~EditorManager(); 00048 00053 KTextEditor::Document* add(); 00054 00059 void remove(KTextEditor::Document* pDoc); 00060 }; 00061 00062 #endif