source: trunk/MagicSoft/Cosy/gui/MGCoordinate.h@ 1159

Last change on this file since 1159 was 1111, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MGCOORDINATE_H
2#define MGCOORDINATE_H
3
4//
5// This File contains the declaration of the MGCoordinates-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10#ifndef ROOT_TGFrame
11#include <TGFrame.h>
12#endif
13#ifndef MGLIST_H
14#include "MGList.h"
15#endif
16
17enum {
18 kETypeDeg,
19 kETypeH
20};
21
22class TGLabel;
23class TGTextEntry;
24
25class MGCoordinate : public TGFrame
26{
27 Int_t fDeg;
28 Int_t fMin;
29 Int_t fSec;
30
31 MGList *fList;
32
33 TGTextEntry *fTextEntryDeg;
34 TGTextEntry *fTextEntryMin;
35 TGTextEntry *fTextEntrySec;
36
37 TGLabel *fLabelDeg;
38 TGLabel *fLabelMin;
39 TGLabel *fLabelSec;
40
41 TGLabel *fLabel;
42
43 void Set(TGLabel *label, const Int_t val);
44 void Set(TGTextEntry *entry, const Int_t val);
45 Bool_t Set(TGLabel *label, Int_t &val, TGTextEntry *label);
46
47public:
48 MGCoordinate(const TGWindow* p, const Int_t type=kETypeDeg,
49 const Bool_t flag=kTRUE, const char *txt="Coordinates:",
50 const Int_t deg=0, const UInt_t min=0, const UInt_t sec=0);
51 ~MGCoordinate();
52
53 Double_t GetVal() const;
54 void SetVal(Double_t d);
55
56 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
57
58 void Print();
59
60 ClassDef(MGCoordinate, 0)
61};
62
63#endif // MGIMAGE_H
Note: See TracBrowser for help on using the repository browser.