DNDMainFrame Class Reference

Inheritance diagram for DNDMainFrame:

TGMainFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 DNDMainFrame (const TGWindow *p, int w, int h)
virtual ~DNDMainFrame ()
void DoCloseWindow ()
void HandleMenu (Int_t)
TObjectGetObject (const char *obj)
void DataDropped (TGListTreeItem *item, TDNDData *data)
void ResetStatus ()

Protected Attributes

TRootEmbeddedCanvasfEc
TGTextButtonfButtonExit
TGMenuBarfMenuBar
TGPopupMenufMenuFile
TGPopupMenufMenuHelp
TCanvasfCanvas
TGListTreefListTree
TGListTreeItemfBaseLTI
TGLabelfStatus
TGraphfGraph
TH1FfHist1D
TH2FfHist2D

Detailed Description

Definition at line 62 of file drag_and_drop.C.


Constructor & Destructor Documentation

DNDMainFrame::DNDMainFrame ( const TGWindow p,
int  w,
int  h 
)

Definition at line 110 of file drag_and_drop.C.

References TSystem::AccessPathName(), TGPopupMenu::AddEntry(), TGCompositeFrame::AddFrame(), TGListTree::AddItem(), TGMenuBar::AddPopup(), TGPopupMenu::AddSeparator(), TGContainer::Associate(), canvas, TQObject::Connect(), TString::Data(), TPad::Divide(), TGMainFrame::DontCallClose(), fBaseLTI, fButtonExit, fCanvas, fEc, fListTree, fMenuBar, fMenuFile, fMenuHelp, TString::Format(), fStatus, gApplication, gClient, TRootEmbeddedCanvas::GetCanvas(), TGTextButton::GetDefaultSize(), TGCompositeFrame::GetDefaultSize(), TSystem::Getenv(), TGListTree::GetFirstItem(), TNamed::GetName(), GetObject(), TGPicturePool::GetPicture(), TGClient::GetPicture(), TGClient::GetPicturePool(), TGClient::GetRoot(), gr, gReadyMsg, gRootObj, gSystem, gVirtualX, h2, hpx, kDeepCleanup, kFALSE, kHorizontalFrame, kLHintsCenterY, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kReadPermission, kTextLeft, kTRUE, M_FILE_BROWSE, M_FILE_CLOSEWIN, M_FILE_EXIT, M_FILE_NEWCANVAS, M_FILE_OPEN, M_HELP_ABOUT, TGCompositeFrame::MapSubwindows(), TImage::Open(), TGListTree::OpenItem(), TString::Prepend(), TString::Remove(), TGFrame::Resize(), TPad::SetBorderMode(), TGCompositeFrame::SetCleanup(), TGListTreeItem::SetDNDSource(), TGListTreeItem::SetDNDTarget(), TGFrame::SetDNDTarget(), TGLabel::SetTextColor(), TGLabel::SetTextJustify(), TGListTree::SetToolTipItem(), TGButton::SetToolTipText(), TGMainFrame::SetWindowName(), and TSystem::UnixPathName().

DNDMainFrame::~DNDMainFrame (  )  [virtual]

Definition at line 239 of file drag_and_drop.C.


Member Function Documentation

void DNDMainFrame::DoCloseWindow (  ) 

Definition at line 245 of file drag_and_drop.C.

References TGMainFrame::CloseWindow(), TQObject::Disconnect(), fButtonExit, fGraph, fHist1D, fHist2D, fListTree, fMenuFile, and fMenuHelp.

Referenced by HandleMenu().

void DNDMainFrame::HandleMenu ( Int_t   ) 

Definition at line 357 of file drag_and_drop.C.

References dir(), dnd_types, DoCloseWindow(), TGFileInfo::fFileTypes, fi, TGFileInfo::fIniDir, gApplication, gClient, TGClient::GetRoot(), gHelpDND, gROOT, kFDOpen, M_FILE_BROWSE, M_FILE_CLOSEWIN, M_FILE_EXIT, M_FILE_NEWCANVAS, M_FILE_OPEN, M_HELP_ABOUT, TROOT::MakeDefCanvas(), TRootHelpDialog::Popup(), TRootHelpDialog::SetText(), StrDup(), and TApplication::Terminate().

TObject * DNDMainFrame::GetObject ( const char *  obj  ) 

Definition at line 311 of file drag_and_drop.C.

References f2, fGraph, fHist1D, fHist2D, TH1::Fill(), TH2::FillRandom(), gRandom, i, n, params, TRandom::Rannor(), TFormula::SetParameters(), sin(), x, and y.

Referenced by DNDMainFrame().

void DNDMainFrame::DataDropped ( TGListTreeItem item,
TDNDData data 
)

Definition at line 262 of file drag_and_drop.C.

References TGListTree::AddItem(), buf, TGLabel::ChangeText(), xmlio::Class, data, fBaseLTI, fListTree, fStatus, gClient, TImage::GetMask(), TGPicturePool::GetPicture(), TGClient::GetPicture(), TGClient::GetPicturePool(), TImage::GetPixmap(), gRootObj, TBuffer::kRead, kTRUE, TImage::Merge(), TImage::Open(), TGListTreeItem::SetDNDSource(), TGLabel::SetTextColor(), TGListTree::SetToolTipItem(), TTimer::SingleShot(), and sprintf().

void DNDMainFrame::ResetStatus (  ) 

Definition at line 398 of file drag_and_drop.C.

References TGLabel::ChangeText(), fStatus, gReadyMsg, and TGLabel::SetTextColor().


Member Data Documentation

TRootEmbeddedCanvas* DNDMainFrame::fEc [protected]

Definition at line 65 of file drag_and_drop.C.

Referenced by DNDMainFrame().

TGTextButton* DNDMainFrame::fButtonExit [protected]

Definition at line 66 of file drag_and_drop.C.

Referenced by DNDMainFrame(), and DoCloseWindow().

TGMenuBar* DNDMainFrame::fMenuBar [protected]

Definition at line 67 of file drag_and_drop.C.

Referenced by DNDMainFrame().

TGPopupMenu* DNDMainFrame::fMenuFile [protected]

Definition at line 68 of file drag_and_drop.C.

Referenced by DNDMainFrame(), and DoCloseWindow().

TGPopupMenu* DNDMainFrame::fMenuHelp [protected]

Definition at line 69 of file drag_and_drop.C.

Referenced by DNDMainFrame(), and DoCloseWindow().

TCanvas* DNDMainFrame::fCanvas [protected]

Definition at line 70 of file drag_and_drop.C.

Referenced by DNDMainFrame().

TGListTree* DNDMainFrame::fListTree [protected]

Definition at line 71 of file drag_and_drop.C.

Referenced by DataDropped(), DNDMainFrame(), and DoCloseWindow().

TGListTreeItem* DNDMainFrame::fBaseLTI [protected]

Definition at line 72 of file drag_and_drop.C.

Referenced by DataDropped(), and DNDMainFrame().

TGLabel* DNDMainFrame::fStatus [protected]

Definition at line 73 of file drag_and_drop.C.

Referenced by DataDropped(), DNDMainFrame(), and ResetStatus().

TGraph* DNDMainFrame::fGraph [protected]

Definition at line 74 of file drag_and_drop.C.

Referenced by DoCloseWindow(), and GetObject().

TH1F* DNDMainFrame::fHist1D [protected]

Definition at line 75 of file drag_and_drop.C.

Referenced by DoCloseWindow(), and GetObject().

TH2F* DNDMainFrame::fHist2D [protected]

Definition at line 76 of file drag_and_drop.C.

Referenced by DoCloseWindow(), and GetObject().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:25:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1