source: trunk/MagicSoft/Mars/mbase/MGTask.h@ 1958

Last change on this file since 1958 was 1664, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MGTask
2#define MARS_MGTask
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MTask //
7// //
8// Abstract base class for a task //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15
16class MParList;
17
18class TGLayoutHints;
19class TGCompositeFrame;
20
21class MGGroupFrame;
22
23class MGTask : public MTask
24{
25private:
26 MGGroupFrame *fFrame; //!
27
28 virtual void CreateGuiElements(MGGroupFrame *f) {}
29
30 void ShowGui();
31 void HideGui();
32
33protected:
34 TObject *FindWidget(Int_t id) const;
35
36public:
37 MGTask(const char *name=NULL, const char *title=NULL);
38 virtual ~MGTask();
39
40 Bool_t CallPreProcess(MParList *plist);
41 Bool_t CallPostProcess();
42
43 virtual Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
44
45 void CreateGui(TGCompositeFrame *f, TGLayoutHints *layout=NULL);
46
47 ClassDef(MGTask, 0) // Abstract base class for a task having a gui
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.