Rename WIDGET_COLOR_CONFIG -> WIDGET_EESCHEMA_COLOR_CONFIG
This commit is contained in:
parent
8c2427d3fa
commit
9513741816
|
@ -73,7 +73,7 @@ set( EESCHEMA_DLGS
|
|||
)
|
||||
|
||||
set( EESCHEMA_WIDGETS
|
||||
widgets/widget_color_config.cpp
|
||||
widgets/widget_eeschema_color_config.cpp
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ DIALOG_COLOR_CONFIG::DIALOG_COLOR_CONFIG( EDA_DRAW_FRAME* aParent ) :
|
|||
{
|
||||
m_parent = aParent;
|
||||
|
||||
m_colorConfig = new WIDGET_COLOR_CONFIG( this, aParent );
|
||||
m_colorConfig = new WIDGET_EESCHEMA_COLOR_CONFIG( this, aParent );
|
||||
m_colorConfig->InstallOnPanel( m_pnlColors );
|
||||
|
||||
GetSizer()->SetSizeHints( this );
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define DIALOG_COLOR_CONFIG_H_
|
||||
|
||||
#include <dialog_color_config_base.h>
|
||||
#include "../widgets/widget_color_config.h"
|
||||
#include "../widgets/widget_eeschema_color_config.h"
|
||||
|
||||
class wxBoxSizer;
|
||||
class wxStaticLine;
|
||||
|
@ -40,7 +40,7 @@ class wxStdDialogButtonSizer;
|
|||
class DIALOG_COLOR_CONFIG : public DIALOG_COLOR_CONFIG_BASE
|
||||
{
|
||||
EDA_DRAW_FRAME* m_parent;
|
||||
WIDGET_COLOR_CONFIG* m_colorConfig;
|
||||
WIDGET_EESCHEMA_COLOR_CONFIG* m_colorConfig;
|
||||
|
||||
public:
|
||||
// Constructors and destructor
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <general.h>
|
||||
|
||||
#include "widget_color_config.h"
|
||||
#include "widget_eeschema_color_config.h"
|
||||
|
||||
// Specify the width and height of every (color-displaying / bitmap) button
|
||||
const int BUTT_SIZE_X = 16;
|
||||
|
@ -107,7 +107,7 @@ static BUTTONINDEX buttonGroups[] = {
|
|||
static EDA_COLOR_T currentColors[ LAYERSCH_ID_COUNT ];
|
||||
|
||||
|
||||
WIDGET_COLOR_CONFIG::WIDGET_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame ) :
|
||||
WIDGET_EESCHEMA_COLOR_CONFIG::WIDGET_EESCHEMA_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame ) :
|
||||
wxPanel( aParent ), m_drawFrame( aDrawFrame )
|
||||
{
|
||||
CreateControls();
|
||||
|
@ -116,7 +116,7 @@ WIDGET_COLOR_CONFIG::WIDGET_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDr
|
|||
}
|
||||
|
||||
|
||||
void WIDGET_COLOR_CONFIG::CreateControls()
|
||||
void WIDGET_EESCHEMA_COLOR_CONFIG::CreateControls()
|
||||
{
|
||||
wxStaticText* label;
|
||||
int buttonId = 1800;
|
||||
|
@ -184,7 +184,7 @@ void WIDGET_COLOR_CONFIG::CreateControls()
|
|||
}
|
||||
|
||||
Connect( 1800, buttonId - 1, wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( WIDGET_COLOR_CONFIG::SetColor ) );
|
||||
wxCommandEventHandler( WIDGET_EESCHEMA_COLOR_CONFIG::SetColor ) );
|
||||
|
||||
wxArrayString selBgColorStrings;
|
||||
selBgColorStrings.Add( _( "White" ) );
|
||||
|
@ -207,7 +207,7 @@ void WIDGET_COLOR_CONFIG::CreateControls()
|
|||
}
|
||||
|
||||
|
||||
void WIDGET_COLOR_CONFIG::SetColor( wxCommandEvent& event )
|
||||
void WIDGET_EESCHEMA_COLOR_CONFIG::SetColor( wxCommandEvent& event )
|
||||
{
|
||||
wxBitmapButton* button = (wxBitmapButton*) event.GetEventObject();
|
||||
|
||||
|
@ -245,7 +245,7 @@ void WIDGET_COLOR_CONFIG::SetColor( wxCommandEvent& event )
|
|||
}
|
||||
|
||||
|
||||
bool WIDGET_COLOR_CONFIG::TransferDataFromControl()
|
||||
bool WIDGET_EESCHEMA_COLOR_CONFIG::TransferDataFromControl()
|
||||
{
|
||||
bool warning = false;
|
||||
|
||||
|
@ -295,7 +295,7 @@ bool WIDGET_COLOR_CONFIG::TransferDataFromControl()
|
|||
}
|
||||
|
||||
|
||||
void WIDGET_COLOR_CONFIG::InstallOnPanel( wxPanel* aPanel )
|
||||
void WIDGET_EESCHEMA_COLOR_CONFIG::InstallOnPanel( wxPanel* aPanel )
|
||||
{
|
||||
wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
|
@ -22,8 +22,8 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef WIDGET_COLOR_CONFIG_H_
|
||||
#define WIDGET_COLOR_CONFIG_H_
|
||||
#ifndef WIDGET_EESCHEMA_COLOR_CONFIG_H_
|
||||
#define WIDGET_EESCHEMA_COLOR_CONFIG_H_
|
||||
|
||||
#include <wx/panel.h>
|
||||
#include <wx/sizer.h>
|
||||
|
@ -37,7 +37,7 @@ class wxStdDialogButtonSizer;
|
|||
/* Derived class for the frame color settings. */
|
||||
/***********************************************/
|
||||
|
||||
class WIDGET_COLOR_CONFIG : public wxPanel
|
||||
class WIDGET_EESCHEMA_COLOR_CONFIG : public wxPanel
|
||||
{
|
||||
private:
|
||||
EDA_DRAW_FRAME* m_drawFrame;
|
||||
|
@ -53,17 +53,17 @@ private:
|
|||
|
||||
public:
|
||||
// Constructors and destructor
|
||||
WIDGET_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame );
|
||||
WIDGET_EESCHEMA_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame );
|
||||
|
||||
bool TransferDataFromControl();
|
||||
|
||||
/**
|
||||
* Method InstallOnPanel
|
||||
* Install this WIDGET_COLOR_CONFIG onto an empty panel. This is useful
|
||||
* Install this WIDGET_EESCHEMA_COLOR_CONFIG onto an empty panel. This is useful
|
||||
* when combining with wxFormBuilder, as an empty panel can be left as a
|
||||
* placeholder in the layout.
|
||||
*/
|
||||
void InstallOnPanel( wxPanel* aPanel );
|
||||
};
|
||||
|
||||
#endif // WIDGET_COLOR_CONFIG_H_
|
||||
#endif // WIDGET_EESCHEMA_COLOR_CONFIG_H_
|
Loading…
Reference in New Issue