• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • libs
  • kasten
  • gui
  • shell
viewareasplitable.h
Go to the documentation of this file.
1 /*
2  This file is part of the Kasten Framework, made within the KDE community.
3 
4  Copyright 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef KASTEN_IF_VIEWAREASPLITABLE_H
24 #define KASTEN_IF_VIEWAREASPLITABLE_H
25 
26 // Qt
27 #include <QtCore/QtPlugin>
28 #include <QtCore/QList>
29 
30 
31 namespace Kasten2
32 {
33 
34 class AbstractViewArea;
35 
36 
37 namespace If
38 {
39 
40 // TODO: should split(Qt::Orientation) be a method of AbstractViewArea?
41 // TODO: split or add? difference in semantics?
42 // TODO: areas could be tabbed/stacked, too, also recursively. Support that?
43 // TODO: should views to part/sub-models be restricted to overview of document? No, or?
44 // TODO: where to decide what to do with the contained views of a area that is closed?
45 // TODO: where to decide what to do on a split, e.g. add a new view copy of the current one?
46 class ViewAreaSplitable
47 {
48  public:
49  virtual ~ViewAreaSplitable();
50 
51  public: // set/action
53  virtual AbstractViewArea* splitViewArea( AbstractViewArea* viewArea, Qt::Orientation orientation ) = 0;
54  virtual void closeViewArea( AbstractViewArea* viewArea ) = 0; // TODO: or report success with bool?
55  virtual void setViewAreaFocus( AbstractViewArea* viewArea ) = 0;
56 
57  public: // get
58  virtual AbstractViewArea* viewAreaFocus() const = 0;
59 // virtual QList<Kasten2::AbstractViewArea*> viewAreas() const = 0;
60  virtual int viewAreasCount() const = 0;
61 
62  public: // signal
63  virtual void viewAreasAdded( const QList<Kasten2::AbstractViewArea*>& viewAreas ) = 0;
64  virtual void viewAreasRemoved( const QList<Kasten2::AbstractViewArea*>& viewAreas ) = 0;
65  virtual void viewAreaFocusChanged( Kasten2::AbstractViewArea* viewArea ) = 0;
66 };
67 
68 
69 inline ViewAreaSplitable::~ViewAreaSplitable() {}
70 
71 }
72 }
73 
74 Q_DECLARE_INTERFACE( Kasten2::If::ViewAreaSplitable, "org.kde.kasten2.if.viewareasplitable/1.0" )
75 
76 #endif
Kasten2::If::ViewAreaSplitable::viewAreasRemoved
virtual void viewAreasRemoved(const QList< Kasten2::AbstractViewArea * > &viewAreas)=0
Kasten2::If::ViewAreaSplitable::splitViewArea
virtual AbstractViewArea * splitViewArea(AbstractViewArea *viewArea, Qt::Orientation orientation)=0
returns the new view area
Kasten2::If::ViewAreaSplitable::viewAreasCount
virtual int viewAreasCount() const =0
Kasten2::If::ViewAreaSplitable
Definition: viewareasplitable.h:46
Kasten2::If::ViewAreaSplitable::viewAreasAdded
virtual void viewAreasAdded(const QList< Kasten2::AbstractViewArea * > &viewAreas)=0
Kasten2::AbstractViewArea
Definition: abstractviewarea.h:41
Kasten2::If::ViewAreaSplitable::setViewAreaFocus
virtual void setViewAreaFocus(AbstractViewArea *viewArea)=0
Kasten2::If::ViewAreaSplitable::closeViewArea
virtual void closeViewArea(AbstractViewArea *viewArea)=0
Kasten2::If::ViewAreaSplitable::~ViewAreaSplitable
virtual ~ViewAreaSplitable()
Definition: viewareasplitable.h:69
Kasten2::If::ViewAreaSplitable::viewAreaFocus
virtual AbstractViewArea * viewAreaFocus() const =0
Kasten2::If::ViewAreaSplitable::viewAreaFocusChanged
virtual void viewAreaFocusChanged(Kasten2::AbstractViewArea *viewArea)=0
QList
Definition: bookmarkable.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal