• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KTextEditor

containerinterface.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2007 Philippe Fremy (phil at freehackers dot org)
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KDELIBS_KTEXTEDITOR_CONTAINER_INTERFACE_H
00020 #define KDELIBS_KTEXTEDITOR_CONTAINER_INTERFACE_H
00021 
00022 #include <ktexteditor/ktexteditor_export.h>
00023 
00024 #include <QtCore/QObject>
00025 
00026 namespace KTextEditor
00027 {
00028 
00029 class Document;
00030 class View;
00031 
00032 
00063 class KTEXTEDITOR_EXPORT ContainerInterface
00064 {
00065   public:
00069     ContainerInterface();
00070 
00072     virtual ~ContainerInterface();
00073 
00082     virtual void setContainer( QObject * container ) = 0;
00083 
00112     virtual QObject * container() = 0;
00113 }; // class ContainerInterface
00114 
00164 class KTEXTEDITOR_EXPORT MdiContainer
00165 {
00166   public:
00167 
00169     MdiContainer();
00170 
00172     virtual ~MdiContainer();
00173 
00179     virtual void setActiveView( View * view )=0;
00180 
00188     virtual View * activeView()=0;
00189 
00210     virtual Document * createDocument()=0;
00211 
00227     virtual bool closeDocument( Document * doc )=0;
00228 
00246     virtual View * createView( Document * doc )=0;
00247 
00258     virtual bool closeView( View * view )=0;
00259 }; // class MdiContainer
00260 
00261 } // namespace KTextEditor
00262 
00263 Q_DECLARE_INTERFACE(KTextEditor::ContainerInterface, "org.kde.KTextEditor.ContainerInterface")
00264 
00265 #endif // KDELIBS_KTEXTEDITOR_CONTAINER_EXTENSION_H

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal