16 #include "TGFileDialog.h" 78 static TString
dir(
".");
79 const char * kImageExportTypes[] = {
"PNG",
"*.png",
83 "Encapsulated PostScript",
"*.eps",
87 fi.fFileTypes = kImageExportTypes;
88 fi.fIniDir = StrDup(dir);
89 new TGFileDialog(gClient->GetDefaultRoot(), iParent,
92 if (fi.fFilename != 0) {
98 if (name.find(ext) == name.npos)
103 catch (std::runtime_error &
e) {
std::cout << e.what() << std::endl; }
sigc::signal< void, const FWViewBase * > beingDestroyed_
const std::string & typeName() const
const std::string & name() const
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
virtual void saveImageTo(const std::string &iName) const =0
void promptForSaveImageTo(TGFrame *) const
FWViewBase(FWViewType::EType, unsigned int iVersion=1)
FWViewType::EType typeId() const