NCBI C++ ToolKit
|
Search Toolkit Book for CPreviewSetupDlg
#include <gui/widgets/wx/preview_setup_dlg.hpp>
Public Types | |
enum | EPreviewSetupIDs { ePageCountSliderID = wxID_HIGHEST + 100 , ePreviewSetupWidget , eMultiPageID , eGuidesID , ePageCountID , ePreviewID , ePrintIDStatic , ePrintIDRange , ePrintIDFrom , ePrintIDTo , ePrintIDCopies , ePrintIDPrintToFile , ePrintIDSetup , ePrintIDLeftMargin , ePrintIDRightMargin , ePrintIDTopMargin , ePrintIDBottomMargin , ePrintIDPrintColor , ePrintIDOrientation , ePrintIDCommand , ePrintIDOptions , ePrintIDPaperSize , ePrintIDPrint , eLastPreviewSetupID } |
Public Member Functions | |
CPreviewSetupDlg (CRef< CImage > img, bool add_preview_button, wxWindow *parent=NULL) | |
virtual | ~CPreviewSetupDlg () |
virtual bool | TransferDataFromWindow () |
virtual bool | TransferDataToWindow () |
void | SetZoomBehavior (bool zoomx, bool zoomy) |
Enable/disable zoom in x && y. More... | |
bool | GetZoomX () const |
bool | GetZoomY () const |
virtual void | UpdateMargins () |
virtual wxPageSetupDialogData & | GetPageSetupDialogData () |
Required as a subclass of wxPageSetupDialogBase. More... | |
CVect2< int > | GetPartitions () const |
Get the number of image partitions in x and y. More... | |
wxWidgets events implementation | |
virtual void | OnPrinter (wxCommandEvent &event) |
virtual void | OnScroll (wxScrollEvent &event) |
virtual void | OnMultiPage (wxCommandEvent &event) |
virtual void | OnGuides (wxCommandEvent &event) |
Protected Member Functions | |
void | x_InitDialog (CRef< CImage > img) |
Layout all controls owned by this class. More... | |
virtual void | x_Init (wxBoxSizer *, int) |
Provide virtual hook for subclasses to add their own controls below the main controls. More... | |
Protected Attributes | |
wxPageSetupDialogData | m_psdd |
wxButton * | m_PrinterButton |
wxRadioBox * | m_MultiPageRadioBox |
wxRadioBox * | m_GuidesRadioBox |
wxSlider * | m_PageCountSlider |
wxStaticText * | m_PageCount |
CGlPreviewSetupWidget * | m_PreviewSetupWidget |
bool | m_PreviewButton |
Definition at line 64 of file preview_setup_dlg.hpp.
Definition at line 67 of file preview_setup_dlg.hpp.
CPreviewSetupDlg::CPreviewSetupDlg | ( | CRef< CImage > | img, |
bool | add_preview_button, | ||
wxWindow * | parent = NULL |
||
) |
Definition at line 59 of file preview_setup_dlg.cpp.
|
virtual |
Definition at line 73 of file preview_setup_dlg.cpp.
|
inlinevirtual |
Required as a subclass of wxPageSetupDialogBase.
Maybe I shouldn't derive from that since I also want to have a save-images subclass...
Reimplemented in CPrintSetupDlg.
Definition at line 128 of file preview_setup_dlg.hpp.
References m_psdd.
Get the number of image partitions in x and y.
Definition at line 291 of file preview_setup_dlg.cpp.
References CGlPreviewSetupWidget::GetPartitions(), m_PreviewSetupWidget, and NULL.
Referenced by CSaveImagesSetupDlg::OnPreview(), CSaveImagesSetupDlg::OnSave(), and CSaveImagesSetupDlg::OnTilePreview().
bool CPreviewSetupDlg::GetZoomX | ( | ) | const |
Definition at line 93 of file preview_setup_dlg.cpp.
References CGlPreviewSetupWidget::GetZoomX(), and m_PreviewSetupWidget.
bool CPreviewSetupDlg::GetZoomY | ( | ) | const |
Definition at line 98 of file preview_setup_dlg.cpp.
References CGlPreviewSetupWidget::GetZoomY(), and m_PreviewSetupWidget.
|
virtual |
Definition at line 153 of file preview_setup_dlg.cpp.
|
virtual |
Definition at line 123 of file preview_setup_dlg.cpp.
References m_MultiPageRadioBox, m_PageCount, m_PageCountSlider, m_PreviewSetupWidget, CGlPreviewSetupWidget::SetPartitions(), and UpdateMargins().
|
virtual |
Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.
Definition at line 158 of file preview_setup_dlg.cpp.
References TransferDataFromWindow().
|
virtual |
Definition at line 108 of file preview_setup_dlg.cpp.
References NStr::IntToString(), m_PageCount, m_PageCountSlider, m_PreviewSetupWidget, and CGlPreviewSetupWidget::SetPartitions().
Enable/disable zoom in x && y.
Definition at line 88 of file preview_setup_dlg.cpp.
References m_PreviewSetupWidget, and CGlPreviewSetupWidget::SetZoomBehavior().
Referenced by CPhyloTreeWidget::OnSaveImages().
|
virtual |
Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.
Definition at line 83 of file preview_setup_dlg.cpp.
Referenced by OnPrinter(), CPrintSetupDlg::TransferDataFromWindow(), CSaveImagesSetupDlg::TransferDataFromWindow(), and UpdateMargins().
|
virtual |
Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.
Definition at line 78 of file preview_setup_dlg.cpp.
Referenced by CPrintSetupDlg::TransferDataToWindow(), and CSaveImagesSetupDlg::TransferDataToWindow().
|
virtual |
Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.
Definition at line 103 of file preview_setup_dlg.cpp.
References TransferDataFromWindow().
Referenced by OnMultiPage(), CPrintSetupDlg::UpdateMargins(), and CSaveImagesSetupDlg::UpdateMargins().
|
inlineprotectedvirtual |
Provide virtual hook for subclasses to add their own controls below the main controls.
Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.
Definition at line 141 of file preview_setup_dlg.hpp.
Referenced by x_InitDialog().
Layout all controls owned by this class.
Definition at line 173 of file preview_setup_dlg.cpp.
References eGuidesID, ePageCountID, ePageCountSliderID, ePreviewID, ePreviewSetupWidget, ePrintIDSetup, ePrintIDStatic, CImage::GetHeight(), CImage::GetWidth(), int, m_GuidesRadioBox, m_PageCount, m_PageCountSlider, m_PreviewButton, m_PreviewSetupWidget, m_PrinterButton, NULL, wxID_ANY, wxT, and x_Init().
Referenced by CSaveImagesSetupDlg::CSaveImagesSetupDlg().
|
protected |
Definition at line 145 of file preview_setup_dlg.hpp.
Referenced by CSaveImagesSetupDlg::OnPreview(), CSaveImagesSetupDlg::OnSave(), CSaveImagesSetupDlg::OnTilePreview(), and x_InitDialog().
|
protected |
Definition at line 144 of file preview_setup_dlg.hpp.
Referenced by OnMultiPage(), and CPrintSetupDlg::UpdateMargins().
|
protected |
Definition at line 147 of file preview_setup_dlg.hpp.
Referenced by CSaveImagesSetupDlg::OnImageTypeChange(), OnMultiPage(), OnScroll(), and x_InitDialog().
|
protected |
Definition at line 146 of file preview_setup_dlg.hpp.
Referenced by CSaveImagesSetupDlg::OnFileTextChange(), CSaveImagesSetupDlg::OnImageTypeChange(), OnMultiPage(), OnScroll(), CPrintSetupDlg::UpdateMargins(), and x_InitDialog().
|
protected |
Definition at line 151 of file preview_setup_dlg.hpp.
Referenced by x_InitDialog().
|
protected |
Definition at line 149 of file preview_setup_dlg.hpp.
Referenced by GetPartitions(), GetZoomX(), GetZoomY(), CSaveImagesSetupDlg::OnDirSelect(), CSaveImagesSetupDlg::OnFileTextChange(), CSaveImagesSetupDlg::OnImageTypeChange(), OnMultiPage(), CSaveImagesSetupDlg::OnPreview(), CSaveImagesSetupDlg::OnSave(), OnScroll(), CSaveImagesSetupDlg::OnTilePreview(), SetZoomBehavior(), CPrintSetupDlg::UpdateMargins(), CSaveImagesSetupDlg::x_getAspectRatio(), and x_InitDialog().
|
protected |
Definition at line 143 of file preview_setup_dlg.hpp.
Referenced by x_InitDialog().
|
protected |
Definition at line 135 of file preview_setup_dlg.hpp.
Referenced by GetPageSetupDialogData().