TMainDisplayWindow.cxx File Reference

#include <iostream>
#include <cstdlib>
#include <TGFileDialog.h>
#include "TMainDisplayWindow.hxx"
#include <TObject.h>
Include dependency graph for TMainDisplayWindow.cxx:

Go to the source code of this file.

Functions

 ClassImp (TMainDisplayWindow) static int fDefaultWidth
TRootEmbeddedCanvas * GetTRootEmbeddedCanvasFromTGCompositeFrame (TGCompositeFrame *frame)
 Pull the embedded canvas out of the compositeframe.

Variables

static int fDefaultHeight = 800
const char * filetypes []

Function Documentation

ClassImp ( TMainDisplayWindow   ) 
TRootEmbeddedCanvas* GetTRootEmbeddedCanvasFromTGCompositeFrame ( TGCompositeFrame *  frame  ) 

Pull the embedded canvas out of the compositeframe.

Definition at line 278 of file TMainDisplayWindow.cxx.

Referenced by TMainDisplayWindow::GetCurrentEmbeddedCanvas(), and TMainDisplayWindow::GetEmbeddedCanvas().

00278                                                                                         {
00279 
00280   if(!frame) return 0;
00281   
00282   TList* mylist = frame->GetList();
00283   
00284   TIter next(mylist);
00285   while (TObject *obj = next()){
00286     
00287     TGFrameElement *frame_element = dynamic_cast<TGFrameElement*>(obj);
00288     
00289     if(frame_element){
00290       
00291       TGFrame* frame = frame_element->fFrame;
00292       TRootEmbeddedCanvas *embed_canvas = dynamic_cast<TRootEmbeddedCanvas*>(frame);
00293 
00294       if(embed_canvas){
00295         return embed_canvas;
00296       }
00297     }    
00298   }
00299   
00300   return 0;
00301 
00302 }

Here is the caller graph for this function:


Variable Documentation

int fDefaultHeight = 800 [static]

Definition at line 10 of file TMainDisplayWindow.cxx.

Referenced by TMainDisplayWindow::AddSingleTab().

const char* filetypes[]
Initial value:
 { "GIF files",    "*.gif",
                            "JPG files",     "*.jpg",
                            "PNG files",     "*.png",
                            "EPS files",   "*.eps",
                            0,               0 }

Definition at line 436 of file TMainDisplayWindow.cxx.

Referenced by TMainDisplayWindow::SaveCanvasButtonAction(), and TMainDisplayWindow::SavePadButtonAction().


Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1