1 /***************************************************************************
2 DockWidget part of KDEStudio
4 copyright : (C) 1999 by Judin Max
5 email : novaprint@mtu-net.ru
6 ***************************************************************************/
8 #ifndef DOCKMAINWINDOW_H
9 #define DOCKMAINWINDOW_H
11 #include <ktmainwindow.h>
14 #include "dockmanager.h"
30 class DockMainWindow
: public KTMainWindow
33 DockMainWindow( const char *name
= 0L );
36 void setDockManager( DockManager
* manager
);
37 DockManager
* manager(){ return dockManager
; }
39 void setView( QWidget
* );
40 DockWidget
* getMainViewDockWidget(){ return viewDock
; }
43 void setMainDockWidget( DockWidget
* );
44 DockWidget
* getMainDockWidget(){ return mainDockWidget
; }
47 DockWidget
* createDockWidget( const char* name
, const QPixmap
&pixmap
, QWidget
* parent
= 0L );
49 void writeDockConfig( KConfig
* c
= 0L, QString group
= QString() );
50 void readDockConfig ( KConfig
* c
= 0L, QString group
= QString() );
52 void activateDock(){ dockManager
->activate(); }
55 QPopupMenu
* dockMenu(){ return dockManager
->dockMenu(); }
58 void makeDockVisible( DockWidget
* dock
);
59 void makeWidgetDockVisible( QWidget
* widget
);
61 void setDockView( QWidget
* );
65 // void slotDockChange();
66 // void slotToggled( int );
67 // void slotReplaceDock( DockWidget* oldDock, DockWidget* newDock );
70 void toolBarManager( bool toggled
, dockPosData
&data
);
72 DockWidget
* mainDockWidget
;
74 DockManager
* dockManager
;