Ignore:
Timestamp:
09/26/01 15:23:21 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MBrowser.cc

    r947 r950  
    175175}
    176176
    177 void MBrowser::CreateTab1(TGCompositeFrame *frame)
    178 {
     177void MBrowser::CreateTab1()
     178{
     179    TGCompositeFrame *frame = CreateNewTab("Input File");
     180
    179181    //
    180182    // Create three frames for the first tab
     
    202204}
    203205
     206TGCompositeFrame *MBrowser::CreateNewTab(const char *name)
     207{
     208    return fTabs->AddTab(name);
     209}
     210
    204211void MBrowser::CreateLowerFrame(TGCompositeFrame *framelow)
    205212{
     
    211218    // ----- Create Object holding the Tabs -----
    212219    //
    213     TGTab *tabs = new TGTab(framelow, 400, 400);
    214     fList->Add(tabs);
     220    fTabs = new TGTab(framelow, 400, 400);
     221    fList->Add(fTabs);
    215222
    216223    TGLayoutHints *laytabs = new TGLayoutHints(kLHintsBottom|kLHintsExpandX|kLHintsExpandY, 5, 5, 5, 5);
    217224    fList->Add(laytabs);
    218225
    219     framelow->AddFrame(tabs, laytabs);
     226    framelow->AddFrame(fTabs, laytabs);
    220227
    221228    //
    222229    // --- Create the first tab of the tabs ---
    223230    //
    224     TGCompositeFrame *tf = tabs->AddTab("Input File");
    225 
    226     CreateTab1(tf);
     231    CreateTab1();
    227232}
    228233
Note: See TracChangeset for help on using the changeset viewer.