Solaris' ln needs -s -f instead of -sf.
[kdbg.git] / DockWidget / dockmainwindow.h
blobdc12858313790ca310f56c4ecb0816bd853b99be
1 /***************************************************************************
2 DockWidget part of KDEStudio
3 -------------------
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>
12 #include <qpixmap.h>
14 #include "dockmanager.h"
16 class QPopupMenu;
17 class KToolBar;
18 class KConfig;
20 #ifdef DOCK_ORIGINAL
21 struct dockPosData
23 DockWidget* dock;
24 DockWidget* dropDock;
25 DockPosition pos;
26 int sepPos;
28 #endif
30 class DockMainWindow : public KTMainWindow
31 {Q_OBJECT
32 public:
33 DockMainWindow( const char *name = 0L );
34 ~DockMainWindow();
36 void setDockManager( DockManager* manager );
37 DockManager* manager(){ return dockManager; }
39 void setView( QWidget* );
40 DockWidget* getMainViewDockWidget(){ return viewDock; }
42 #ifdef DOCK_ORIGINAL
43 void setMainDockWidget( DockWidget* );
44 DockWidget* getMainDockWidget(){ return mainDockWidget; }
45 #endif
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(); }
54 #ifdef DOCK_ORIGINAL
55 QPopupMenu* dockMenu(){ return dockManager->dockMenu(); }
56 #endif
58 void makeDockVisible( DockWidget* dock );
59 void makeWidgetDockVisible( QWidget* widget );
61 void setDockView( QWidget* );
63 #ifdef DOCK_ORIGINAL
64 protected slots:
65 // void slotDockChange();
66 // void slotToggled( int );
67 // void slotReplaceDock( DockWidget* oldDock, DockWidget* newDock );
69 protected:
70 void toolBarManager( bool toggled, dockPosData &data );
72 DockWidget* mainDockWidget;
73 #endif
74 DockManager* dockManager;
76 #ifdef DOCK_ORIGINAL
77 dockPosData DockL;
78 dockPosData DockR;
79 dockPosData DockT;
80 dockPosData DockB;
82 KToolBar* toolbar;
83 #endif
84 DockWidget* viewDock;
87 #endif