16 #include "TGFileDialog.h" 65 static TString
dir(
".");
66 const char* kImageExportTypes[] = {
"PNG",
74 "Encapsulated PostScript",
80 fi.fFileTypes = kImageExportTypes;
81 fi.fIniDir = StrDup(
dir);
82 new TGFileDialog(gClient->GetDefaultRoot(), iParent, kFDSave, &fi);
84 if (fi.fFilename !=
nullptr) {
94 }
catch (std::runtime_error&
e) {
const std::string & name() const
virtual FWViewContextMenuHandlerBase * contextMenuHandler() const
sigc::signal< void(const FWViewBase *)> beingDestroyed_
virtual void saveImageTo(const std::string &iName) const =0
void promptForSaveImageTo(TGFrame *) const
FWViewType::EType typeId() const
const std::string & typeName() const
FWViewBase(FWViewType::EType, unsigned int iVersion=1)