KiCad PCB EDA Suite
selcolor.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <gal/color4d.h>
#include <wx/statline.h>
#include <algorithm>

Go to the source code of this file.

Classes

class  CHOOSE_COLOR_DLG
 

Enumerations

enum  colors_id { ID_COLOR_BLACK = 2000 }
 

Functions

 EVT_COMMAND_RANGE (ID_COLOR_BLACK, ID_COLOR_BLACK+NBCOLORS, wxEVT_COMMAND_BUTTON_CLICKED, CHOOSE_COLOR_DLG::selColor) COLOR4D DisplayColorFrame(wxWindow *aParent
 
 if (dlg.ShowModal()==wxID_OK)
 

Variables

COLOR4D aOldColor
 

Enumeration Type Documentation

enum colors_id
Enumerator
ID_COLOR_BLACK 

Definition at line 42 of file selcolor.cpp.

42  {
43  ID_COLOR_BLACK = 2000 // colors_id = ID_COLOR_BLACK a ID_COLOR_BLACK + NBCOLORS-1
44 };

Function Documentation

EVT_COMMAND_RANGE ( ID_COLOR_BLACK  ,
ID_COLOR_BLACK NBCOLORS,
wxEVT_COMMAND_BUTTON_CLICKED  ,
CHOOSE_COLOR_DLG::selColor   
)
if ( dlg.  ShowModal() = = wxID_OK)

Definition at line 76 of file selcolor.cpp.

References CHOOSE_COLOR_DLG::GetSelectedColor().

77  {
78  return dlg.GetSelectedColor();
79  }

Variable Documentation

COLOR4D aOldColor
Initial value:
{
CHOOSE_COLOR_DLG dlg( aParent, aOldColor )
COLOR4D aOldColor
Definition: selcolor.cpp:73

Definition at line 73 of file selcolor.cpp.

Referenced by CHOOSE_COLOR_DLG::CHOOSE_COLOR_DLG().