| Line | |
|---|
| 1 | #ifndef MGCOSY_H
|
|---|
| 2 | #define MGCOSY_H
|
|---|
| 3 |
|
|---|
| 4 | #ifndef ROOT_TGFrame
|
|---|
| 5 | #include <TGFrame.h>
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class TIterator;
|
|---|
| 9 |
|
|---|
| 10 | class TGLabel;
|
|---|
| 11 | class TGPopupMenu;
|
|---|
| 12 | class TGMenuBar;
|
|---|
| 13 | class TGHorizontal3DLine;
|
|---|
| 14 | class TGLayoutHints;
|
|---|
| 15 | class TGCompositeFrame;
|
|---|
| 16 | class TGTab;
|
|---|
| 17 | class TGListBox;
|
|---|
| 18 |
|
|---|
| 19 | class ZdAz;
|
|---|
| 20 | class RaDec;
|
|---|
| 21 | class MsgQueue;
|
|---|
| 22 |
|
|---|
| 23 | class MGImage;
|
|---|
| 24 | class MGList;
|
|---|
| 25 | class MGCoordinates;
|
|---|
| 26 | class MGSkyPosition;
|
|---|
| 27 | class MGAccuracy;
|
|---|
| 28 | class MGVelocity;
|
|---|
| 29 |
|
|---|
| 30 | class MGCosy : public TGMainFrame
|
|---|
| 31 | {
|
|---|
| 32 | private:
|
|---|
| 33 |
|
|---|
| 34 | //
|
|---|
| 35 | // Create a main frame with a number of different buttons.
|
|---|
| 36 | //
|
|---|
| 37 | TGLayoutHints *fLayMenuBar;
|
|---|
| 38 | TGLayoutHints *fLayMenuItem;
|
|---|
| 39 |
|
|---|
| 40 | MGList *fList;
|
|---|
| 41 |
|
|---|
| 42 | TGLabel **fLabel1;
|
|---|
| 43 | TGLabel **fLabel2;
|
|---|
| 44 | TGLabel **fLabel3;
|
|---|
| 45 |
|
|---|
| 46 | TGLabel *fOffsetZd;
|
|---|
| 47 | TGLabel *fOffsetAz;
|
|---|
| 48 |
|
|---|
| 49 | MGCoordinates *fCZdAz;
|
|---|
| 50 | MGCoordinates *fCRaDec;
|
|---|
| 51 |
|
|---|
| 52 | MGSkyPosition *fSkyPosition;
|
|---|
| 53 | MGAccuracy *fAccuracy;
|
|---|
| 54 | MGVelocity *fVelocity;
|
|---|
| 55 | MGVelocity *fOffset;
|
|---|
| 56 |
|
|---|
| 57 | MsgQueue *fQueue;
|
|---|
| 58 |
|
|---|
| 59 | TGTab *fTab;
|
|---|
| 60 |
|
|---|
| 61 | TGLabel *fError;
|
|---|
| 62 | TGLabel *fMoving;
|
|---|
| 63 | TGLabel *fTracking;
|
|---|
| 64 | TGLabel *fStopping;
|
|---|
| 65 | TGLabel *fStopped;
|
|---|
| 66 |
|
|---|
| 67 | TGListBox *fLog;
|
|---|
| 68 |
|
|---|
| 69 | void CreateMenu();
|
|---|
| 70 | void CreateLabel(TGCompositeFrame *f);
|
|---|
| 71 | void CreateTabs(TGTab *fTab);
|
|---|
| 72 |
|
|---|
| 73 | void StartPos();
|
|---|
| 74 | void StartTrack();
|
|---|
| 75 |
|
|---|
| 76 | void EnableLabel(TGLabel *label, Bool_t stat);
|
|---|
| 77 | void UpdateOffset(ZdAz &off);
|
|---|
| 78 |
|
|---|
| 79 | public:
|
|---|
| 80 | MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
|
|---|
| 81 | ~MGCosy();
|
|---|
| 82 |
|
|---|
| 83 | void CloseWindow();
|
|---|
| 84 |
|
|---|
| 85 | TGLabel **GetLabel1() const { return fLabel1; }
|
|---|
| 86 | TGLabel **GetLabel2() const { return fLabel2; }
|
|---|
| 87 | TGLabel **GetLabel3() const { return fLabel3; }
|
|---|
| 88 |
|
|---|
| 89 | TGListBox *GetLog() const { return fLog; }
|
|---|
| 90 |
|
|---|
| 91 | void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, UInt_t stat);
|
|---|
| 92 |
|
|---|
| 93 | Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
|
|---|
| 94 |
|
|---|
| 95 | ClassDef(MGCosy, 0)
|
|---|
| 96 | };
|
|---|
| 97 |
|
|---|
| 98 | #endif
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.