13 #include <wx/msgdlg.h>
39 wxFileName
file(path);
41 path =
file.GetFullPath();
43 m_FileNameBox->SetValue(path);
45 m_IncludeToolTips->Hide();
74 SetCursor(*wxHOURGLASS_CURSOR);
77 m_Info->SetLabel(
_(
"Saving PDF File... Please Wait!"));
93 SetCursor(*wxSTANDARD_CURSOR);
96 wxMessageBox(
wxT(
"Graphics system does not support in-memory image save feature"),
97 wxT(
"Error Saving"), wxOK);
103 wxMessageBox(
wxT(
"File error occured during save. Make sure file and directory names are valid."),
104 wxT(
"Error Saving"), wxOK);
106 m_Info->SetLabel(
_(
"PDF file saved."));
110 wxLaunchDefaultApplication(full_path);
115 EndModal(wxID_CANCEL);
virtual eCaptureResult GrabImages(int tex_size, IImageGrabberProgress *p=NULL)
Grab the requested images.
virtual bool TransferDataFromWindow()
virtual void x_Init(wxBoxSizer *mainsizer, int widget_width)
virtual bool TransferDataToWindow()
virtual ~CSaveHitMatrixPdfDlg()
wxTextCtrl * m_FileNameBox
void SaveSettings(const string &pdf_base_key) const
bool m_OpenPdf
view PDF file after finished.
void SetOutputInfo(const std::string &dir, const std::string &base_name, const std::string &img_format)
Set file output information.
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
static string ConcatPath(const string &first, const string &second)
Concatenate two parts of the path for the current OS.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
static const string kSavePdfBaseKey("SavePdfHitMatrixDialog")
wxString ToWxString(const string &s)