Changeset 10055 for trunk


Ignore:
Timestamp:
11/22/10 16:10:36 (14 years ago)
Author:
tbretz
Message:
Display canvas title in status line.
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r10054 r10055  
    2727     - added some comments
    2828     - fixed timing for a point source
     29
     30   * mbase/MStatusDisplay.cc:
     31     - display canvas title in status line
    2932
    3033
  • trunk/Mars/mbase/MStatusDisplay.cc

    r9598 r10055  
    12051205        return;
    12061206
     1207    const TString name  = c->GetName();
     1208    const TString title = c->GetTitle();
     1209
     1210    if (!title.IsNull() && name != title)
     1211        SetStatusLine1(title);
     1212
    12071213    //
    12081214    // If we are in a multithreaded environment (gThreadXAR) we
     
    23802386
    23812387            // Add the canvas to the list
    2382             c->SetTitle(gFile->GetName());
     2388            const TString name  = c->GetName();
     2389            const TString title = c->GetTitle();
     2390            if (title.IsNull() || name==title)
     2391                c->SetTitle(gFile->GetName());
    23832392            list.Add(c);
    23842393        }
Note: See TracChangeset for help on using the changeset viewer.