• 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
shellwindow_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 2007-2008,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 SHELLWINDOW_P_H
24 #define SHELLWINDOW_P_H
25 
26 // lib
27 #include "shellwindow.h"
28 // Okteta core
29 #include <kastencore.h>
30 // Qt
31 #include <QtCore/QList>
32 
33 
34 namespace Kasten2
35 {
36 class AbstractModelSynchronizer;
37 class AbstractDocument;
38 class AbstractTool;
39 
40 
41 class ShellWindowPrivate
42 {
43  public:
44  ShellWindowPrivate( ShellWindow* parent,
45  ViewManager* viewManager );
46  ~ShellWindowPrivate();
47 
48  public:
49  MultiViewAreas* viewArea() const;
50  ViewManager* viewManager() const;
51 
52  public:
53  void updateControllers( AbstractView* view );
54  void addXmlGuiController( AbstractXmlGuiController* controller );
55  void addTool( AbstractToolView* toolView );
56  void showDocument( AbstractDocument* document );
57 
58  public: // If::WidgetsDockable API
59  QList<ToolViewDockWidget*> dockWidgets() const;
60 
61  private: // Q_SLOTS
62  void onTitleChanged( const QString& newTitle );
63  void onContentFlagsChanged( Kasten2::ContentFlags contentFlags );
64  void onLocalSyncStateChanged( Kasten2::LocalSyncState newState );
65  void onViewFocusChanged( Kasten2::AbstractView* view );
66  void onToolVisibilityChanged( bool isVisible );
67  void onSynchronizerDeleted( QObject* synchronizer );
68 
69  protected:
70  Q_DECLARE_PUBLIC( ShellWindow )
71 
72  protected:
73  ShellWindow* const q_ptr;
74 
75  MultiViewAreas* mGroupedViews;
76  // hack:
77  // used to store a pointer to the current, so we can disconnect to its signals... well, not perfect
78  AbstractView* mCurrentView;
79  AbstractDocument* mCurrentDocument;
80  AbstractModelSynchronizer* mCurrentSynchronizer;
81 
82  ViewManager* mViewManager;
83  QList<AbstractXmlGuiController*> mControllers;
84 
85  QList<ToolViewDockWidget*> mDockWidgets;
86  QList<AbstractTool*> mTools;
87 };
88 
89 
90 inline MultiViewAreas* ShellWindowPrivate::viewArea() const { return mGroupedViews; }
91 inline ViewManager* ShellWindowPrivate::viewManager() const { return mViewManager; }
92 inline QList<ToolViewDockWidget*> ShellWindowPrivate::dockWidgets() const { return mDockWidgets; }
93 
94 inline void ShellWindowPrivate::addXmlGuiController( AbstractXmlGuiController* controller )
95 {
96  mControllers.append( controller );
97 }
98 
99 }
100 
101 #endif
Kasten2::AbstractView
Definition: abstractview.h:38
Kasten2::ShellWindowPrivate::mDockWidgets
QList< ToolViewDockWidget * > mDockWidgets
Definition: shellwindow_p.h:85
Kasten2::LocalSyncState
LocalSyncState
Definition: kastencore.h:33
Kasten2::ShellWindowPrivate::mCurrentDocument
AbstractDocument * mCurrentDocument
Definition: shellwindow_p.h:79
Kasten2::ShellWindowPrivate::~ShellWindowPrivate
~ShellWindowPrivate()
Kasten2::ShellWindowPrivate::updateControllers
void updateControllers(AbstractView *view)
Kasten2::ViewManager
Definition: viewmanager.h:40
QObject
shellwindow.h
Kasten2::ShellWindowPrivate::mViewManager
ViewManager * mViewManager
Definition: shellwindow_p.h:82
Kasten2::MultiViewAreas
Definition: multiviewareas.h:42
Kasten2::ShellWindowPrivate
Definition: shellwindow_p.h:41
Kasten2::ShellWindowPrivate::mGroupedViews
MultiViewAreas * mGroupedViews
Definition: shellwindow_p.h:75
Kasten2::ShellWindowPrivate::ShellWindowPrivate
ShellWindowPrivate(ShellWindow *parent, ViewManager *viewManager)
Kasten2::ShellWindowPrivate::showDocument
void showDocument(AbstractDocument *document)
Kasten2::ShellWindowPrivate::mTools
QList< AbstractTool * > mTools
Definition: shellwindow_p.h:86
Kasten2::ShellWindowPrivate::viewManager
ViewManager * viewManager() const
Definition: shellwindow_p.h:91
Kasten2::ShellWindowPrivate::mControllers
QList< AbstractXmlGuiController * > mControllers
Definition: shellwindow_p.h:83
Kasten2::ShellWindowPrivate::mCurrentView
AbstractView * mCurrentView
Definition: shellwindow_p.h:78
Kasten2::AbstractDocument
Definition: abstractdocument.h:43
kastencore.h
Kasten2::AbstractToolView
Definition: abstracttoolview.h:39
Kasten2::ShellWindowPrivate::addXmlGuiController
void addXmlGuiController(AbstractXmlGuiController *controller)
Definition: shellwindow_p.h:94
Kasten2::ShellWindow
Definition: shellwindow.h:47
Kasten2::AbstractModelSynchronizer
possible actions:
Definition: abstractmodelsynchronizer.h:61
Kasten2::ShellWindowPrivate::dockWidgets
QList< ToolViewDockWidget * > dockWidgets() const
Definition: shellwindow_p.h:92
Kasten2::ShellWindowPrivate::q_ptr
ShellWindow *const q_ptr
Definition: shellwindow_p.h:73
Kasten2::ShellWindowPrivate::mCurrentSynchronizer
AbstractModelSynchronizer * mCurrentSynchronizer
Definition: shellwindow_p.h:80
Kasten2::ShellWindowPrivate::viewArea
MultiViewAreas * viewArea() const
Definition: shellwindow_p.h:90
QList
Definition: bookmarkable.h:29
Kasten2::AbstractXmlGuiController
Definition: abstractxmlguicontroller.h:32
Kasten2::ShellWindowPrivate::addTool
void addTool(AbstractToolView *toolView)
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