Commit a3c60f36 authored by CHARRAS's avatar CHARRAS
Browse files

cvpcb: 2 missing .prj files added

parent 8a17ac00
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4,6 +4,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with 
email address.

2007-Oct-24 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+ cvpcb:
	2 missing .prj files added (and updated)
	dialog_display_option.cpp is rebuild from its dialog_display_option.prj source


2007-Oct-23 UPDATE   Geoff Harland <gharlandau@yahoo.com.au>
================================================================================
+5 −4
Original line number Diff line number Diff line
@@ -261,10 +261,11 @@ wxBitmap KiConfigCvpcbFrame::GetBitmapResource( const wxString& name )
wxIcon KiConfigCvpcbFrame::GetIconResource( const wxString& name )
{
    // Icon retrieval
////@begin KiConfigCvpcbFrame icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end KiConfigCvpcbFrame icon retrieval
	#ifdef __WINDOWS__
	return( wxICON(a_icon_cvpcb));
	#else
	return( wxICON(icon_cvpcb));
	#endif
}
/*!
 * wxEVT_COMMAND_BUTTON_CLICKED event handler for SAVE_CFG
+1575 −0

File added.

Preview size limit exceeded, changes collapsed.

+114 −63
Original line number Diff line number Diff line
@@ -66,6 +66,14 @@ IMPLEMENT_DYNAMIC_CLASS( KiDisplayOptionsFrame, wxDialog )
BEGIN_EVENT_TABLE( KiDisplayOptionsFrame, wxDialog )

////@begin KiDisplayOptionsFrame event table entries
    EVT_RADIOBOX( EDGE_SELECT, KiDisplayOptionsFrame::OnEdgeSelectSelected )

    EVT_RADIOBOX( TEXT_SELECT, KiDisplayOptionsFrame::OnTextSelectSelected )

    EVT_CHECKBOX( PADFILL_OPT, KiDisplayOptionsFrame::OnPadfillOptClick )

    EVT_CHECKBOX( PADNUM_OPT, KiDisplayOptionsFrame::OnPadnumOptClick )

    EVT_BUTTON( ID_SAVE_CONFIG, KiDisplayOptionsFrame::OnSaveConfigClick )

    EVT_BUTTON( wxID_OK, KiDisplayOptionsFrame::OnOkClick )
@@ -102,17 +110,19 @@ bool KiDisplayOptionsFrame::Create( wxWindow* parent, wxWindowID id, const wxStr
////@begin KiDisplayOptionsFrame member initialisation
    m_EdgesDisplayOption = NULL;
    m_TextDisplayOption = NULL;
    m_IsShowPadNum = NULL;
    m_IsShowPadFill = NULL;
    m_IsShowPadNum = NULL;
////@end KiDisplayOptionsFrame member initialisation

////@begin KiDisplayOptionsFrame creation
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    GetSizer()->Fit(this);
    if (GetSizer())
    {
        GetSizer()->SetSizeHints(this);
    }
    Centre();
////@end KiDisplayOptionsFrame creation
    return true;
@@ -127,7 +137,7 @@ void KiDisplayOptionsFrame::CreateControls()
	SetFont(*g_DialogFont);

////@begin KiDisplayOptionsFrame content construction
    // Generated by DialogBlocks, 17/02/2006 18:31:55 (unregistered)
    // Generated by DialogBlocks, 24/10/2007 22:11:46 (unregistered)

    KiDisplayOptionsFrame* itemDialog1 = this;

@@ -135,76 +145,65 @@ void KiDisplayOptionsFrame::CreateControls()
    itemDialog1->SetSizer(itemBoxSizer2);

    wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
//  itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
    itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_TOP|wxALL, 5);

    wxBoxSizer* itemBoxSizer4 = new wxBoxSizer(wxHORIZONTAL);
//  itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
    itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALIGN_TOP|wxALL, 5);

    wxString m_EdgesDisplayOptionStrings[] = {
        _("&Filaire"),
        _("&Filled"),
        _("&Sketch")
    };
    m_EdgesDisplayOption = new wxRadioBox( itemDialog1, EDGE_SELECT, _("Edges:"), wxDefaultPosition, wxDefaultSize, 3, m_EdgesDisplayOptionStrings, 1, wxRA_SPECIFY_COLS );
//  itemBoxSizer3->Add(m_EdgesDisplayOption, 0, wxGROW|wxALL, 5);
    itemBoxSizer3->Add(m_EdgesDisplayOption, 0, wxALIGN_LEFT|wxALL, 5);

    wxString m_TextDisplayOptionStrings[] = {
        _("&Filaire"),
        _("&Filled"),
        _("&Sketch")
    };
    m_TextDisplayOption = new wxRadioBox( itemDialog1, TEXT_SELECT, _("Texts:"), wxDefaultPosition, wxDefaultSize, 3, m_TextDisplayOptionStrings, 1, wxRA_SPECIFY_COLS );
//  itemBoxSizer3->Add(m_TextDisplayOption, 0, wxGROW|wxALL, 5);
    itemBoxSizer3->Add(m_TextDisplayOption, 0, wxALIGN_LEFT|wxALL, 5);

    wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL);
//  itemBoxSizer3->Add(itemBoxSizer5, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
    itemBoxSizer3->Add(itemBoxSizer5, 0, wxGROW|wxALL, 0);

    // Provide a spacer to improve appearance of dialog box
    itemBoxSizer5->AddSpacer(5);

    m_IsShowPadNum = new wxCheckBox( itemDialog1, PADNUM_OPT, _("Pad &Num"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
    itemBoxSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALL, 5);

    wxArrayString m_EdgesDisplayOptionStrings;
    m_EdgesDisplayOptionStrings.Add(_("&Line"));
    m_EdgesDisplayOptionStrings.Add(_("&Filled"));
    m_EdgesDisplayOptionStrings.Add(_("&Sketch"));
    m_EdgesDisplayOption = new wxRadioBox( itemDialog1, EDGE_SELECT, _("Edges:"), wxDefaultPosition, wxDefaultSize, m_EdgesDisplayOptionStrings, 1, wxRA_SPECIFY_COLS );
    m_EdgesDisplayOption->SetSelection(0);
    itemBoxSizer3->Add(m_EdgesDisplayOption, 0, wxGROW|wxALL, 5);

    wxArrayString m_TextDisplayOptionStrings;
    m_TextDisplayOptionStrings.Add(_("&Line"));
    m_TextDisplayOptionStrings.Add(_("&Filled"));
    m_TextDisplayOptionStrings.Add(_("&Sketch"));
    m_TextDisplayOption = new wxRadioBox( itemDialog1, TEXT_SELECT, _("Texts:"), wxDefaultPosition, wxDefaultSize, m_TextDisplayOptionStrings, 1, wxRA_SPECIFY_COLS );
    m_TextDisplayOption->SetSelection(0);
    itemBoxSizer3->Add(m_TextDisplayOption, 0, wxGROW|wxALL, 5);

    wxBoxSizer* itemBoxSizer6 = new wxBoxSizer(wxVERTICAL);
    itemBoxSizer3->Add(itemBoxSizer6, 0, wxGROW|wxALL, 5);

    m_IsShowPadFill = new wxCheckBox( itemDialog1, PADFILL_OPT, _("&Pad Filled"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
    m_IsShowPadFill->SetValue(false);
    itemBoxSizer6->Add(m_IsShowPadFill, 0, wxGROW|wxALL, 5);

    m_IsShowPadNum = new wxCheckBox( itemDialog1, PADNUM_OPT, _("Display Pad &Num"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
    m_IsShowPadNum->SetValue(false);
//  itemBoxSizer5->Add(m_IsShowPadNum, 0, wxGROW|wxALL, 5);
    itemBoxSizer5->Add(m_IsShowPadNum, 0, wxALIGN_TOP|wxALL, 5);
    if (ShowToolTips())
        m_IsShowPadNum->SetToolTip(_("Display pad number"));
    itemBoxSizer6->Add(m_IsShowPadNum, 0, wxGROW|wxALL, 5);

    m_IsShowPadFill = new wxCheckBox( itemDialog1, PADFILL_OPT, _("&Pad Fill"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
    m_IsShowPadFill->SetValue(false);
//  itemBoxSizer5->Add(m_IsShowPadFill, 0, wxGROW|wxALL, 5);
    itemBoxSizer5->Add(m_IsShowPadFill, 0, wxALIGN_TOP|wxALL, 5);
    itemBoxSizer6->Add(5, 5, 0, wxGROW|wxLEFT|wxTOP|wxBOTTOM, 5);

    // Provide a stretch spacer to improve appearance of dialog box
    itemBoxSizer5->AddStretchSpacer();
    wxButton* itemButton10 = new wxButton( itemDialog1, ID_SAVE_CONFIG, _("Save Cfg"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer6->Add(itemButton10, 0, wxGROW|wxALL, 5);

    wxButton* itemButton6 = new wxButton( itemDialog1, ID_SAVE_CONFIG, _("Save Cfg..."), wxDefaultPosition, wxDefaultSize, 0 );
//  itemBoxSizer5->Add(itemButton6, 0, wxGROW|wxALL, 5);
    itemBoxSizer5->Add(itemButton6, 0, wxALIGN_BOTTOM|wxALL, 5);
    wxStaticLine* itemStaticLine11 = new wxStaticLine( itemDialog1, ID_STATICLINE1, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
    itemBoxSizer2->Add(itemStaticLine11, 0, wxGROW|wxALL, 5);

//  itemBoxSizer4->AddStretchSpacer();
    wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxHORIZONTAL);
    itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

    wxButton* itemButton7 = new wxButton( itemDialog1, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton7->SetForegroundColour(*wxRED);
//  itemBoxSizer4->Add(itemButton7, 0, wxGROW|wxALL, 5);
    itemBoxSizer4->Add(itemButton7, 0, wxALIGN_RIGHT|wxALL, 5);
    wxButton* itemButton13 = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton13->SetDefault();
    itemButton13->SetForegroundColour(wxColour(255, 0, 0));
    itemBoxSizer12->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxButton* itemButton8 = new wxButton( itemDialog1, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton8->SetForegroundColour(*wxBLUE);
//  itemBoxSizer4->Add(itemButton8, 0, wxGROW|wxALL, 5);
    itemBoxSizer4->Add(itemButton8, 0, wxALIGN_RIGHT|wxALL, 5);
    wxButton* itemButton14 = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
    itemButton14->SetForegroundColour(wxColour(0, 0, 255));
    itemBoxSizer12->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    wxButton* itemButton9 = new wxButton( itemDialog1, wxID_APPLY, _("Apply"), wxDefaultPosition, wxDefaultSize, 0 );
//  itemBoxSizer4->Add(itemButton9, 0, wxGROW|wxALL, 5);
    itemBoxSizer4->Add(itemButton9, 0, wxALIGN_RIGHT|wxALL, 5);
    wxButton* itemButton15 = new wxButton( itemDialog1, wxID_APPLY, _("&Apply"), wxDefaultPosition, wxDefaultSize, 0 );
    itemBoxSizer12->Add(itemButton15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

    // Set validators
    m_EdgesDisplayOption->SetValidator( wxGenericValidator(& DisplayOpt.DisplayModEdge) );
    m_TextDisplayOption->SetValidator( wxGenericValidator(& DisplayOpt.DisplayModText) );
    m_IsShowPadNum->SetValidator( wxGenericValidator(& DisplayOpt.DisplayPadNum) );
    m_IsShowPadFill->SetValidator( wxGenericValidator(& DisplayOpt.DisplayPadFill) );
    m_IsShowPadNum->SetValidator( wxGenericValidator(& DisplayOpt.DisplayPadNum) );
////@end KiDisplayOptionsFrame content construction
}

@@ -247,7 +246,7 @@ wxIcon KiDisplayOptionsFrame::GetIconResource( const wxString& name )
 * Update settings related to edges, text strings, and pads
 */

