Ignore:
Timestamp:
11/21/03 17:01:15 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r2519 r2550  
    560560//
    561561MStatusDisplay::MStatusDisplay(Long_t t)
    562 : TGMainFrame(gClient ? gClient->GetRoot() : NULL, 1, 1), fTab(NULL), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLog(&gLog), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0)
    563 {
     562: TGMainFrame(NULL, 1, 1), fTab(NULL), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLog(&gLog), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0)
     563{
     564    // p==NULL means: Take gClient->GetRoot() if not in batch mode
     565    // see TGWindow::TGWindow()
     566
    564567    //
    565568    // This is a possibility for the user to check whether this
     
    13831386
    13841387    gLog << dbg << "MStatusDisplay is on heap: " << (int)IsOnHeap() << endl;
     1388
     1389    if (TestBit(kExitLoopOnExit))
     1390        gSystem->ExitLoop();
     1391    if (TestBit(kExitLoopOnClose))
     1392        gSystem->ExitLoop();
    13851393
    13861394    if (fIsLocked<=0 && IsOnHeap())
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r2493 r2550  
    5353        kSearch
    5454    } Status_t;
     55
     56    enum
     57    {
     58        kExitLoopOnExit  = BIT(14),
     59        kExitLoopOnClose = BIT(15)
     60     };
    5561
    5662protected:
Note: See TracChangeset for help on using the changeset viewer.