Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CanvasInTab.cc File Reference
#include <TApplication.h>
#include <TGClient.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TRandom.h>
#include <TGButton.h>
#include <TRootEmbeddedCanvas.h>
#include "CanvasInTab.hh"
#include "TGTab.h"
#include "TGFileDialog.h"
#include <vector>
#include <map>
#include <iostream>
Include dependency graph for CanvasInTab.cc:

Go to the source code of this file.

Functions

const char * SaveFileDialog ()
 

Function Documentation

const char* SaveFileDialog ( )

Definition at line 43 of file CanvasInTab.cc.

44 {
45  // Prompt for file to be saved. Depending on navigation in
46  // dialog the current working directory can be changed.
47  // The returned file name is always with respect to the
48  // current directory.
49 
50  const char *gSaveAsTypes[] = {
51  "Macro files", "*.C",
52  "ROOT files", "*.root",
53  "PostScript", "*.ps",
54  "Encapsulated PostScript", "*.eps",
55  "PDF files", "*.pdf",
56  "Gif files", "*.gif",
57  "PNG files", "*.png",
58  "All files", "*",
59  0, 0
60  };
61 
62  static TGFileInfo fi;
63  fi.fFileTypes = gSaveAsTypes;
64 
65  new TGFileDialog(gClient->GetRoot(), gClient->GetRoot(), kFDSave, &fi);
66 
67  return fi.fFilename;
68 }

Here is the caller graph for this function: