• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

sublime

document.h

00001 /***************************************************************************
00002  *   Copyright 2006-2007 Alexander Dymo  <adymo@kdevelop.org>       *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU Library General Public License as       *
00006  *   published by the Free Software Foundation; either version 2 of the    *
00007  *   License, or (at your option) any later version.                       *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU Library General Public     *
00015  *   License along with this program; if not, write to the                 *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
00018  ***************************************************************************/
00019 #ifndef SUBLIMEDOCUMENT_H
00020 #define SUBLIMEDOCUMENT_H
00021 
00022 #include <QtCore/QObject>
00023 #include <QtCore/QList>
00024 
00025 
00026 #include "sublimeexport.h"
00027 
00028 class QWidget;
00029 
00030 namespace Sublime {
00031 
00032 class View;
00033 class Controller;
00034 
00041 class SUBLIME_EXPORT Document: public QObject {
00042     Q_OBJECT
00043 public:
00045     Document(const QString &title, Controller *controller);
00046     ~Document();
00047 
00050     View *createView();
00052     const QList<View*> &views() const;
00053 
00055     Controller *controller() const;
00056 
00058     QString title() const;
00060     void setTitle(const QString& newTitle);
00061 
00063     virtual QString documentType() const = 0;
00064 
00066     virtual QString documentSpecifier() const = 0;
00067 
00068 Q_SIGNALS:
00071     void viewNumberChanged(Sublime::Document *doc);
00073     void aboutToDelete(Sublime::Document *doc);
00075     void titleChanged(Sublime::Document *doc);
00076 
00077 protected:
00080     virtual View *newView(Document *doc);
00084     virtual QWidget *createViewWidget(QWidget *parent = 0) = 0;
00085 
00086 private:
00087     Q_PRIVATE_SLOT(d, void removeView(QObject*))
00088 
00089     struct DocumentPrivate *const d;
00090 
00091     friend struct DocumentPrivate;
00092     friend class View;
00093 };
00094 
00095 }
00096 
00097 #endif
00098 

sublime

Skip menu "sublime"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries 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