KiCad PCB EDA Suite
dialog_color_picker_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version v3.8.0)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #pragma once
9 
10 #include <wx/artprov.h>
11 #include <wx/xrc/xmlres.h>
12 #include <wx/intl.h>
13 #include "dialog_shim.h"
14 #include <wx/bitmap.h>
15 #include <wx/image.h>
16 #include <wx/icon.h>
17 #include <wx/statbmp.h>
18 #include <wx/gdicmn.h>
19 #include <wx/font.h>
20 #include <wx/colour.h>
21 #include <wx/settings.h>
22 #include <wx/string.h>
23 #include <wx/stattext.h>
24 #include <wx/spinctrl.h>
25 #include <wx/sizer.h>
26 #include <wx/statbox.h>
27 #include <wx/slider.h>
28 #include <wx/panel.h>
29 #include <wx/notebook.h>
30 #include <wx/statline.h>
31 #include <wx/button.h>
32 #include <wx/dialog.h>
33 
35 
36 
41 {
42  private:
43 
44  protected:
45  wxNotebook* m_notebook;
47  wxStaticBitmap* m_RgbBitmap;
48  wxStaticText* m_staticTextR;
49  wxStaticText* m_staticTextG;
50  wxStaticText* m_staticTextB;
51  wxSpinCtrl* m_spinCtrlRed;
52  wxSpinCtrl* m_spinCtrlGreen;
53  wxSpinCtrl* m_spinCtrlBlue;
54  wxStaticBitmap* m_HsvBitmap;
55  wxStaticText* m_staticTextHue;
56  wxStaticText* m_staticTextSat;
57  wxSpinCtrl* m_spinCtrlHue;
58  wxSpinCtrl* m_spinCtrlSaturation;
59  wxStaticText* m_staticTextBright;
60  wxSlider* m_sliderBrightness;
62  wxBoxSizer* m_SizerDefinedColors;
63  wxFlexGridSizer* m_fgridColor;
64  wxBoxSizer* m_SizerTransparency;
65  wxStaticText* m_opacityLabel;
67  wxStaticLine* m_staticline;
68  wxStaticText* m_staticTextOldColor;
69  wxStaticBitmap* m_OldColorRect;
70  wxStaticBitmap* m_NewColorRect;
71  wxButton* m_resetToDefault;
72  wxStdDialogButtonSizer* m_sdbSizer;
73  wxButton* m_sdbSizerOK;
74  wxButton* m_sdbSizerCancel;
75 
76  // Virtual event handlers, overide them in your derived class
77  virtual void onRGBMouseClick( wxMouseEvent& event ) { event.Skip(); }
78  virtual void onRGBMouseDrag( wxMouseEvent& event ) { event.Skip(); }
79  virtual void OnChangeEditRed( wxSpinEvent& event ) { event.Skip(); }
80  virtual void OnChangeEditGreen( wxSpinEvent& event ) { event.Skip(); }
81  virtual void OnChangeEditBlue( wxSpinEvent& event ) { event.Skip(); }
82  virtual void onHSVMouseClick( wxMouseEvent& event ) { event.Skip(); }
83  virtual void onHSVMouseDrag( wxMouseEvent& event ) { event.Skip(); }
84  virtual void OnChangeEditHue( wxSpinEvent& event ) { event.Skip(); }
85  virtual void OnChangeEditSat( wxSpinEvent& event ) { event.Skip(); }
86  virtual void OnChangeBrightness( wxScrollEvent& event ) { event.Skip(); }
87  virtual void OnChangeAlpha( wxScrollEvent& event ) { event.Skip(); }
88  virtual void OnResetButton( wxCommandEvent& event ) { event.Skip(); }
89 
90 
91  public:
92 
93  DIALOG_COLOR_PICKER_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Color Picker"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
95 
96 };
97 
virtual void OnChangeEditRed(wxSpinEvent &event)
virtual void onHSVMouseClick(wxMouseEvent &event)
DIALOG_COLOR_PICKER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Color Picker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnChangeEditGreen(wxSpinEvent &event)
virtual void OnChangeAlpha(wxScrollEvent &event)
virtual void OnResetButton(wxCommandEvent &event)
virtual void OnChangeEditBlue(wxSpinEvent &event)
virtual void OnChangeEditHue(wxSpinEvent &event)
virtual void onRGBMouseDrag(wxMouseEvent &event)
virtual void onHSVMouseDrag(wxMouseEvent &event)
Class DIALOG_COLOR_PICKER_BASE.
virtual void OnChangeEditSat(wxSpinEvent &event)
virtual void onRGBMouseClick(wxMouseEvent &event)
#define _(s)
Definition: 3d_actions.cpp:31
virtual void OnChangeBrightness(wxScrollEvent &event)