kmdi Library API Documentation

kmditoolviewaccessor.h

00001 //----------------------------------------------------------------------------
00002 //    filename             : kmditoolviewaccessor.h
00003 //----------------------------------------------------------------------------
00004 //    Project              : KDE MDI extension
00005 //
00006 //    begin                : 08/2003       by Joseph Wenninger (jowenn@kde.org)
00007 //    changes              : ---
00008 //    patches              : ---
00009 //
00010 //    copyright            : (C) 2003 by Joseph Wenninger (jowenn@kde.org)
00011 //----------------------------------------------------------------------------
00012 //
00013 //----------------------------------------------------------------------------
00014 //
00015 //    This program is free software; you can redistribute it and/or modify
00016 //    it under the terms of the GNU Library General Public License as
00017 //    published by the Free Software Foundation; either version 2 of the
00018 //    License, or (at your option) any later version.
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    class KMDIGUIClient;
00034 }
00035 
00036 
00037 class KMdiToolViewAccessor : public QObject
00038 {
00039    Q_OBJECT
00040 
00041 
00042    friend class KMdiMainFrm;
00043    friend class KMDIPrivate::KMDIGUIClient;
00044 
00045 private:
00051    bool m_bInterruptActivation;
00055    bool m_bMainframesActivateViewIsPending;
00059    bool m_bFocusInEventIsPending;
00060 
00061 private:
00062     KMdiToolViewAccessor( class KMdiMainFrm *parent , QWidget *widgetToWrap, const QString& tabToolTip = 0, const QString& tabCaption = 0);
00063     KMdiToolViewAccessor( class KMdiMainFrm *parent);
00064 public:
00065     ~KMdiToolViewAccessor();
00066     QWidget *wrapperWidget();
00067     QWidget *wrappedWidget();
00068     void place(KDockWidget::DockPosition pos = KDockWidget::DockNone, QWidget* pTargetWnd = 0L,int percent = 50);
00069     void placeAndShow(KDockWidget::DockPosition pos = KDockWidget::DockNone, QWidget* pTargetWnd = 0L,int percent = 50);
00070     void show();
00071 public slots:
00072     void setWidgetToWrap(QWidget* widgetToWrap, const QString& tabToolTip = 0, const QString& tabCaption = 0);
00073     void hide();
00074 private:
00075    class KMdiToolViewAccessorPrivate *d;
00076    class KMdiMainFrm *mdiMainFrm;
00077 
00078 protected:
00079     bool eventFilter(QObject *o, QEvent *e);
00080 };
00081 
00082 
00083 #endif //_KMDITOOLVIEWACCESSOR_H_
KDE Logo
This file is part of the documentation for kmdi Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jul 22 10:18:16 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003