Ignore:
Timestamp:
08/23/01 14:40:17 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r912 r913  
    99#include <TSystem.h>       // gSystem
    1010#include <TGLabel.h>       // TGLabel
    11 #include <TGSplitter.h>    // TGHorizontal3DLine
     11#include <TG3DLine.h>      // TGHorizontal3DLine (TGSplitter)
    1212#include <TApplication.h>  // gApplication
    1313
     
    1919#include "MGCoordinates.h"
    2020#include "MGSkyPosition.h"
     21#include "MGVelocity.h"
    2122
    2223#include "SlaStars.h"
     
    156157    fList->Add(fCoord);
    157158
    158     fAccuracy = new MGAccuracy(this, 200, 200);
    159     fAccuracy->Move(320, 260);
    160     fList->Add(fAccuracy);
    161 
    162     fSkyPosition = new MGSkyPosition(this, 200, 200);
     159    fSkyPosition = new MGSkyPosition(this, 300);
    163160    fSkyPosition->Move(320, 40);
    164161    fList->Add(fSkyPosition);
    165162
     163    fAccuracy = new MGAccuracy(this, 300);
     164    fAccuracy->Move(320, 360);
     165    fList->Add(fAccuracy);
     166
     167    fVelocity = new MGVelocity(this, "Velocity ['/min]", 300);
     168    fVelocity->Move(10, 360);
     169    fList->Add(fVelocity);
     170
     171    fOffset = new MGVelocity(this, "Offset se-re [']", 300);
     172    fOffset->Move(630, 360);
     173    fList->Add(fOffset);
     174
    166175    //
    167176    //   Map the window, set up the layout, etc.
    168177    //
    169     SetWMSizeHints(550, 500, 550, 500, 10, 10);  // set the smallest and biggest size of the Main frame
     178    const Int_t w = 650+310;
     179    const Int_t h = 690;
     180    SetWMSizeHints(w, h, w, h, 10, 10);  // set the smallest and biggest size of the Main frame
    170181
    171182    MapSubwindows();
     
    178189}
    179190
    180 
    181 
    182191// ======================================================================
    183192
     
    196205}
    197206// ======================================================================
    198 void MGCosy::Update(ZdAz pos, ZdAz acc)
     207void MGCosy::Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off)
    199208{
    200209    fSkyPosition->Update(pos);
    201210    fAccuracy->Update(acc);
     211    fVelocity->Update(vel);
     212    fOffset->Update(off);
    202213}
    203214// ======================================================================
Note: See TracChangeset for help on using the changeset viewer.