Ignore:
Timestamp:
08/30/01 16:02:20 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGCoordinates.cc

    r808 r921  
    1212
    1313MGCoordinates::MGCoordinates(const TGWindow* p,
     14                             const Int_t type,
    1415                             const Bool_t flag,
    15                              const char *txt1, const char *txt2,
    1616                             const Int_t deg1, const UInt_t min1, const UInt_t sec1,
    1717                             const Int_t deg2, const UInt_t min2, const UInt_t sec2)
    18 : TGFrame(p, 234, 76, kFixedSize)
     18: TGFrame(p, 244, 76, kFixedSize)
    1919{
     20    const Int_t t    = type==kETypeZdAz ? kETypeDeg : kETypeH;
     21    const char *txt1 = type==kETypeZdAz ? "Zenith Dist [\xb0]:" : "Right Ascension [h]:";
     22    const char *txt2 = type==kETypeZdAz ? "Azimuth [\xb0]:" : "Declination [\xb0]:";
     23
    2024    // p = pointer to MainFrame (not owner)
    21     fX = new MGCoordinate(this, flag, txt1, deg1, min1, sec1);
     25    fX = new MGCoordinate(this, t, flag, txt1, deg1, min1, sec1);
    2226    fX->Move(0, 0);
    2327
    24     fY = new MGCoordinate(this, flag, txt2, deg2, min2, sec2);
    25     fY->Move(120, 0);
     28    fY = new MGCoordinate(this, kETypeDeg, flag, txt2, deg2, min2, sec2);
     29    fY->Move(125, 0);
    2630
    2731    MapWindow();
Note: See TracChangeset for help on using the changeset viewer.