• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kmdi/kmdi
 

kmdi/kmdi

  • kmdi
  • kmdi
dockcontainer.h
1 /* This file is part of the KDE project
2  Copyright (C) 2002, 2003 Joseph Wenninger <jowenn@kde.org>
3  Copyright (C) 2002, 2004 Christoph Cullmann <cullmann@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef _KMDI_DOCK_CONTAINER_
21 #define _KMDI_DOCK_CONTAINER_
22 
23 #include <tqwidget.h>
24 #include <tqstringlist.h>
25 #include <kdockwidget.h>
26 #include <tqmap.h>
27 
28 # include <kdockwidget_p.h>
29 
30 #include <tqpushbutton.h>
31 
32 class TQWidgetStack;
33 class KMultiTabBar;
34 class KDockButton_Private;
35 
36 namespace KMDI
37 {
38 
39 class DockContainer: public TQWidget, public KDockContainer
40 {
41  Q_OBJECT
42 
43  public:
44  DockContainer(TQWidget *parent, TQWidget *win, int position, int flags);
45  virtual ~DockContainer();
46 
48  KDockWidget *parentDockWidget();
49 
55  virtual void insertWidget (KDockWidget *w, TQPixmap, const TQString &, int &);
56 
61  virtual void showWidget (KDockWidget *w);
62 
69  virtual void setToolTip (KDockWidget *, TQString &);
70 
76  virtual void setPixmap(KDockWidget* widget, const TQPixmap& pixmap);
77 
83  virtual void undockWidget(KDockWidget* dwdg);
84 
90  virtual void removeWidget(KDockWidget*);
91 
92  void hideIfNeeded();
93 
94  virtual void save(KConfig *,const TQString& group_or_prefix);
95  virtual void load(KConfig *,const TQString& group_or_prefix);
96 
97  void setStyle(int);
98  protected:
99  bool eventFilter(TQObject*,TQEvent*);
100 
101  public slots:
102  void init();
103  void collapseOverlapped();
104  void toggle();
105  void nextToolView();
106  void prevToolView();
107  protected slots:
108  void tabClicked(int);
109  void delayedRaise();
110  void changeOverlapMode();
111  private:
112  TQWidget *m_mainWin;
113  TQWidgetStack *m_ws;
114  KMultiTabBar *m_tb;
115  int mTabCnt;
116  int oldtab;
117  int m_previousTab;
118  int m_position;
119  int m_separatorPos;
120  TQMap<KDockWidget*,int> m_map;
121  TQMap<int,KDockWidget*> m_revMap;
122  TQMap<KDockWidget*,KDockButton_Private*> m_overlapButtons;
123  TQStringList itemNames;
124  TQMap<TQString,TQString> tabCaptions;
125  TQMap<TQString,TQString> tabTooltips;
126  int m_inserted;
127  int m_delayedRaise;
128  bool m_vertical;
129  bool m_block;
130  bool m_tabSwitching;
131  TQObject *m_dragPanel;
132  KDockManager *m_dockManager;
133  TQMouseEvent *m_startEvent;
134  enum MovingState {NotMoving=0,WaitingForMoveStart,MovingInternal,Moving} m_movingState;
135  signals:
136  void activated(DockContainer*);
137  void deactivated(DockContainer*);
138 };
139 
140 }
141 
142 #endif
143 
144 // kate: space-indent on; indent-width 2; replace-tabs on;

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • Main Page
  • Namespace List
  • File List
  • Namespace Members

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kmdi/kmdi by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |