2017-05-10 13:55:03 +00:00
///////////////////////////////////////////////////////////////////////////
2018-05-18 11:24:02 +00:00
// C++ code generated with wxFormBuilder (version Jul 2 2017)
2017-05-10 13:55:03 +00:00
// http://www.wxformbuilder.org/
//
2018-05-18 11:24:02 +00:00
// PLEASE DO "NOT" EDIT THIS FILE!
2017-05-10 13:55:03 +00:00
///////////////////////////////////////////////////////////////////////////
2017-11-23 13:05:26 +00:00
# include "widgets/text_ctrl_eval.h"
2017-05-10 13:55:03 +00:00
# include "dialog_position_relative_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_POSITION_RELATIVE_BASE : : DIALOG_POSITION_RELATIVE_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2018-05-18 11:24:02 +00:00
m_staticTextHelp = new wxStaticText ( this , wxID_ANY , _ ( " The Anchor position is the origin of coordinates for the transform. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextHelp - > Wrap ( - 1 ) ;
bMainSizer - > Add ( m_staticTextHelp , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline2 , 0 , wxEXPAND | wxALL , 5 ) ;
2017-05-10 13:55:03 +00:00
m_polarCoords = new wxCheckBox ( this , wxID_ANY , _ ( " Use polar coordinates " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-05-18 11:24:02 +00:00
m_polarCoords - > SetValue ( true ) ;
2017-05-10 13:55:03 +00:00
bMainSizer - > Add ( m_polarCoords , 0 , wxALL | wxEXPAND , 5 ) ;
wxFlexGridSizer * fgSizer2 ;
fgSizer2 = new wxFlexGridSizer ( 0 , 4 , 0 , 0 ) ;
fgSizer2 - > AddGrowableCol ( 1 ) ;
fgSizer2 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer2 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2018-04-23 17:29:56 +00:00
m_xLabel = new wxStaticText ( this , wxID_ANY , _ ( " X: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
2017-05-10 13:55:03 +00:00
m_xLabel - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_xLabel , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2017-11-23 13:05:26 +00:00
m_xEntry = new TEXT_CTRL_EVAL ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_xEntry , 0 , wxALL | wxEXPAND , 5 ) ;
m_xUnit = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_xUnit - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_xUnit , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL , 5 ) ;
m_clearX = new wxButton ( this , wxID_ANY , _ ( " Reset " ) , wxDefaultPosition , wxDefaultSize , wxBU_EXACTFIT ) ;
fgSizer2 - > Add ( m_clearX , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2018-04-23 17:29:56 +00:00
m_yLabel = new wxStaticText ( this , wxID_ANY , _ ( " Y: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
m_yLabel - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_yLabel , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2017-11-23 13:05:26 +00:00
m_yEntry = new TEXT_CTRL_EVAL ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_yEntry , 0 , wxALL | wxEXPAND , 5 ) ;
m_yUnit = new wxStaticText ( this , wxID_ANY , _ ( " mm " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_yUnit - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_yUnit , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_clearY = new wxButton ( this , wxID_ANY , _ ( " Reset " ) , wxDefaultPosition , wxDefaultSize , wxBU_EXACTFIT ) ;
fgSizer2 - > Add ( m_clearY , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_rotLabel = new wxStaticText ( this , wxID_ANY , _ ( " Item rotation: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rotLabel - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_rotLabel , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2017-11-23 13:05:26 +00:00
m_rotEntry = new TEXT_CTRL_EVAL ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_rotEntry , 0 , wxALL | wxEXPAND , 5 ) ;
m_rotUnit = new wxStaticText ( this , wxID_ANY , _ ( " deg " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rotUnit - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_rotUnit , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_clearRot = new wxButton ( this , wxID_ANY , _ ( " Reset " ) , wxDefaultPosition , wxDefaultSize , wxBU_EXACTFIT ) ;
fgSizer2 - > Add ( m_clearRot , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2018-05-18 11:24:02 +00:00
m_anchor_xLabel = new wxStaticText ( this , wxID_ANY , _ ( " Anchor position X: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
2017-05-10 13:55:03 +00:00
m_anchor_xLabel - > Wrap ( - 1 ) ;
2018-05-18 11:24:02 +00:00
m_anchor_xLabel - > SetToolTip ( _ ( " The Anchor position is the origin of coordinates for the transform. " ) ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_anchor_xLabel , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2018-05-18 11:24:02 +00:00
m_anchor_x = new TEXT_CTRL_EVAL ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_anchor_x , 0 , wxALL , 5 ) ;
m_anchor_yLabel = new wxStaticText ( this , wxID_ANY , _ ( " Y: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_anchor_yLabel - > Wrap ( - 1 ) ;
fgSizer2 - > Add ( m_anchor_yLabel , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2018-05-18 11:24:02 +00:00
m_anchor_y = new TEXT_CTRL_EVAL ( this , wxID_ANY , _ ( " 0 " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-05-10 13:55:03 +00:00
fgSizer2 - > Add ( m_anchor_y , 0 , wxALL , 5 ) ;
bMainSizer - > Add ( fgSizer2 , 1 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 5 ) ;
2018-05-18 11:24:02 +00:00
wxBoxSizer * bSizerBottom ;
bSizerBottom = new wxBoxSizer ( wxHORIZONTAL ) ;
m_select_anchor_button = new wxButton ( this , wxID_ANY , _ ( " Select Anchor Position " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-05-18 18:42:24 +00:00
m_select_anchor_button - > SetToolTip ( _ ( " Click and select a board item. \n The anchor position will be the position of the selected item. " ) ) ;
2018-05-18 11:24:02 +00:00
bSizerBottom - > Add ( m_select_anchor_button , 0 , wxALL , 5 ) ;
bSizerBottom - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2017-05-10 13:55:03 +00:00
m_stdButtons = new wxStdDialogButtonSizer ( ) ;
m_stdButtonsOK = new wxButton ( this , wxID_OK ) ;
m_stdButtons - > AddButton ( m_stdButtonsOK ) ;
m_stdButtonsCancel = new wxButton ( this , wxID_CANCEL ) ;
m_stdButtons - > AddButton ( m_stdButtonsCancel ) ;
m_stdButtons - > Realize ( ) ;
2018-05-18 11:24:02 +00:00
bSizerBottom - > Add ( m_stdButtons , 0 , wxALL | wxEXPAND , 5 ) ;
bMainSizer - > Add ( bSizerBottom , 0 , wxEXPAND , 5 ) ;
2017-05-10 13:55:03 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
bMainSizer - > Fit ( this ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClose ) ) ;
m_polarCoords - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnPolarChanged ) , NULL , this ) ;
m_xEntry - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearX - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_yEntry - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearY - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_rotEntry - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearRot - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_select_anchor_button - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnSelectItemClick ) , NULL , this ) ;
m_stdButtonsOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnOkClick ) , NULL , this ) ;
}
DIALOG_POSITION_RELATIVE_BASE : : ~ DIALOG_POSITION_RELATIVE_BASE ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClose ) ) ;
m_polarCoords - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnPolarChanged ) , NULL , this ) ;
m_xEntry - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearX - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_yEntry - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearY - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_rotEntry - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnTextFocusLost ) , NULL , this ) ;
m_clearRot - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnClear ) , NULL , this ) ;
m_select_anchor_button - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnSelectItemClick ) , NULL , this ) ;
m_stdButtonsOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_POSITION_RELATIVE_BASE : : OnOkClick ) , NULL , this ) ;
}