• 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
singleviewwindow_p.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 2011-2012 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 SINGLEVIEWWINDOW_P_H
24 #define SINGLEVIEWWINDOW_P_H
25 
26 // lib
27 #include "singleviewwindow.h"
28 // Kasten core
29 #include <kastencore.h>
30 
31 class QDragMoveEvent;
32 class QDropEvent;
33 
34 
35 namespace Kasten2
36 {
37 
38 class SingleViewArea;
39 class AbstractTool;
40 class AbstractModelSynchronizer;
41 class AbstractDocument;
42 
43 
44 class SingleViewWindowPrivate
45 {
46  public:
47  SingleViewWindowPrivate( SingleViewWindow* parent,
48  AbstractView* view );
49 
50  ~SingleViewWindowPrivate();
51 
52  public:
53  void init();
54 
55  public:
56  void setView( AbstractView* view );
57  void addXmlGuiController( AbstractXmlGuiController* controller );
58  void addTool( AbstractToolView* toolView );
59 
60  public: // If::WidgetsDockable API
61  QList<ToolViewDockWidget*> dockWidgets() const;
62 
63  protected:
64  AbstractView* view() const;
65  SingleViewArea* viewArea() const;
66 
67  private: // Q_SLOTS
68  void onTitleChanged( const QString& newTitle );
69  void onContentFlagsChanged( Kasten2::ContentFlags contentFlags );
70  void onLocalSyncStateChanged( Kasten2::LocalSyncState newState );
71  void onToolVisibilityChanged( bool isVisible );
72  void onSynchronizerDeleted( QObject* synchronizer );
73 
74  protected:
75  Q_DECLARE_PUBLIC( SingleViewWindow )
76 
77  protected:
78  SingleViewWindow* const q_ptr;
79 
80  AbstractView* mView;
81  AbstractDocument* mDocument;
82  AbstractModelSynchronizer* mSynchronizer;
83 
84  SingleViewArea* const mViewArea;
85  QList<AbstractXmlGuiController*> mControllers;
86  QList<ToolViewDockWidget*> mDockWidgets;
87  QList<AbstractTool*> mTools;
88 };
89 
90 
91 inline QList<ToolViewDockWidget*> SingleViewWindowPrivate::dockWidgets() const { return mDockWidgets; }
92 inline AbstractView* SingleViewWindowPrivate::view() const { return mView; }
93 inline SingleViewArea* SingleViewWindowPrivate::viewArea() const { return mViewArea; }
94 
95 }
96 
97 #endif
Kasten2::AbstractView
Definition: abstractview.h:38
Kasten2::LocalSyncState
LocalSyncState
Definition: kastencore.h:33
Kasten2::SingleViewWindowPrivate::~SingleViewWindowPrivate
~SingleViewWindowPrivate()
Kasten2::SingleViewWindowPrivate
Definition: singleviewwindow_p.h:44
Kasten2::SingleViewWindowPrivate::init
void init()
QObject
Kasten2::SingleViewWindowPrivate::addXmlGuiController
void addXmlGuiController(AbstractXmlGuiController *controller)
Kasten2::SingleViewWindowPrivate::mDockWidgets
QList< ToolViewDockWidget * > mDockWidgets
Definition: singleviewwindow_p.h:86
Kasten2::SingleViewArea
Definition: singleviewarea.h:40
Kasten2::SingleViewWindowPrivate::dockWidgets
QList< ToolViewDockWidget * > dockWidgets() const
Definition: singleviewwindow_p.h:91
Kasten2::SingleViewWindowPrivate::SingleViewWindowPrivate
SingleViewWindowPrivate(SingleViewWindow *parent, AbstractView *view)
Kasten2::SingleViewWindowPrivate::mSynchronizer
AbstractModelSynchronizer * mSynchronizer
Definition: singleviewwindow_p.h:82
Kasten2::SingleViewWindowPrivate::view
AbstractView * view() const
Definition: singleviewwindow_p.h:92
Kasten2::SingleViewWindowPrivate::mTools
QList< AbstractTool * > mTools
Definition: singleviewwindow_p.h:87
Kasten2::AbstractDocument
Definition: abstractdocument.h:43
Kasten2::SingleViewWindow
Definition: singleviewwindow.h:47
kastencore.h
Kasten2::AbstractToolView
Definition: abstracttoolview.h:39
Kasten2::SingleViewWindowPrivate::addTool
void addTool(AbstractToolView *toolView)
Kasten2::AbstractModelSynchronizer
possible actions:
Definition: abstractmodelsynchronizer.h:61
singleviewwindow.h
Kasten2::SingleViewWindowPrivate::viewArea
SingleViewArea * viewArea() const
Definition: singleviewwindow_p.h:93
Kasten2::SingleViewWindowPrivate::setView
void setView(AbstractView *view)
Kasten2::SingleViewWindowPrivate::mDocument
AbstractDocument * mDocument
Definition: singleviewwindow_p.h:81
Kasten2::SingleViewWindowPrivate::mViewArea
SingleViewArea *const mViewArea
Definition: singleviewwindow_p.h:84
Kasten2::SingleViewWindowPrivate::mControllers
QList< AbstractXmlGuiController * > mControllers
Definition: singleviewwindow_p.h:85
Kasten2::SingleViewWindowPrivate::mView
AbstractView * mView
Definition: singleviewwindow_p.h:80
QList
Definition: bookmarkable.h:29
Kasten2::SingleViewWindowPrivate::q_ptr
SingleViewWindow *const q_ptr
Definition: singleviewwindow_p.h:78
Kasten2::AbstractXmlGuiController
Definition: abstractxmlguicontroller.h:32
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