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 41 of file selcolor.cpp.

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

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 75 of file selcolor.cpp.

References CHOOSE_COLOR_DLG::GetSelectedColor().

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

Variable Documentation

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

Definition at line 72 of file selcolor.cpp.

Referenced by CHOOSE_COLOR_DLG::CHOOSE_COLOR_DLG().