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