Commit 98886a6d authored by jean-pierre charras's avatar jean-pierre charras

Eeschema: Fix incorrect size of dialog Edit component in libedit: wrong size under wxWidgets 2.9.3

Edit component in schematic: reduce length of some texts (when translated, give a too big dialog)
parent e26cdada
...@@ -24,12 +24,10 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY( LIB_EDIT_FRA ...@@ -24,12 +24,10 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY( LIB_EDIT_FRA
m_Parent = aParent; m_Parent = aParent;
m_RecreateToolbar = false; m_RecreateToolbar = false;
Init(); initDlg();
if( GetSizer() ) GetSizer()->SetSizeHints( this );
{ Center();
GetSizer()->SetSizeHints( this );
}
} }
...@@ -39,7 +37,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY::~DIALOG_EDIT_COMPONENT_IN_LIBRARY() ...@@ -39,7 +37,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY::~DIALOG_EDIT_COMPONENT_IN_LIBRARY()
/* Initialize state of check boxes and texts /* Initialize state of check boxes and texts
*/ */
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::Init() void DIALOG_EDIT_COMPONENT_IN_LIBRARY::initDlg()
{ {
SetFocus(); SetFocus();
m_AliasLocation = -1; m_AliasLocation = -1;
...@@ -90,7 +88,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::Init() ...@@ -90,7 +88,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::Init()
m_ButtonDeleteOneFootprintFilter->Enable( false ); m_ButtonDeleteOneFootprintFilter->Enable( false );
} }
m_sdbSizer2OK->SetDefault(); m_stdSizerButtonOK->SetDefault();
} }
......
...@@ -24,7 +24,7 @@ public: ...@@ -24,7 +24,7 @@ public:
~DIALOG_EDIT_COMPONENT_IN_LIBRARY(); ~DIALOG_EDIT_COMPONENT_IN_LIBRARY();
private: private:
void Init(); void initDlg();
void InitPanelDoc(); void InitPanelDoc();
void InitBasicPanel(); void InitBasicPanel();
void OnCancelClick( wxCommandEvent& event ); void OnCancelClick( wxCommandEvent& event );
......
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 8 2010) // C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/ // http://www.wxformbuilder.org/
// //
// PLEASE DO "NOT" EDIT THIS FILE! // PLEASE DO "NOT" EDIT THIS FILE!
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_edit_component_in_lib_base__ #ifndef __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#define __dialog_edit_component_in_lib_base__ #define __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#include <wx/intl.h> #include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h> #include <wx/intl.h>
#include <wx/checkbox.h> #include <wx/string.h>
#include <wx/gdicmn.h> #include <wx/checkbox.h>
#include <wx/font.h> #include <wx/gdicmn.h>
#include <wx/colour.h> #include <wx/font.h>
#include <wx/settings.h> #include <wx/colour.h>
#include <wx/sizer.h> #include <wx/settings.h>
#include <wx/statbox.h> #include <wx/sizer.h>
#include <wx/statline.h> #include <wx/statbox.h>
#include <wx/stattext.h> #include <wx/statline.h>
#include <wx/spinctrl.h> #include <wx/stattext.h>
#include <wx/panel.h> #include <wx/spinctrl.h>
#include <wx/bitmap.h> #include <wx/panel.h>
#include <wx/image.h> #include <wx/bitmap.h>
#include <wx/icon.h> #include <wx/image.h>
#include <wx/textctrl.h> #include <wx/icon.h>
#include <wx/button.h> #include <wx/textctrl.h>
#include <wx/listbox.h> #include <wx/button.h>
#include <wx/notebook.h> #include <wx/listbox.h>
#include <wx/dialog.h> #include <wx/notebook.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
#define ID_LIBEDIT_NOTEBOOK 1000
#define ID_COPY_DOC_TO_ALIAS 1001 #define ID_LIBEDIT_NOTEBOOK 1000
#define ID_BROWSE_DOC_FILES 1002 #define ID_COPY_DOC_TO_ALIAS 1001
#define ID_ADD_ALIAS 1003 #define ID_BROWSE_DOC_FILES 1002
#define ID_DELETE_ONE_ALIAS 1004 #define ID_ADD_ALIAS 1003
#define ID_DELETE_ALL_ALIAS 1005 #define ID_DELETE_ONE_ALIAS 1004
#define ID_ADD_FOOTPRINT_FILTER 1006 #define ID_DELETE_ALL_ALIAS 1005
#define ID_DELETE_ONE_FOOTPRINT_FILTER 1007 #define ID_ADD_FOOTPRINT_FILTER 1006
#define ID_DELETE_ALL_FOOTPRINT_FILTER 1008 #define ID_DELETE_ONE_FOOTPRINT_FILTER 1007
#define ID_DELETE_ALL_FOOTPRINT_FILTER 1008
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE ///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// /// Class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE : public wxDialog ///////////////////////////////////////////////////////////////////////////////
{ class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE : public wxDialog
private: {
private:
protected:
wxNotebook* m_NoteBook; protected:
wxPanel* m_PanelBasic; wxNotebook* m_NoteBook;
wxCheckBox* m_AsConvertButt; wxPanel* m_PanelBasic;
wxCheckBox* m_ShowPinNumButt; wxCheckBox* m_AsConvertButt;
wxCheckBox* m_ShowPinNameButt; wxCheckBox* m_ShowPinNumButt;
wxCheckBox* m_PinsNameInsideButt; wxCheckBox* m_ShowPinNameButt;
wxStaticLine* m_staticline3; wxCheckBox* m_PinsNameInsideButt;
wxStaticText* m_staticTextNbUnits; wxStaticLine* m_staticline3;
wxSpinCtrl* m_SelNumberOfUnits; wxStaticText* m_staticTextNbUnits;
wxStaticText* m_staticTextskew; wxSpinCtrl* m_SelNumberOfUnits;
wxSpinCtrl* m_SetSkew; wxStaticText* m_staticTextskew;
wxStaticLine* m_staticline1; wxSpinCtrl* m_SetSkew;
wxCheckBox* m_OptionPower; wxStaticLine* m_staticline1;
wxCheckBox* m_OptionPartsLocked; wxCheckBox* m_OptionPower;
wxPanel* m_PanelDoc; wxCheckBox* m_OptionPartsLocked;
wxStaticText* m_staticTextDescription; wxPanel* m_PanelDoc;
wxTextCtrl* m_DocCtrl; wxStaticText* m_staticTextDescription;
wxStaticText* m_staticTextKeywords; wxTextCtrl* m_DocCtrl;
wxTextCtrl* m_KeywordsCtrl; wxStaticText* m_staticTextKeywords;
wxStaticText* m_staticTextDocFileName; wxTextCtrl* m_KeywordsCtrl;
wxTextCtrl* m_DocfileCtrl; wxStaticText* m_staticTextDocFileName;
wxButton* m_ButtonCopyDoc; wxTextCtrl* m_DocfileCtrl;
wxButton* m_buttonBrowseDocFiles; wxButton* m_ButtonCopyDoc;
wxPanel* m_PanelAlias; wxButton* m_buttonBrowseDocFiles;
wxStaticText* m_staticTextAlias; wxPanel* m_PanelAlias;
wxListBox* m_PartAliasListCtrl; wxStaticText* m_staticTextAlias;
wxButton* m_ButtonAddeAlias; wxListBox* m_PartAliasListCtrl;
wxButton* m_ButtonDeleteOneAlias; wxButton* m_ButtonAddeAlias;
wxButton* m_ButtonDeleteAllAlias; wxButton* m_ButtonDeleteOneAlias;
wxPanel* m_PanelFootprintFilter; wxButton* m_ButtonDeleteAllAlias;
wxStaticText* m_staticTextFootprints; wxPanel* m_PanelFootprintFilter;
wxListBox* m_FootprintFilterListBox; wxStaticText* m_staticTextFootprints;
wxButton* m_buttonAddFpF; wxListBox* m_FootprintFilterListBox;
wxButton* m_ButtonDeleteOneFootprintFilter; wxButton* m_buttonAddFpF;
wxButton* m_ButtonDeleteAllFootprintFilter; wxButton* m_ButtonDeleteOneFootprintFilter;
wxStdDialogButtonSizer* m_sdbSizer2; wxButton* m_ButtonDeleteAllFootprintFilter;
wxButton* m_sdbSizer2OK; wxStdDialogButtonSizer* m_stdSizerButton;
wxButton* m_sdbSizer2Cancel; wxButton* m_stdSizerButtonOK;
wxButton* m_stdSizerButtonCancel;
// Virtual event handlers, overide them in your derived class
virtual void CopyDocToAlias( wxCommandEvent& event ) { event.Skip(); } // Virtual event handlers, overide them in your derived class
virtual void BrowseAndSelectDocFile( wxCommandEvent& event ) { event.Skip(); } virtual void CopyDocToAlias( wxCommandEvent& event ) { event.Skip(); }
virtual void AddAliasOfPart( wxCommandEvent& event ) { event.Skip(); } virtual void BrowseAndSelectDocFile( wxCommandEvent& event ) { event.Skip(); }
virtual void DeleteAliasOfPart( wxCommandEvent& event ) { event.Skip(); } virtual void AddAliasOfPart( wxCommandEvent& event ) { event.Skip(); }
virtual void DeleteAllAliasOfPart( wxCommandEvent& event ) { event.Skip(); } virtual void DeleteAliasOfPart( wxCommandEvent& event ) { event.Skip(); }
virtual void AddFootprintFilter( wxCommandEvent& event ) { event.Skip(); } virtual void DeleteAllAliasOfPart( wxCommandEvent& event ) { event.Skip(); }
virtual void DeleteOneFootprintFilter( wxCommandEvent& event ) { event.Skip(); } virtual void AddFootprintFilter( wxCommandEvent& event ) { event.Skip(); }
virtual void DeleteAllFootprintFilter( wxCommandEvent& event ) { event.Skip(); } virtual void DeleteOneFootprintFilter( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); } virtual void DeleteAllFootprintFilter( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); } virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }
public:
public:
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wxWindow* parent, wxWindowID id = ID_LIBEDIT_NOTEBOOK, const wxString& title = _("Lib Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 546,384 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
~DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE(); DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wxWindow* parent, wxWindowID id = ID_LIBEDIT_NOTEBOOK, const wxString& title = _("Lib Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 465,384 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
~DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE();
};
};
#endif //__dialog_edit_component_in_lib_base__
#endif //__DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 6 2011) // C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/ // http://www.wxformbuilder.org/
// //
// PLEASE DO "NOT" EDIT THIS FILE! // PLEASE DO "NOT" EDIT THIS FILE!
...@@ -118,18 +118,18 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( ...@@ -118,18 +118,18 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
fieldEditBoxSizer = new wxBoxSizer( wxVERTICAL ); fieldEditBoxSizer = new wxBoxSizer( wxVERTICAL );
wxStaticBoxSizer* sbSizerOptions; wxStaticBoxSizer* sbSizerOptions;
sbSizerOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options") ), wxHORIZONTAL ); sbSizerOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Text Justification:") ), wxHORIZONTAL );
wxString m_FieldHJustifyCtrlChoices[] = { _("Align left"), _("Align center"), _("Align right") }; wxString m_FieldHJustifyCtrlChoices[] = { _("Left"), _("Center"), _("Right") };
int m_FieldHJustifyCtrlNChoices = sizeof( m_FieldHJustifyCtrlChoices ) / sizeof( wxString ); int m_FieldHJustifyCtrlNChoices = sizeof( m_FieldHJustifyCtrlChoices ) / sizeof( wxString );
m_FieldHJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Horiz. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldHJustifyCtrlNChoices, m_FieldHJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS ); m_FieldHJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Horiz. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldHJustifyCtrlNChoices, m_FieldHJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
m_FieldHJustifyCtrl->SetSelection( 1 ); m_FieldHJustifyCtrl->SetSelection( 0 );
sbSizerOptions->Add( m_FieldHJustifyCtrl, 1, wxRIGHT|wxLEFT, 5 ); sbSizerOptions->Add( m_FieldHJustifyCtrl, 1, wxRIGHT|wxLEFT, 5 );
wxString m_FieldVJustifyCtrlChoices[] = { _("Align bottom"), _("Align center"), _("Align top") }; wxString m_FieldVJustifyCtrlChoices[] = { _("Bottom"), _("Center"), _("Top") };
int m_FieldVJustifyCtrlNChoices = sizeof( m_FieldVJustifyCtrlChoices ) / sizeof( wxString ); int m_FieldVJustifyCtrlNChoices = sizeof( m_FieldVJustifyCtrlChoices ) / sizeof( wxString );
m_FieldVJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Vert. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldVJustifyCtrlNChoices, m_FieldVJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS ); m_FieldVJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Vert. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldVJustifyCtrlNChoices, m_FieldVJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
m_FieldVJustifyCtrl->SetSelection( 1 ); m_FieldVJustifyCtrl->SetSelection( 2 );
sbSizerOptions->Add( m_FieldVJustifyCtrl, 1, wxRIGHT|wxLEFT, 5 ); sbSizerOptions->Add( m_FieldVJustifyCtrl, 1, wxRIGHT|wxLEFT, 5 );
fieldEditBoxSizer->Add( sbSizerOptions, 0, wxEXPAND, 5 ); fieldEditBoxSizer->Add( sbSizerOptions, 0, wxEXPAND, 5 );
...@@ -155,7 +155,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( ...@@ -155,7 +155,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") }; wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") };
int m_StyleRadioBoxNChoices = sizeof( m_StyleRadioBoxChoices ) / sizeof( wxString ); int m_StyleRadioBoxNChoices = sizeof( m_StyleRadioBoxChoices ) / sizeof( wxString );
m_StyleRadioBox = new wxRadioBox( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, m_StyleRadioBoxNChoices, m_StyleRadioBoxChoices, 1, wxRA_SPECIFY_COLS ); m_StyleRadioBox = new wxRadioBox( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, m_StyleRadioBoxNChoices, m_StyleRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
m_StyleRadioBox->SetSelection( 0 ); m_StyleRadioBox->SetSelection( 3 );
m_StyleRadioBox->SetToolTip( _("The style of the currently selected field's text in the schemati") ); m_StyleRadioBox->SetToolTip( _("The style of the currently selected field's text in the schemati") );
visibilitySizer->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 ); visibilitySizer->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
...@@ -253,7 +253,6 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( ...@@ -253,7 +253,6 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
this->SetSizer( mainSizer ); this->SetSizer( mainSizer );
this->Layout(); this->Layout();
mainSizer->Fit( this );
// Connect Events // Connect Events
defaultsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::SetInitCmp ), NULL, this ); defaultsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::SetInitCmp ), NULL, this );
......
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 6 2011) // C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/ // http://www.wxformbuilder.org/
// //
// PLEASE DO "NOT" EDIT THIS FILE! // PLEASE DO "NOT" EDIT THIS FILE!
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_edit_component_in_schematic_fbp__ #ifndef __DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP_H__
#define __dialog_edit_component_in_schematic_fbp__ #define __DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h> #include <wx/intl.h>
#include <wx/string.h> #include <wx/string.h>
#include <wx/choice.h> #include <wx/choice.h>
#include <wx/gdicmn.h> #include <wx/gdicmn.h>
...@@ -80,9 +81,9 @@ class DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP : public wxDialog ...@@ -80,9 +81,9 @@ class DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP : public wxDialog
public: public:
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU ); DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 700,521 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(); ~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP();
}; };
#endif //__dialog_edit_component_in_schematic_fbp__ #endif //__DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP_H__
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 8 2010) // C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/ // http://www.wxformbuilder.org/
// //
// PLEASE DO "NOT" EDIT THIS FILE! // PLEASE DO "NOT" EDIT THIS FILE!
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_edit_libentry_fields_in_lib_base__ #ifndef __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
#define __dialog_edit_libentry_fields_in_lib_base__ #define __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
#include <wx/intl.h> #include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/listctrl.h> #include <wx/intl.h>
#include <wx/gdicmn.h> #include <wx/listctrl.h>
#include <wx/font.h> #include <wx/string.h>
#include <wx/colour.h> #include <wx/gdicmn.h>
#include <wx/settings.h> #include <wx/font.h>
#include <wx/string.h> #include <wx/colour.h>
#include <wx/button.h> #include <wx/settings.h>
#include <wx/sizer.h> #include <wx/button.h>
#include <wx/statbox.h> #include <wx/sizer.h>
#include <wx/radiobox.h> #include <wx/statbox.h>
#include <wx/checkbox.h> #include <wx/radiobox.h>
#include <wx/stattext.h> #include <wx/checkbox.h>
#include <wx/textctrl.h> #include <wx/stattext.h>
#include <wx/dialog.h> #include <wx/textctrl.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE ///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// /// Class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public wxDialog ///////////////////////////////////////////////////////////////////////////////
{ class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public wxDialog
private: {
private:
protected:
wxListCtrl* fieldListCtrl; protected:
wxButton* addFieldButton; wxListCtrl* fieldListCtrl;
wxButton* deleteFieldButton; wxButton* addFieldButton;
wxButton* moveUpButton; wxButton* deleteFieldButton;
wxRadioBox* m_FieldHJustifyCtrl; wxButton* moveUpButton;
wxRadioBox* m_FieldVJustifyCtrl; wxRadioBox* m_FieldHJustifyCtrl;
wxCheckBox* showCheckBox; wxRadioBox* m_FieldVJustifyCtrl;
wxCheckBox* rotateCheckBox; wxCheckBox* showCheckBox;
wxRadioBox* m_StyleRadioBox; wxCheckBox* rotateCheckBox;
wxStaticText* fieldNameLabel; wxRadioBox* m_StyleRadioBox;
wxTextCtrl* fieldNameTextCtrl; wxStaticText* fieldNameLabel;
wxStaticText* fieldValueLabel; wxTextCtrl* fieldNameTextCtrl;
wxTextCtrl* fieldValueTextCtrl; wxStaticText* fieldValueLabel;
wxStaticText* textSizeLabel; wxTextCtrl* fieldValueTextCtrl;
wxTextCtrl* textSizeTextCtrl; wxStaticText* textSizeLabel;
wxStaticText* posXLabel; wxTextCtrl* textSizeTextCtrl;
wxTextCtrl* posXTextCtrl; wxStaticText* posXLabel;
wxStaticText* posYLabel; wxTextCtrl* posXTextCtrl;
wxTextCtrl* posYTextCtrl; wxStaticText* posYLabel;
wxStdDialogButtonSizer* stdDialogButtonSizer; wxTextCtrl* posYTextCtrl;
wxButton* stdDialogButtonSizerOK; wxStdDialogButtonSizer* stdDialogButtonSizer;
wxButton* stdDialogButtonSizerCancel; wxButton* stdDialogButtonSizerOK;
wxButton* stdDialogButtonSizerCancel;
// Virtual event handlers, overide them in your derived class
virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } // Virtual event handlers, overide them in your derived class
virtual void OnListItemDeselected( wxListEvent& event ) { event.Skip(); } virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); } virtual void OnListItemDeselected( wxListEvent& event ) { event.Skip(); }
virtual void addFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); } virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); }
virtual void deleteFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); } virtual void addFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
virtual void moveUpButtonHandler( wxCommandEvent& event ) { event.Skip(); } virtual void deleteFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCancelButtonClick( wxCommandEvent& event ) { event.Skip(); } virtual void moveUpButtonHandler( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOKButtonClick( wxCommandEvent& event ) { event.Skip(); } virtual void OnCancelButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOKButtonClick( wxCommandEvent& event ) { event.Skip(); }
public:
public:
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Fields Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 615,550 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE(); DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Fields Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 615,550 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE();
};
};
#endif //__dialog_edit_libentry_fields_in_lib_base__
#endif //__DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment