17 #include "TGFileDialog.h"
79 static TString
dir(
".");
80 const char * kImageExportTypes[] = {
"PNG",
"*.png",
84 "Encapsulated PostScript",
"*.eps",
88 fi.fFileTypes = kImageExportTypes;
89 fi.fIniDir = StrDup(dir);
90 new TGFileDialog(gClient->GetDefaultRoot(), iParent,
93 if (fi.fFilename != 0) {
98 std::string ext = kImageExportTypes[fi.fFileTypeIdx + 1] + 1;
99 if (name.find(ext) == name.npos)
104 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