00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TGO4WORKSPACE_H
00017 #define TGO4WORKSPACE_H
00018
00019 #include "qworkspace.h"
00020 #include "qevent.h"
00021
00022 class TGo4PreviewPanel;
00023 class TPad;
00028 class TGo4WorkSpace : public QWorkspace
00029 {
00030 Q_OBJECT
00031
00032 public:
00033 TGo4WorkSpace(QWidget *parent);
00034 virtual ~TGo4WorkSpace();
00035 void closeEvent( QCloseEvent * ce );
00036 void DelViewPanel(TGo4PreviewPanel *View);
00037 void NewViewPanel(TGo4PreviewPanel *View);
00038 void ViewPanelActivated(TGo4PreviewPanel *View);
00039 void ActivePadChanged(TGo4PreviewPanel *fxView, TPad *Pad);
00040 void PadClicked(TGo4PreviewPanel *fxView, TPad *Pad);
00041 TGo4PreviewPanel *GetLastActiveViewPanel(){return fxActivePanel;}
00042 protected:
00043 virtual bool eventFilter( QObject *fx, QEvent *e );
00044
00045 signals:
00046 void newChild(TGo4PreviewPanel *);
00047 void childRemoved(TGo4PreviewPanel *);
00048 void ActivePad(TGo4PreviewPanel *, TPad *);
00049 void PadMouseClick(TGo4PreviewPanel *fxView, TPad *Pad);
00050
00051 private:
00052 TGo4PreviewPanel *fxActivePanel;
00054 bool fbTerminating;
00055 };
00056 #endif //TGO4WORKSPACE_H
00057
00058
00059
00060