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

interfaces

iuicontroller.h

00001 /***************************************************************************
00002  *   Copyright 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 IUICONTROLLER_H
00020 #define IUICONTROLLER_H
00021 
00022 #include "interfacesexport.h"
00023 
00024 #include <QtCore/QStringList>
00025 #include <QtGui/QWidget>
00026 #include <kurl.h>
00027 
00028 class QAction;
00029 
00030 namespace KParts {
00031     class MainWindow;
00032 }
00033 namespace Sublime{
00034     class Controller;
00035     class View;
00036 }
00037 
00038 namespace KDevelop {
00039 
00040 class IDocument;
00041 
00042 class KDEVPLATFORMINTERFACES_EXPORT IToolViewFactory {
00043 public:
00044     virtual ~IToolViewFactory() {}
00045     virtual QWidget* create(QWidget *parent = 0) = 0;
00046     /* Return the identifier of this toolview.  The identifier
00047        is used to remember which areas the tool view should appear
00048        in, and must never change. */
00049     virtual QString id() const = 0;
00050     virtual Qt::DockWidgetArea defaultPosition() = 0;
00057     virtual QList<QAction*> toolBarActions( QWidget* viewWidget ) const { return viewWidget->actions(); }
00058     virtual void viewCreated(Sublime::View* view);
00059 };
00060 
00061 class KDEVPLATFORMINTERFACES_EXPORT IUiController {
00062 public:
00063     virtual ~IUiController();
00064 
00065     enum SwitchMode {
00066         ThisWindow ,
00067         NewWindow  
00068     };
00069 
00070     virtual void switchToArea(const QString &areaName, SwitchMode switchMode) = 0;
00071 
00072     virtual void addToolView(const QString &name, IToolViewFactory *factory) = 0;
00073     virtual void removeToolView(IToolViewFactory *factory) = 0;
00074 
00076     virtual KParts::MainWindow *activeMainWindow() = 0;
00077 
00079     virtual void registerStatus(QObject* status) = 0;
00080 
00081 
00089     virtual Sublime::Controller* controller() = 0;
00090 protected:
00091     IUiController();
00092 };
00093 
00094 }
00095 
00096 #endif
00097 

interfaces

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • 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