• 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
multiviewareas.cpp
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 #include "multiviewareas.h"
24 #include "multiviewareas_p.h"
25 #include "multiviewareas.moc"
26 
27 
28 namespace Kasten2
29 {
30 // TODO: catch area focues change!
31 MultiViewAreas::MultiViewAreas()
32  : AbstractGroupedViews( new MultiViewAreasPrivate(this) )
33 {
34  Q_D( MultiViewAreas );
35 
36  d->init();
37 }
38 
39 QList<AbstractView*> MultiViewAreas::viewList() const
40 {
41  Q_D( const MultiViewAreas );
42 
43  return d->viewList();
44 }
45 
46 int MultiViewAreas::viewCount() const
47 {
48  Q_D( const MultiViewAreas );
49 
50  return d->viewCount();
51 }
52 
53 int MultiViewAreas::indexOf( AbstractView* view ) const
54 {
55  Q_D( const MultiViewAreas );
56 
57  return d->indexOf( view );
58 }
59 
60 QWidget* MultiViewAreas::widget() const
61 {
62  Q_D( const MultiViewAreas );
63 
64  return d->widget();
65 }
66 
67 bool MultiViewAreas::hasFocus() const
68 {
69  Q_D( const MultiViewAreas );
70 
71  return d->hasFocus();
72 }
73 
74 AbstractView* MultiViewAreas::viewFocus() const
75 {
76  Q_D( const MultiViewAreas );
77 
78  return d->viewFocus();
79 }
80 
81 AbstractViewArea* MultiViewAreas::viewAreaFocus() const
82 {
83  Q_D( const MultiViewAreas );
84 
85  return d->viewAreaFocus();
86 }
87 
88 int MultiViewAreas::viewAreasCount() const
89 {
90  Q_D( const MultiViewAreas );
91 
92  return d->viewAreasCount(); }
93 
94 
95 void MultiViewAreas::setFocus()
96 {
97  Q_D( MultiViewAreas );
98 
99  d->setFocus();
100 }
101 
102 void MultiViewAreas::addViews( const QList<AbstractView*>& views )
103 {
104  Q_D( MultiViewAreas );
105 
106  d->addViews( views );
107 }
108 
109 void MultiViewAreas::removeViews( const QList<AbstractView*>& views )
110 {
111  Q_D( MultiViewAreas );
112 
113  d->removeViews( views );
114 }
115 
116 void MultiViewAreas::setCurrentToolInlineView( AbstractToolInlineView* view )
117 {
118  Q_D( MultiViewAreas );
119 
120  d->setCurrentToolInlineView( view );
121 }
122 
123 void MultiViewAreas::setViewFocus( AbstractView* view )
124 {
125  Q_D( MultiViewAreas );
126 
127  d->setViewFocus( view );
128 }
129 
130  //TODO: this method could be removed, as it is the same as viewArea->setFocus(), or?
131 void MultiViewAreas::setViewAreaFocus( AbstractViewArea* viewArea )
132 {
133  Q_D( MultiViewAreas );
134 
135  d->setViewAreaFocus( viewArea );
136 }
137 
138 AbstractViewArea* MultiViewAreas::splitViewArea( AbstractViewArea* viewArea, Qt::Orientation orientation )
139 {
140  Q_D( MultiViewAreas );
141 
142  return d->splitViewArea( viewArea, orientation );
143 }
144 
145 void MultiViewAreas::closeViewArea( AbstractViewArea* viewArea )
146 {
147  Q_D( MultiViewAreas );
148 
149  d->closeViewArea( viewArea );
150 }
151 
152 MultiViewAreas::~MultiViewAreas()
153 {
154 }
155 
156 }
Kasten2::AbstractView
Definition: abstractview.h:38
Kasten2::MultiViewAreas::setFocus
virtual void setFocus()
Definition: multiviewareas.cpp:95
Kasten2::MultiViewAreas::splitViewArea
virtual AbstractViewArea * splitViewArea(AbstractViewArea *viewArea, Qt::Orientation orientation)
returns the new view area
Definition: multiviewareas.cpp:138
Kasten2::MultiViewAreas::viewCount
virtual int viewCount() const
Definition: multiviewareas.cpp:46
Kasten2::MultiViewAreas::widget
virtual QWidget * widget() const
Definition: multiviewareas.cpp:60
Kasten2::AbstractToolInlineView
Definition: abstracttoolinlineview.h:39
Kasten2::MultiViewAreas::viewAreasCount
virtual int viewAreasCount() const
Definition: multiviewareas.cpp:88
QWidget
Kasten2::MultiViewAreas::hasFocus
virtual bool hasFocus() const
Definition: multiviewareas.cpp:67
Kasten2::MultiViewAreas
Definition: multiviewareas.h:42
Kasten2::MultiViewAreas::setViewAreaFocus
virtual void setViewAreaFocus(AbstractViewArea *viewArea)
Definition: multiviewareas.cpp:131
Kasten2::MultiViewAreas::setViewFocus
virtual void setViewFocus(AbstractView *view)
Definition: multiviewareas.cpp:123
Kasten2::MultiViewAreas::indexOf
int indexOf(AbstractView *view) const
Definition: multiviewareas.cpp:53
Kasten2::MultiViewAreas::setCurrentToolInlineView
virtual void setCurrentToolInlineView(AbstractToolInlineView *view)
Definition: multiviewareas.cpp:116
Kasten2::AbstractViewArea
Definition: abstractviewarea.h:41
Kasten2::MultiViewAreas::closeViewArea
virtual void closeViewArea(AbstractViewArea *viewArea)
Definition: multiviewareas.cpp:145
multiviewareas.h
Kasten2::MultiViewAreas::viewFocus
virtual AbstractView * viewFocus() const
Definition: multiviewareas.cpp:74
Kasten2::MultiViewAreas::addViews
virtual void addViews(const QList< AbstractView * > &views)
Definition: multiviewareas.cpp:102
Kasten2::MultiViewAreas::viewAreaFocus
virtual AbstractViewArea * viewAreaFocus() const
Definition: multiviewareas.cpp:81
Kasten2::MultiViewAreas::removeViews
virtual void removeViews(const QList< AbstractView * > &views)
Definition: multiviewareas.cpp:109
Kasten2::MultiViewAreas::viewList
virtual QList< AbstractView * > viewList() const
Definition: multiviewareas.cpp:39
multiviewareas_p.h
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:08 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