TestMCTree Class Reference

#include <TestMCTree.h>

List of all members.

Public Member Functions

 TestMCTree ()
 ~TestMCTree ()
void SpawnMCTree (Mint *mint)

Private Attributes

MCTreefTree

Detailed Description

Id
TestMCTree.h,v 1.1 2003/01/03 22:25:55 bv Exp

Definition at line 24 of file TestMCTree.h.


Constructor & Destructor Documentation

TestMCTree::TestMCTree (  ) 

Definition at line 13 of file TestMCTree.cxx.

00013 :fTree(0) { }

TestMCTree::~TestMCTree (  ) 

Definition at line 14 of file TestMCTree.cxx.

References fTree.

00014 { if (fTree) delete fTree; }


Member Function Documentation

void TestMCTree::SpawnMCTree ( Mint mint  ) 

Definition at line 18 of file TestMCTree.cxx.

References GuiScrolled::Add(), GuiCompositeFrameBase::Add(), GuiMainWindow::close_window, GuiMainWindow::ConnectClose(), fTree, Mint::GetJint(), Jint::mom_modified, GuiBase::SetLayoutHints(), GuiMainWindow::ShowAll(), and MCTree::Update().

00019 {
00020     GuiMainWindow* gmw = new GuiMainWindow(300,300); // no delete
00021 
00022     GuiScrolled* scrolled = manage(new GuiScrolled(*gmw));
00023     scrolled->SetLayoutHints(kLHintsExpandX | kLHintsExpandY);
00024     gmw->Add(*scrolled);
00025 
00026     GuiTree* gt = manage(new GuiTree(*scrolled->GetViewPort()));
00027     scrolled->Add(*gt);
00028     gt->SetCanvas(scrolled);
00029 
00030     fTree = manage(new MCTree(gt));
00031     gmw->close_window.connect(bind(slot(&killer<MCTree>),fTree));
00032 
00033     gmw->ShowAll();
00034     gmw->ConnectClose();
00035     fTree->Update(mint);
00036     mint->GetJint().mom_modified.connect(bind(slot_class(*fTree,&MCTree::Update),mint));
00037 }


Member Data Documentation

Definition at line 36 of file TestMCTree.h.

Referenced by SpawnMCTree(), and ~TestMCTree().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1