Changeset 2484 for trunk/MagicSoft


Ignore:
Timestamp:
11/07/03 14:50:27 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2481 r2484  
    2222   * mhist/Makefile, mhist/HistLinkDef.h:
    2323     - added MHEvent
     24
     25   * NEWS:
     26     - updated
     27     
     28   * mhist/MHCamera.[h,cc]:
     29     - implemented kNoLegend=BIT(20)
     30     - Clear pad before drawing Camera
     31
     32   * mmain/MStatusDisplay.cc:
     33     - print when updating ps-header
    2434
    2535
  • trunk/MagicSoft/Mars/NEWS

    r2472 r2484  
    1414     upcomming camera version 0.7. The base for a general support
    1515     is implemented and the star-functionality is proven to work.
     16   - Replaced Event-Display in and Camera-Display in the Mars GUI
     17     executable by a more convinient display base on MStatusDisplay.
    1618
    1719
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2476 r2484  
    399399    // Maintain aspect ratio
    400400    //
    401     const float ratio = 1.15;
     401    const float ratio = TestBit(kNoLegend) ? 1 : 1.15;
    402402
    403403    //
     
    447447        max += 1;
    448448
    449     UpdateLegend(min, max, islog);
     449    if (!TestBit(kNoLegend))
     450        UpdateLegend(min, max, islog);
    450451
    451452    MHexagon hex;
     
    532533        return;
    533534    }
     535
     536    gPad->Clear();
    534537
    535538    // Maintain aspect ratio
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2421 r2484  
    3030public:
    3131    enum {
    32         kProfile = BIT(18),
    33         kFreezed = BIT(19)
     32        kProfile  = BIT(18),
     33        kFreezed  = BIT(19),
     34        kNoLegend = BIT(20)
    3435    };
    3536private:
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r2483 r2484  
    271271    // Create the gui elements
    272272    //
    273     TGTextButton *prevevt = new TGTextButton(top2, "<< Previous Event", kEvtPrev);
     273    TGTextButton *prevevt = new TGTextButton(top2, " << ", kEvtPrev);
    274274    prevevt->Associate(this);
    275275
    276     TGLabel *evtnr = new TGLabel(top2, new TGString("Event: "));
     276    TGLabel *evtnr = new TGLabel(top2, new TGString("Event:"));
    277277
    278278    TGTextEntry *entry=new TGTextEntry(top2, new TGTextBuffer(100), kEvtNumber);
     
    280280    entry->Associate(this);
    281281
    282     fNumOfEvts = new TGLabel(top2, "out of           Events.");
    283 
    284     TGTextButton *nextevt = new TGTextButton (top2, "Next Event >>", kEvtNext);
     282    fNumOfEvts = new TGLabel(top2, "of           .");
     283
     284    TGTextButton *nextevt = new TGTextButton (top2, " >> ", kEvtNext);
    285285    nextevt->Associate(this);
    286286
     
    438438    TCanvas &c=AddTab("Geometry");
    439439
     440    c.SetFillColor(16);
     441
    440442    MHCamera *cam = new MHCamera(*geom);
    441     cam->SetBit(TH1::kNoStats);
     443    cam->SetBit(TH1::kNoStats|MHCamera::kNoLegend);
    442444    cam->Draw();
    443445    cam->DrawPixelIndices();
     
    452454    ReadinEvent();
    453455
    454     TGString *txt = new TGString(Form("out of %d Events", GetReader()->GetEntries()));
     456    TGString *txt = new TGString(Form("of %d.", GetReader()->GetEntries()));
    455457    fNumOfEvts->SetText(txt);
    456458
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc

    r2477 r2484  
    18581858
    18591859    ps.Close();
     1860
     1861    if (num<0)
     1862        *fLog << inf << " - ";
     1863
     1864    SetStatusLine2("Updating Postscript header...");
     1865    *fLog << inf << "Updating Postscript header..." << flush;
    18601866    UpdatePSHeader(name);
     1867    *fLog << inf << "done." << endl;
     1868
    18611869
    18621870    gVirtualPS = psave;
Note: See TracChangeset for help on using the changeset viewer.