kmditoolviewaccessor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KMDITOOLVIEWACCESSOR_H_
00022 #define _KMDITOOLVIEWACCESSOR_H_
00023
00024 #include <qwidget.h>
00025 #include <qpixmap.h>
00026 #include <qrect.h>
00027 #include <qapplication.h>
00028 #include <qdatetime.h>
00029
00030 #include <kdockwidget.h>
00031
00032 namespace KMDIPrivate
00033 {
00034 class KMDIGUIClient;
00035 }
00036
00037
00038 class KMDI_EXPORT KMdiToolViewAccessor : public QObject
00039 {
00040 Q_OBJECT
00041
00042
00043 friend class KMdiMainFrm;
00044 friend class KMDIPrivate::KMDIGUIClient;
00045
00046 private:
00052 bool m_bInterruptActivation;
00056 bool m_bMainframesActivateViewIsPending;
00060 bool m_bFocusInEventIsPending;
00061
00062 private:
00063 KMdiToolViewAccessor( class KMdiMainFrm *parent , QWidget *widgetToWrap, const QString& tabToolTip = 0, const QString& tabCaption = 0 );
00064 KMdiToolViewAccessor( class KMdiMainFrm *parent );
00065 public:
00066 ~KMdiToolViewAccessor();
00067 QWidget *wrapperWidget();
00068 QWidget *wrappedWidget();
00069 void place( KDockWidget::DockPosition pos = KDockWidget::DockNone, QWidget* pTargetWnd = 0L, int percent = 50 );
00070 void placeAndShow( KDockWidget::DockPosition pos = KDockWidget::DockNone, QWidget* pTargetWnd = 0L, int percent = 50 );
00071 void show();
00072 public slots:
00073 void setWidgetToWrap( QWidget* widgetToWrap, const QString& tabToolTip = 0, const QString& tabCaption = 0 );
00074 void hide();
00075 private:
00076 class KMdiToolViewAccessorPrivate *d;
00077 class KMdiMainFrm *mdiMainFrm;
00078
00079 protected:
00080 bool eventFilter( QObject *o, QEvent *e );
00081 };
00082
00083
00084 #endif //_KMDITOOLVIEWACCESSOR_H_
00085
00086
|