void KiDisplayOptionsFrame::UpdateObjectSettings()
void KiDisplayOptionsFrame::UpdateObjectSettings(void)
{
    // Update settings
////@begin KiDisplayOptionsFrame update settings
@@ -305,3 +304,55 @@ void KiDisplayOptionsFrame::OnApplyClick( wxCommandEvent& event )
}



/*!
 * wxEVT_COMMAND_RADIOBOX_SELECTED event handler for EDGE_SELECT
 */

void KiDisplayOptionsFrame::OnEdgeSelectSelected( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_RADIOBOX_SELECTED event handler for EDGE_SELECT in KiDisplayOptionsFrame.
    // Before editing this code, remove the block markers.
    event.Skip();
////@end wxEVT_COMMAND_RADIOBOX_SELECTED event handler for EDGE_SELECT in KiDisplayOptionsFrame. 
}


/*!
 * wxEVT_COMMAND_RADIOBOX_SELECTED event handler for TEXT_SELECT
 */

void KiDisplayOptionsFrame::OnTextSelectSelected( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_RADIOBOX_SELECTED event handler for TEXT_SELECT in KiDisplayOptionsFrame.
    // Before editing this code, remove the block markers.
    event.Skip();
////@end wxEVT_COMMAND_RADIOBOX_SELECTED event handler for TEXT_SELECT in KiDisplayOptionsFrame. 
}


