Inheritance diagram for DNDMainFrame:
Public Member Functions | |
DNDMainFrame (const TGWindow *p, int w, int h) | |
virtual | ~DNDMainFrame () |
void | DoCloseWindow () |
void | HandleMenu (Int_t) |
TObject * | GetObject (const char *obj) |
void | DataDropped (TGListTreeItem *item, TDNDData *data) |
void | ResetStatus () |
Protected Attributes | |
TRootEmbeddedCanvas * | fEc |
TGTextButton * | fButtonExit |
TGMenuBar * | fMenuBar |
TGPopupMenu * | fMenuFile |
TGPopupMenu * | fMenuHelp |
TCanvas * | fCanvas |
TGListTree * | fListTree |
TGListTreeItem * | fBaseLTI |
TGLabel * | fStatus |
TGraph * | fGraph |
TH1F * | fHist1D |
TH2F * | fHist2D |
Definition at line 62 of file drag_and_drop.C.
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.
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().
TRootEmbeddedCanvas* DNDMainFrame::fEc [protected] |
TGTextButton* DNDMainFrame::fButtonExit [protected] |
TGMenuBar* DNDMainFrame::fMenuBar [protected] |
TGPopupMenu* DNDMainFrame::fMenuFile [protected] |
TGPopupMenu* DNDMainFrame::fMenuHelp [protected] |
TCanvas* DNDMainFrame::fCanvas [protected] |
TGListTree* DNDMainFrame::fListTree [protected] |
Definition at line 71 of file drag_and_drop.C.
Referenced by DataDropped(), DNDMainFrame(), and DoCloseWindow().
TGListTreeItem* DNDMainFrame::fBaseLTI [protected] |
TGLabel* DNDMainFrame::fStatus [protected] |
Definition at line 73 of file drag_and_drop.C.
Referenced by DataDropped(), DNDMainFrame(), and ResetStatus().
TGraph* DNDMainFrame::fGraph [protected] |
TH1F* DNDMainFrame::fHist1D [protected] |
TH2F* DNDMainFrame::fHist2D [protected] |