You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
998 B
C++
49 lines
998 B
C++
#pragma once
|
|
|
|
#include <QPainter>
|
|
#include <QApplication>
|
|
#include <QMouseEvent>
|
|
#include <QMdiSubWindow>
|
|
|
|
#include "IxDynObj.h"
|
|
#include "iBase_global.h"
|
|
#include "iPlugin_global.h"
|
|
|
|
// QMdiSubWindow进一步封装
|
|
class I_PLUGIN_EXPORT ZxMdiSubWindow :
|
|
public QMdiSubWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
ZxMdiSubWindow(bool bNovelQss, QWidget* parent = 0);
|
|
~ZxMdiSubWindow();
|
|
|
|
void setBindingObj(IxDynObj* p);
|
|
IxDynObj* getBindingObj();
|
|
|
|
protected:
|
|
|
|
bool eventFilter(QObject*, QEvent*);
|
|
|
|
void showEvent(QShowEvent *event);
|
|
void hideEvent(QHideEvent* event);
|
|
void changeEvent(QEvent* event);
|
|
void closeEvent(QCloseEvent* event);
|
|
void resizeEvent(QResizeEvent* event);
|
|
void mouseDoubleClickEvent(QMouseEvent* event);
|
|
|
|
signals:
|
|
|
|
// b:返回的是,是否允许关闭
|
|
void sigConformClosing(bool& b);
|
|
|
|
// 一旦关闭后,通知刷新状态
|
|
void sigMdiClosed();
|
|
|
|
private:
|
|
|
|
IxDynObj* m_pBindingObj; //这是绑定的Obj对象
|
|
};
|