NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CPreviewSetupDlg Class Reference

Search Toolkit Book for CPreviewSetupDlg

#include <gui/widgets/wx/preview_setup_dlg.hpp>

+ Inheritance diagram for CPreviewSetupDlg:
+ Collaboration diagram for CPreviewSetupDlg:

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< intGetPartitions () 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
 
CGlPreviewSetupWidgetm_PreviewSetupWidget
 
bool m_PreviewButton
 

Detailed Description

Definition at line 64 of file preview_setup_dlg.hpp.

Member Enumeration Documentation

◆ EPreviewSetupIDs

Enumerator
ePageCountSliderID 
ePreviewSetupWidget 
eMultiPageID 
eGuidesID 
ePageCountID 
ePreviewID 
ePrintIDStatic 
ePrintIDRange 
ePrintIDFrom 
ePrintIDTo 
ePrintIDCopies 
ePrintIDPrintToFile 
ePrintIDSetup 
ePrintIDLeftMargin 
ePrintIDRightMargin 
ePrintIDTopMargin 
ePrintIDBottomMargin 
ePrintIDPrintColor 
ePrintIDOrientation 
ePrintIDCommand 
ePrintIDOptions 
ePrintIDPaperSize 
ePrintIDPrint 
eLastPreviewSetupID 

Definition at line 67 of file preview_setup_dlg.hpp.

Constructor & Destructor Documentation

◆ CPreviewSetupDlg()

CPreviewSetupDlg::CPreviewSetupDlg ( CRef< CImage img,
bool  add_preview_button,
wxWindow *  parent = NULL 
)

Definition at line 59 of file preview_setup_dlg.cpp.

◆ ~CPreviewSetupDlg()

CPreviewSetupDlg::~CPreviewSetupDlg ( )
virtual

Definition at line 73 of file preview_setup_dlg.cpp.

Member Function Documentation

◆ GetPageSetupDialogData()

virtual wxPageSetupDialogData& CPreviewSetupDlg::GetPageSetupDialogData ( )
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.

◆ GetPartitions()

CVect2< int > CPreviewSetupDlg::GetPartitions ( ) const

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().

◆ GetZoomX()

bool CPreviewSetupDlg::GetZoomX ( ) const

◆ GetZoomY()

bool CPreviewSetupDlg::GetZoomY ( ) const

◆ OnGuides()

void CPreviewSetupDlg::OnGuides ( wxCommandEvent &  event)
virtual

Definition at line 153 of file preview_setup_dlg.cpp.

◆ OnMultiPage()

void CPreviewSetupDlg::OnMultiPage ( wxCommandEvent &  event)
virtual

◆ OnPrinter()

void CPreviewSetupDlg::OnPrinter ( wxCommandEvent &  event)
virtual

Reimplemented in CSaveImagesSetupDlg, and CPrintSetupDlg.

Definition at line 158 of file preview_setup_dlg.cpp.

References TransferDataFromWindow().

◆ OnScroll()

void CPreviewSetupDlg::OnScroll ( wxScrollEvent &  event)
virtual

◆ SetZoomBehavior()

void CPreviewSetupDlg::SetZoomBehavior ( bool  zoomx,
bool  zoomy 
)

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().

◆ TransferDataFromWindow()

bool CPreviewSetupDlg::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CPreviewSetupDlg::TransferDataToWindow ( )
virtual

◆ UpdateMargins()

void CPreviewSetupDlg::UpdateMargins ( )
virtual

◆ x_Init()

virtual void CPreviewSetupDlg::x_Init ( wxBoxSizer *  ,
int   
)
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().

◆ x_InitDialog()

void CPreviewSetupDlg::x_InitDialog ( CRef< CImage img)
protected

Member Data Documentation

◆ m_GuidesRadioBox

wxRadioBox* CPreviewSetupDlg::m_GuidesRadioBox
protected

◆ m_MultiPageRadioBox

wxRadioBox* CPreviewSetupDlg::m_MultiPageRadioBox
protected

Definition at line 144 of file preview_setup_dlg.hpp.

Referenced by OnMultiPage(), and CPrintSetupDlg::UpdateMargins().

◆ m_PageCount

wxStaticText* CPreviewSetupDlg::m_PageCount
protected

◆ m_PageCountSlider

wxSlider* CPreviewSetupDlg::m_PageCountSlider
protected

◆ m_PreviewButton

bool CPreviewSetupDlg::m_PreviewButton
protected

Definition at line 151 of file preview_setup_dlg.hpp.

Referenced by x_InitDialog().

◆ m_PreviewSetupWidget

CGlPreviewSetupWidget* CPreviewSetupDlg::m_PreviewSetupWidget
protected

◆ m_PrinterButton

wxButton* CPreviewSetupDlg::m_PrinterButton
protected

Definition at line 143 of file preview_setup_dlg.hpp.

Referenced by x_InitDialog().

◆ m_psdd

wxPageSetupDialogData CPreviewSetupDlg::m_psdd
protected

Definition at line 135 of file preview_setup_dlg.hpp.

Referenced by GetPageSetupDialogData().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:07 2024 by modify_doxy.py rev. 669887