• 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
tabbedviews.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 2007,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 "tabbedviews.h"
24 #include "tabbedviews_p.h"
25 #include "tabbedviews.moc"
26 
27 
28 namespace Kasten2
29 {
30 
31 TabbedViews::TabbedViews( TabbedViewsPrivate* _d )
32  : AbstractGroupedViews( _d )
33 {
34  Q_D( TabbedViews );
35 
36  d->init();
37 }
38 
39 TabbedViews::TabbedViews()
40  : AbstractGroupedViews( new TabbedViewsPrivate(this) )
41 {
42  Q_D( TabbedViews );
43 
44  d->init();
45 }
46 
47 QList<AbstractView*> TabbedViews::viewList() const
48 {
49  Q_D( const TabbedViews );
50 
51  return d->viewList();
52 }
53 
54 int TabbedViews::viewCount() const
55 {
56  Q_D( const TabbedViews );
57 
58  return d->viewCount();
59 }
60 
61 int TabbedViews::indexOf( AbstractView* view ) const
62 {
63  Q_D( const TabbedViews );
64 
65  return d->indexOf( view );
66 }
67 
68 QWidget* TabbedViews::widget() const
69 {
70  Q_D( const TabbedViews );
71 
72  return d->widget();
73 }
74 
75 AbstractView* TabbedViews::viewFocus() const
76 {
77  Q_D( const TabbedViews );
78 
79  return d->viewFocus();
80 }
81 
82 bool TabbedViews::hasFocus() const
83 {
84  Q_D( const TabbedViews );
85 
86  return d->hasFocus();
87 }
88 
89 
90 void TabbedViews::addViews( const QList<AbstractView*>& views )
91 {
92  Q_D( TabbedViews );
93 
94  d->addViews( views );
95 }
96 
97 void TabbedViews::removeViews( const QList<AbstractView*>& views )
98 {
99  Q_D( TabbedViews );
100 
101  d->removeViews( views );
102 }
103 
104 void TabbedViews::setCurrentToolInlineView( AbstractToolInlineView* view )
105 {
106  Q_D( TabbedViews );
107 
108  d->setCurrentToolInlineView( view );
109 }
110 
111 void TabbedViews::setViewFocus( AbstractView* view )
112 {
113  Q_D( TabbedViews );
114 
115  d->setViewFocus( view );
116 }
117 
118 void TabbedViews::setFocus()
119 {
120  Q_D( TabbedViews );
121 
122  d->setFocus();
123 }
124 
125 
126 TabbedViews::~TabbedViews()
127 {
128 }
129 
130 }
Kasten2::AbstractView
Definition: abstractview.h:38
tabbedviews_p.h
Kasten2::TabbedViews::hasFocus
virtual bool hasFocus() const
Definition: tabbedviews.cpp:82
Kasten2::AbstractGroupedViews
Definition: abstractgroupedviews.h:37
Kasten2::AbstractToolInlineView
Definition: abstracttoolinlineview.h:39
Kasten2::TabbedViews::TabbedViews
TabbedViews()
Definition: tabbedviews.cpp:31
QWidget
Kasten2::TabbedViews::removeViews
virtual void removeViews(const QList< AbstractView * > &views)
Definition: tabbedviews.cpp:97
Kasten2::TabbedViews::setViewFocus
virtual void setViewFocus(AbstractView *view)
Definition: tabbedviews.cpp:111
Kasten2::TabbedViews::setCurrentToolInlineView
virtual void setCurrentToolInlineView(AbstractToolInlineView *view)
Definition: tabbedviews.cpp:104
Kasten2::TabbedViews::~TabbedViews
virtual ~TabbedViews()
Definition: tabbedviews.cpp:126
Kasten2::TabbedViewsPrivate
Definition: tabbedviews_p.h:39
Kasten2::TabbedViews::setFocus
virtual void setFocus()
Definition: tabbedviews.cpp:118
Kasten2::TabbedViews::viewFocus
virtual AbstractView * viewFocus() const
Definition: tabbedviews.cpp:75
Kasten2::TabbedViews::widget
virtual QWidget * widget() const
Definition: tabbedviews.cpp:68
Kasten2::TabbedViews
Definition: tabbedviews.h:41
tabbedviews.h
Kasten2::TabbedViews::viewList
virtual QList< AbstractView * > viewList() const
Definition: tabbedviews.cpp:47
Kasten2::TabbedViews::indexOf
int indexOf(AbstractView *view) const
Definition: tabbedviews.cpp:61
Kasten2::TabbedViews::addViews
virtual void addViews(const QList< AbstractView * > &views)
Definition: tabbedviews.cpp:90
Kasten2::TabbedViews::viewCount
virtual int viewCount() const
Definition: tabbedviews.cpp:54
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