/*!
 * wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADFILL_OPT
 */

void KiDisplayOptionsFrame::OnPadfillOptClick( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADFILL_OPT in KiDisplayOptionsFrame.
    // Before editing this code, remove the block markers.
    event.Skip();
////@end wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADFILL_OPT in KiDisplayOptionsFrame. 
}


/*!
 * wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADNUM_OPT
 */

void KiDisplayOptionsFrame::OnPadnumOptClick( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADNUM_OPT in KiDisplayOptionsFrame.
    // Before editing this code, remove the block markers.
    event.Skip();
////@end wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADNUM_OPT in KiDisplayOptionsFrame. 
}
+23 −10
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@

////@begin includes
#include "wx/valgen.h"
#include "wx/statline.h"
////@end includes

/*!
@@ -39,16 +40,17 @@

////@begin control identifiers
#define ID_DIALOG 10000
#define SYMBOL_KIDISPLAYOPTIONSFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define EDGE_SELECT 10003
#define TEXT_SELECT 10004
#define PADFILL_OPT 10001
#define PADNUM_OPT 10002
#define ID_SAVE_CONFIG 10005
#define ID_STATICLINE1 10007
#define SYMBOL_KIDISPLAYOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_KIDISPLAYOPTIONSFRAME_TITLE _("Options")
#define SYMBOL_KIDISPLAYOPTIONSFRAME_IDNAME ID_DIALOG
#define SYMBOL_KIDISPLAYOPTIONSFRAME_SIZE wxSize(400, 300)
#define SYMBOL_KIDISPLAYOPTIONSFRAME_POSITION wxDefaultPosition
#define PADNUM_OPT 10002
#define ID_SAVE_CONFIG 10005
#define PADFILL_OPT 10001
#define EDGE_SELECT 10003
#define TEXT_SELECT 10004
////@end control identifiers

/*!
@@ -81,6 +83,18 @@ public:

////@begin KiDisplayOptionsFrame event handler declarations

    /// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for EDGE_SELECT
    void OnEdgeSelectSelected( wxCommandEvent& event );

    /// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for TEXT_SELECT
    void OnTextSelectSelected( wxCommandEvent& event );

    /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADFILL_OPT
    void OnPadfillOptClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for PADNUM_OPT
    void OnPadnumOptClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SAVE_CONFIG
    void OnSaveConfigClick( wxCommandEvent& event );

@@ -102,19 +116,18 @@ public:

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );

    /// Updates settings related to edges, text strings, and pads
    void UpdateObjectSettings();
////@end KiDisplayOptionsFrame member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

	void UpdateObjectSettings(void);
	
////@begin KiDisplayOptionsFrame member variables
    wxRadioBox* m_EdgesDisplayOption;
    wxRadioBox* m_TextDisplayOption;
    wxCheckBox* m_IsShowPadNum;
    wxCheckBox* m_IsShowPadFill;
    wxCheckBox* m_IsShowPadNum;
////@end KiDisplayOptionsFrame member variables

	WinEDA_BasePcbFrame * m_Parent;
Loading