Browse Source
pcbnew:
pcbnew:
* Add hotkey fast switch to two grids: for place and trace Alt+"1" - switch grid for place module Alt+"2" - switch grid for trace This two grid set in dialog - menu Preferences->Dimensions->Grid. * Add hotkey switch grid: "`" - switch to next grid Ctrl+"`" - switch to previous grid * Add hotkey switch track width: "W" - switch to next track width Ctrl+"W" - switch to previous track width cmakemodules: * Add GOST to KICAD_BUILD_VERSION if define KICAD_GOST.pull/1/head
committed by
Andrey Fedorushkov
11 changed files with 1495 additions and 997 deletions
-
6CMakeModules/CreateBzrVersionHeader.cmake
-
2common/drawframe.cpp
-
3include/wxBasePcbFrame.h
-
12pcbnew/basepcbframe.cpp
-
1954pcbnew/dialogs/dialog_set_grid.fbp
-
260pcbnew/dialogs/dialog_set_grid_base.cpp
-
138pcbnew/dialogs/dialog_set_grid_base.h
-
31pcbnew/hotkeys.cpp
-
6pcbnew/hotkeys.h
-
55pcbnew/hotkeys_board_editor.cpp
-
25pcbnew/set_grid.cpp
1954
pcbnew/dialogs/dialog_set_grid.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,113 +1,147 @@ |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_set_grid_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_SET_GRID_BASE::DIALOG_SET_GRID_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* bSizerMain; |
|||
bSizerMain = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bUpperSizer; |
|||
bUpperSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxStaticBoxSizer* sbLeftSizer; |
|||
sbLeftSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User Grid Size") ), wxVERTICAL ); |
|||
|
|||
wxString m_UnitGridChoices[] = { _("Inches"), _("mm") }; |
|||
int m_UnitGridNChoices = sizeof( m_UnitGridChoices ) / sizeof( wxString ); |
|||
m_UnitGrid = new wxRadioBox( this, wxID_ANY, _("Grid Size Units"), wxDefaultPosition, wxDefaultSize, m_UnitGridNChoices, m_UnitGridChoices, 1, wxRA_SPECIFY_COLS ); |
|||
m_UnitGrid->SetSelection( 0 ); |
|||
sbLeftSizer->Add( m_UnitGrid, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
|
|||
sbLeftSizer->Add( 10, 10, 0, 0, 5 ); |
|||
|
|||
m_staticTextSizeX = new wxStaticText( this, wxID_ANY, _("User Grid Size X"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeX->Wrap( -1 ); |
|||
sbLeftSizer->Add( m_staticTextSizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); |
|||
|
|||
m_OptGridSizeX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbLeftSizer->Add( m_OptGridSizeX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 ); |
|||
|
|||
m_staticTextSizeY = new wxStaticText( this, wxID_ANY, _("User Grid Size Y"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeY->Wrap( -1 ); |
|||
sbLeftSizer->Add( m_staticTextSizeY, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); |
|||
|
|||
m_OptGridSizeY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbLeftSizer->Add( m_OptGridSizeY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 ); |
|||
|
|||
bUpperSizer->Add( sbLeftSizer, 1, wxEXPAND|wxALL, 5 ); |
|||
|
|||
wxStaticBoxSizer* sbRightSizer; |
|||
sbRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Grid Origin") ), wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizerGridOrigin; |
|||
fgSizerGridOrigin = new wxFlexGridSizer( 2, 3, 0, 0 ); |
|||
fgSizerGridOrigin->AddGrowableCol( 1 ); |
|||
fgSizerGridOrigin->SetFlexibleDirection( wxBOTH ); |
|||
fgSizerGridOrigin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticTextGridPosX = new wxStaticText( this, wxID_ANY, _("Grid origin X:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGridPosX->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_staticTextGridPosX, 0, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 ); |
|||
|
|||
m_GridOriginXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizerGridOrigin->Add( m_GridOriginXCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_TextPosXUnits = new wxStaticText( this, wxID_ANY, _("Inches"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_TextPosXUnits->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_TextPosXUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_staticTextGridPosY = new wxStaticText( this, wxID_ANY, _("Grid origin Y:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGridPosY->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_staticTextGridPosY, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 ); |
|||
|
|||
m_GridOriginYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizerGridOrigin->Add( m_GridOriginYCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_TextPosYUnits = new wxStaticText( this, wxID_ANY, _("Inches"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_TextPosYUnits->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_TextPosYUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
sbRightSizer->Add( fgSizerGridOrigin, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_buttonReset = new wxButton( this, wxID_ANY, _("Reset Grid Origin"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbRightSizer->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
bUpperSizer->Add( sbRightSizer, 2, wxEXPAND|wxALL, 5 ); |
|||
|
|||
bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 ); |
|||
|
|||
m_sdbSizer1 = new wxStdDialogButtonSizer(); |
|||
m_sdbSizer1OK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1OK ); |
|||
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1Cancel ); |
|||
m_sdbSizer1->Realize(); |
|||
bSizerMain->Add( m_sdbSizer1, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM, 5 ); |
|||
|
|||
this->SetSizer( bSizerMain ); |
|||
this->Layout(); |
|||
|
|||
// Connect Events
|
|||
m_buttonReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnResetGridOrgClick ), NULL, this ); |
|||
m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this ); |
|||
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this ); |
|||
} |
|||
|
|||
DIALOG_SET_GRID_BASE::~DIALOG_SET_GRID_BASE() |
|||
{ |
|||
// Disconnect Events
|
|||
m_buttonReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnResetGridOrgClick ), NULL, this ); |
|||
m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this ); |
|||
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this ); |
|||
} |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Sep 6 2011)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_set_grid_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_SET_GRID_BASE::DIALOG_SET_GRID_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* bSizerMain; |
|||
bSizerMain = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bUpperSizer; |
|||
bUpperSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxStaticBoxSizer* sbLeftSizer; |
|||
sbLeftSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User Grid Size") ), wxVERTICAL ); |
|||
|
|||
wxString m_UnitGridChoices[] = { _("Inches"), _("mm") }; |
|||
int m_UnitGridNChoices = sizeof( m_UnitGridChoices ) / sizeof( wxString ); |
|||
m_UnitGrid = new wxRadioBox( this, wxID_ANY, _("Grid Size Units"), wxDefaultPosition, wxDefaultSize, m_UnitGridNChoices, m_UnitGridChoices, 1, wxRA_SPECIFY_COLS ); |
|||
m_UnitGrid->SetSelection( 0 ); |
|||
sbLeftSizer->Add( m_UnitGrid, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
|
|||
sbLeftSizer->Add( 10, 10, 0, 0, 5 ); |
|||
|
|||
m_staticTextSizeX = new wxStaticText( this, wxID_ANY, _("User Grid Size X"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeX->Wrap( -1 ); |
|||
sbLeftSizer->Add( m_staticTextSizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); |
|||
|
|||
m_OptGridSizeX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbLeftSizer->Add( m_OptGridSizeX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 ); |
|||
|
|||
m_staticTextSizeY = new wxStaticText( this, wxID_ANY, _("User Grid Size Y"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeY->Wrap( -1 ); |
|||
sbLeftSizer->Add( m_staticTextSizeY, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); |
|||
|
|||
m_OptGridSizeY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbLeftSizer->Add( m_OptGridSizeY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 ); |
|||
|
|||
bUpperSizer->Add( sbLeftSizer, 1, wxEXPAND|wxALL, 5 ); |
|||
|
|||
wxBoxSizer* bSizer4; |
|||
bSizer4 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxStaticBoxSizer* sbRightSizer; |
|||
sbRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Grid Origin") ), wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizerGridOrigin; |
|||
fgSizerGridOrigin = new wxFlexGridSizer( 2, 3, 0, 0 ); |
|||
fgSizerGridOrigin->AddGrowableCol( 1 ); |
|||
fgSizerGridOrigin->SetFlexibleDirection( wxBOTH ); |
|||
fgSizerGridOrigin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticTextGridPosX = new wxStaticText( this, wxID_ANY, _("Grid origin X:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGridPosX->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_staticTextGridPosX, 0, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 ); |
|||
|
|||
m_GridOriginXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizerGridOrigin->Add( m_GridOriginXCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_TextPosXUnits = new wxStaticText( this, wxID_ANY, _("Inches"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_TextPosXUnits->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_TextPosXUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_staticTextGridPosY = new wxStaticText( this, wxID_ANY, _("Grid origin Y:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGridPosY->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_staticTextGridPosY, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 ); |
|||
|
|||
m_GridOriginYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizerGridOrigin->Add( m_GridOriginYCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_TextPosYUnits = new wxStaticText( this, wxID_ANY, _("Inches"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_TextPosYUnits->Wrap( -1 ); |
|||
fgSizerGridOrigin->Add( m_TextPosYUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
sbRightSizer->Add( fgSizerGridOrigin, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_buttonReset = new wxButton( this, wxID_ANY, _("Reset Grid Origin"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
sbRightSizer->Add( m_buttonReset, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
bSizer4->Add( sbRightSizer, 1, wxEXPAND|wxALL, 5 ); |
|||
|
|||
wxStaticBoxSizer* sbSizer4; |
|||
sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Grid for fast switching") ), wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer3; |
|||
fgSizer3 = new wxFlexGridSizer( 2, 2, 0, 0 ); |
|||
fgSizer3->AddGrowableCol( 1 ); |
|||
fgSizer3->SetFlexibleDirection( wxBOTH ); |
|||
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticTextGrid1 = new wxStaticText( this, wxID_ANY, _("Fast Grid 1:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGrid1->Wrap( -1 ); |
|||
fgSizer3->Add( m_staticTextGrid1, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); |
|||
|
|||
m_comboBoxGrid1 = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); |
|||
fgSizer3->Add( m_comboBoxGrid1, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticTextGrid2 = new wxStaticText( this, wxID_ANY, _("Fast Grid 2:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextGrid2->Wrap( -1 ); |
|||
fgSizer3->Add( m_staticTextGrid2, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); |
|||
|
|||
m_comboBoxGrid2 = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); |
|||
fgSizer3->Add( m_comboBoxGrid2, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); |
|||
|
|||
sbSizer4->Add( fgSizer3, 1, wxALL|wxEXPAND, 5 ); |
|||
|
|||
bSizer4->Add( sbSizer4, 1, wxALL|wxEXPAND, 5 ); |
|||
|
|||
bUpperSizer->Add( bSizer4, 1, wxEXPAND, 5 ); |
|||
|
|||
bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 ); |
|||
|
|||
m_sdbSizer1 = new wxStdDialogButtonSizer(); |
|||
m_sdbSizer1OK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1OK ); |
|||
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1Cancel ); |
|||
m_sdbSizer1->Realize(); |
|||
bSizerMain->Add( m_sdbSizer1, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM, 5 ); |
|||
|
|||
this->SetSizer( bSizerMain ); |
|||
this->Layout(); |
|||
bSizerMain->Fit( this ); |
|||
|
|||
// Connect Events
|
|||
m_buttonReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnResetGridOrgClick ), NULL, this ); |
|||
m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this ); |
|||
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this ); |
|||
} |
|||
|
|||
DIALOG_SET_GRID_BASE::~DIALOG_SET_GRID_BASE() |
|||
{ |
|||
// Disconnect Events
|
|||
m_buttonReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnResetGridOrgClick ), NULL, this ); |
|||
m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnCancelClick ), NULL, this ); |
|||
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SET_GRID_BASE::OnOkClick ), NULL, this ); |
|||
|
|||
} |
|||
@ -1,66 +1,72 @@ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __dialog_set_grid_base__ |
|||
#define __dialog_set_grid_base__ |
|||
|
|||
#include <wx/intl.h> |
|||
|
|||
#include <wx/string.h> |
|||
#include <wx/radiobox.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/statbox.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_SET_GRID_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_SET_GRID_BASE : public wxDialog |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
wxRadioBox* m_UnitGrid; |
|||
|
|||
wxStaticText* m_staticTextSizeX; |
|||
wxTextCtrl* m_OptGridSizeX; |
|||
wxStaticText* m_staticTextSizeY; |
|||
wxTextCtrl* m_OptGridSizeY; |
|||
wxStaticText* m_staticTextGridPosX; |
|||
wxTextCtrl* m_GridOriginXCtrl; |
|||
wxStaticText* m_TextPosXUnits; |
|||
wxStaticText* m_staticTextGridPosY; |
|||
wxTextCtrl* m_GridOriginYCtrl; |
|||
wxStaticText* m_TextPosYUnits; |
|||
wxButton* m_buttonReset; |
|||
wxStdDialogButtonSizer* m_sdbSizer1; |
|||
wxButton* m_sdbSizer1OK; |
|||
wxButton* m_sdbSizer1Cancel; |
|||
|
|||
// Virtual event handlers, overide them in your derived class |
|||
virtual void OnResetGridOrgClick( wxCommandEvent& event ){ event.Skip(); } |
|||
virtual void OnCancelClick( wxCommandEvent& event ){ event.Skip(); } |
|||
virtual void OnOkClick( wxCommandEvent& event ){ event.Skip(); } |
|||
|
|||
|
|||
public: |
|||
DIALOG_SET_GRID_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Grid Origin and User Grid Size"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 374,267 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_SET_GRID_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__dialog_set_grid_base__ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Sep 6 2011) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __dialog_set_grid_base__ |
|||
#define __dialog_set_grid_base__ |
|||
|
|||
#include <wx/intl.h> |
|||
|
|||
#include <wx/string.h> |
|||
#include <wx/radiobox.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/statbox.h> |
|||
#include <wx/button.h> |
|||
#include <wx/combobox.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_SET_GRID_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_SET_GRID_BASE : public wxDialog |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
wxRadioBox* m_UnitGrid; |
|||
|
|||
wxStaticText* m_staticTextSizeX; |
|||
wxTextCtrl* m_OptGridSizeX; |
|||
wxStaticText* m_staticTextSizeY; |
|||
wxTextCtrl* m_OptGridSizeY; |
|||
wxStaticText* m_staticTextGridPosX; |
|||
wxTextCtrl* m_GridOriginXCtrl; |
|||
wxStaticText* m_TextPosXUnits; |
|||
wxStaticText* m_staticTextGridPosY; |
|||
wxTextCtrl* m_GridOriginYCtrl; |
|||
wxStaticText* m_TextPosYUnits; |
|||
wxButton* m_buttonReset; |
|||
wxStaticText* m_staticTextGrid1; |
|||
wxComboBox* m_comboBoxGrid1; |
|||
wxStaticText* m_staticTextGrid2; |
|||
wxComboBox* m_comboBoxGrid2; |
|||
wxStdDialogButtonSizer* m_sdbSizer1; |
|||
wxButton* m_sdbSizer1OK; |
|||
wxButton* m_sdbSizer1Cancel; |
|||
|
|||
// Virtual event handlers, overide them in your derived class |
|||
virtual void OnResetGridOrgClick( wxCommandEvent& event ) { event.Skip(); } |
|||
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); } |
|||
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); } |
|||
|
|||
|
|||
public: |
|||
|
|||
DIALOG_SET_GRID_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Grid Origin and User Grid Size"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_SET_GRID_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__dialog_set_grid_base__ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue