Ignore:
Timestamp:
03/14/07 19:12:17 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/gui
Files:
8 edited

Legend:

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

    r7790 r8376  
    11#include "MGAccuracy.h"
    22
    3 #include <iostream.h>  // cout
     3#include <iostream>  // cout
    44
    55#include <TArc.h>
     
    1616
    1717ClassImp(MGAccuracy);
     18
     19using namespace std;
    1820
    1921void MGAccuracy::DrawText(const char *c1, const char *c2, const char *c3, const char*txt)
     
    163165    dist *= 3600.; // [sec]
    164166
    165     int rs = (int)floor(fmod(dist, 60.));
     167    int rs = TMath::FloorNint(fmod(dist, (float)60.));
    166168
    167169    dist /= 60.;   // [min]
  • trunk/MagicSoft/Cosy/gui/MGCoordinate.cc

    r7794 r8376  
    88
    99#include <stdlib.h>    // atoi
    10 #include <iostream.h>  // cout
     10#include <iostream>  // cout
    1111
    1212#include <TSystem.h>
     
    1818
    1919ClassImp(MGCoordinate);
     20
     21using namespace std;
    2022
    2123enum {
     
    2527};
    2628
    27 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type=kETypeDeg,
     29MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type,
    2830                           const Int_t flag, const char *txt,
    2931                           const Int_t deg, const UInt_t min, const UInt_t sec)
     
    9193    TGLabel *label;
    9294
    93     const char *deg = type==kETypeDeg ? "\xb0" : "h";
    94     const char *min = type==kETypeDeg ? "'"    : "m";
    95     const char *sec = type==kETypeDeg ? "\""   : "s";
     95    const char *sdeg = type==kETypeDeg ? "\xb0" : "h";
     96    const char *smin = type==kETypeDeg ? "'"    : "m";
     97    const char *ssec = type==kETypeDeg ? "\""   : "s";
    9698
    9799    if (flag==1)
    98100    {
    99         label = new TGLabel(this, deg);
     101        label = new TGLabel(this, sdeg);
    100102        label->SetTextJustify(kTextLeft);
    101103        label->Move(37, 29-offset);
     
    103105        fList->Add(label);
    104106
    105         label = new TGLabel(this, min);
     107        label = new TGLabel(this, smin);
    106108        label->SetTextJustify(kTextLeft);
    107109        label->Move(71, 29-offset);
     
    109111        fList->Add(label);
    110112
    111         label = new TGLabel(this, sec);
     113        label = new TGLabel(this, ssec);
    112114        label->SetTextJustify(kTextLeft);
    113115        label->Move(107, 29-offset);
     
    116118    }
    117119
    118     label = new TGLabel(this, deg);
     120    label = new TGLabel(this, sdeg);
    119121    label->SetTextJustify(kTextLeft);
    120122    label->Move(39, ypos);
     
    122124    fList->Add(label);
    123125
    124     label = new TGLabel(this, min);
     126    label = new TGLabel(this, smin);
    125127    label->SetTextJustify(kTextLeft);
    126128    label->Move(73, ypos);
     
    128130    fList->Add(label);
    129131 
    130     label = new TGLabel(this, sec);
     132    label = new TGLabel(this, ssec);
    131133    label->SetTextJustify(kTextLeft);
    132134    label->Move(107, ypos);
     
    149151}
    150152
    151 void MGCoordinate::Print()
     153void MGCoordinate::Print(Option_t *o) const
    152154{
    153155    if (fLabel)
  • trunk/MagicSoft/Cosy/gui/MGCoordinate.h

    r7790 r8376  
    5858    Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
    5959
    60     void Print();
     60    void Print(Option_t *o="") const;
    6161
    6262    ClassDef(MGCoordinate, 0)
  • trunk/MagicSoft/Cosy/gui/MGCoordinates.cc

    r7790 r8376  
    77#include "MGCoordinates.h"
    88
    9 #include <iostream.h>  // cout
     9#include <iostream>  // cout
    1010
    1111#include "MGCoordinate.h"
     
    1313
    1414ClassImp(MGCoordinates);
     15
     16using namespace std;
    1517
    1618MGCoordinates::MGCoordinates(const TGWindow* p,
     
    5456}
    5557
    56 void MGCoordinates::Print()
     58void MGCoordinates::Print(Option_t *o) const
    5759{
    5860    fX->Print();
  • trunk/MagicSoft/Cosy/gui/MGCoordinates.h

    r7790 r8376  
    3737    void SetCoordinates(const XY &xy);
    3838
    39     void Print();
     39    void Print(Option_t *o="") const;
    4040
    4141    ClassDef(MGCoordinates, 0)
  • trunk/MagicSoft/Cosy/gui/MGCosy.cc

    r7794 r8376  
    11#include "MGCosy.h"
    22
    3 #include <iomanip.h>
    4 #include <iostream.h>
     3#include <iomanip>
     4#include <fstream>
    55
    66#include "msgqueue.h"
     
    4242
    4343ClassImp(MGCosy);
     44
     45using namespace std;
    4446
    4547#define IDM_EXIT   1
     
    827829    cout << "MGCosy: Setting Size" << endl;
    828830#endif
    829     const Int_t w = 1010;
    830     const Int_t h =  700;
    831     SetWMSizeHints(w, h, w, h, 1, 1);  // set the smallest and biggest size of the Main frame
     831    const Int_t ww = 1010;
     832    const Int_t hh =  700;
     833    SetWMSizeHints(ww, hh, ww, hh, 1, 1);  // set the smallest and biggest size of the Main frame
    832834
    833835    SetWindowName("Cosy Main Window");
     
    838840#endif
    839841    MapSubwindows();
    840     Resize(w, h); //GetDefaultSize());
     842    Resize(ww, hh); //GetDefaultSize());
    841843    MapWindow();
    842844}
  • trunk/MagicSoft/Cosy/gui/MGNumStars.cc

    r7794 r8376  
    11#include "MGNumStars.h"
    22
    3 #include <iostream.h>  // cout
     3#include <iostream>  // cout
    44
    55#include <TLine.h>
     
    1313
    1414ClassImp(MGNumStars);
     15
     16using namespace std;
    1517
    1618void MGNumStars::DrawText(const char*txt)
  • trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc

    r2751 r8376  
    77#include "MGSkyPosition.h"
    88
    9 #include <iostream.h>  // cout
     9#include <iostream>  // cout
    1010
    1111#include <TArc.h>
     
    2121
    2222ClassImp(MGSkyPosition);
     23
     24using namespace std;
    2325
    2426void MGSkyPosition::InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor)
Note: See TracChangeset for help on using the changeset viewer.