3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ResolutionDialog Class Reference

resolution chooser dialog More...

#include <resolutionDialog.h>

Inheritance diagram for ResolutionDialog:
Inheritance graph
[legend]
Collaboration diagram for ResolutionDialog:
Collaboration graph
[legend]

Public Member Functions

 ResolutionDialog (wxWindow *parent, int id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
 
virtual void OnTextWidth (wxCommandEvent &event)
 
virtual void OnTextHeight (wxCommandEvent &event)
 
virtual void OnBtnReset (wxCommandEvent &event)
 
virtual void OnBtnOK (wxCommandEvent &event)
 
virtual void OnBtnCancel (wxCommandEvent &event)
 
virtual void OnMouseWheelWidth (wxMouseEvent &event)
 
virtual void OnMouseWheelHeight (wxMouseEvent &event)
 
virtual void OnKeypress (wxKeyEvent &evt)
 
unsigned int getWidth () const
 get the width as entered in the dialog More...
 
unsigned int getHeight () const
 Get the height as entered in the dialog box. More...
 
void setRes (unsigned int w, unsigned int h, bool asReset=false)
 Set the resolution and update text boxes. More...
 

Protected Member Functions

 DECLARE_EVENT_TABLE ()
 

Protected Attributes

wxStaticText * labelWidth
 
wxTextCtrl * textWidth
 
wxStaticText * labelHeight
 
wxTextCtrl * textHeight
 
wxStaticLine * static_line_2
 
wxButton * btnReset
 
wxButton * btnOK
 
wxButton * button_2
 

Detailed Description

resolution chooser dialog

Constructor & Destructor Documentation

◆ ResolutionDialog()

ResolutionDialog::ResolutionDialog ( wxWindow *  parent,
int  id,
const wxString &  title,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_DIALOG_STYLE 
)

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

ResolutionDialog::DECLARE_EVENT_TABLE ( )
protected

◆ getHeight()

unsigned int ResolutionDialog::getHeight ( ) const
inline

Get the height as entered in the dialog box.

References setRes().

Referenced by ExportAnimationDialog::OnBtnResolution(), MainWindowFrame::OnFileExportImage(), MainWindowFrame::OnFileExportPlot(), and MainWindowFrame::OnFileExportVideo().

Here is the caller graph for this function:

◆ getWidth()

unsigned int ResolutionDialog::getWidth ( ) const
inline

get the width as entered in the dialog

Referenced by ExportAnimationDialog::OnBtnResolution(), MainWindowFrame::OnFileExportImage(), MainWindowFrame::OnFileExportPlot(), and MainWindowFrame::OnFileExportVideo().

Here is the caller graph for this function:

◆ OnBtnCancel()

void ResolutionDialog::OnBtnCancel ( wxCommandEvent &  event)
virtual

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ OnBtnOK()

void ResolutionDialog::OnBtnOK ( wxCommandEvent &  event)
virtual

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ OnBtnReset()

void ResolutionDialog::OnBtnReset ( wxCommandEvent &  event)
virtual

References setRes().

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ OnKeypress()

void ResolutionDialog::OnKeypress ( wxKeyEvent &  evt)
virtual

References ASSERT, btnOK, btnReset, button_2, labelHeight, labelWidth, OnMouseWheelHeight(), OnMouseWheelWidth(), static_line_2, textHeight, textWidth, and TRANS.

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ OnMouseWheelHeight()

void ResolutionDialog::OnMouseWheelHeight ( wxMouseEvent &  event)
virtual

References ASSERT, MOUSEWHEEL_RATE_MULTIPLIER, setRes(), stream_cast(), and textWidth.

Referenced by OnKeypress(), and ResolutionDialog().

Here is the caller graph for this function:

◆ OnMouseWheelWidth()

void ResolutionDialog::OnMouseWheelWidth ( wxMouseEvent &  event)
virtual

References ASSERT, MOUSEWHEEL_RATE_MULTIPLIER, setRes(), stream_cast(), and textHeight.

Referenced by OnKeypress(), and ResolutionDialog().

Here is the caller graph for this function:

◆ OnTextHeight()

void ResolutionDialog::OnTextHeight ( wxCommandEvent &  event)
virtual

References ASSERT, stlStr(), stream_cast(), textHeight, and textWidth.

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ OnTextWidth()

void ResolutionDialog::OnTextWidth ( wxCommandEvent &  event)
virtual

References ASSERT, stlStr(), stream_cast(), textHeight, and textWidth.

Referenced by ResolutionDialog().

Here is the caller graph for this function:

◆ setRes()

void ResolutionDialog::setRes ( unsigned int  w,
unsigned int  h,
bool  asReset = false 
)

Member Data Documentation

◆ btnOK

wxButton* ResolutionDialog::btnOK
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ btnReset

wxButton* ResolutionDialog::btnReset
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ button_2

wxButton* ResolutionDialog::button_2
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ labelHeight

wxStaticText* ResolutionDialog::labelHeight
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ labelWidth

wxStaticText* ResolutionDialog::labelWidth
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ static_line_2

wxStaticLine* ResolutionDialog::static_line_2
protected

Referenced by OnKeypress(), and ResolutionDialog().

◆ textHeight

wxTextCtrl* ResolutionDialog::textHeight
protected

◆ textWidth

wxTextCtrl* ResolutionDialog::textWidth
protected

The documentation for this class was generated from the following files: