KiCad PCB EDA Suite
dialog_color_picker_base.h
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
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/textctrl.h>
32#include <wx/button.h>
33#include <wx/dialog.h>
34
36
37
42{
43 private:
44
45 protected:
46 wxNotebook* m_notebook;
48 wxStaticBitmap* m_RgbBitmap;
49 wxStaticText* m_staticTextR;
50 wxStaticText* m_staticTextG;
51 wxStaticText* m_staticTextB;
52 wxSpinCtrl* m_spinCtrlRed;
53 wxSpinCtrl* m_spinCtrlGreen;
54 wxSpinCtrl* m_spinCtrlBlue;
55 wxStaticBitmap* m_HsvBitmap;
56 wxStaticText* m_staticTextHue;
57 wxStaticText* m_staticTextSat;
58 wxSpinCtrl* m_spinCtrlHue;
60 wxStaticText* m_staticTextBright;
64 wxFlexGridSizer* m_fgridColor;
66 wxStaticText* m_opacityLabel;
68 wxStaticLine* m_staticline;
69 wxStaticText* m_staticTextOldColor;
70 wxStaticBitmap* m_OldColorRect;
71 wxStaticBitmap* m_NewColorRect;
72 wxTextCtrl* m_colorValue;
74 wxStdDialogButtonSizer* m_sdbSizer;
75 wxButton* m_sdbSizerOK;
77
78 // Virtual event handlers, override them in your derived class
79 virtual void onRGBMouseClick( wxMouseEvent& event ) { event.Skip(); }
80 virtual void onRGBMouseDrag( wxMouseEvent& event ) { event.Skip(); }
81 virtual void OnChangeEditRed( wxSpinEvent& event ) { event.Skip(); }
82 virtual void OnChangeEditGreen( wxSpinEvent& event ) { event.Skip(); }
83 virtual void OnChangeEditBlue( wxSpinEvent& event ) { event.Skip(); }
84 virtual void onHSVMouseClick( wxMouseEvent& event ) { event.Skip(); }
85 virtual void onHSVMouseDrag( wxMouseEvent& event ) { event.Skip(); }
86 virtual void OnChangeEditHue( wxSpinEvent& event ) { event.Skip(); }
87 virtual void OnChangeEditSat( wxSpinEvent& event ) { event.Skip(); }
88 virtual void OnChangeBrightness( wxScrollEvent& event ) { event.Skip(); }
89 virtual void OnChangeAlpha( wxScrollEvent& event ) { event.Skip(); }
90 virtual void OnColorValueText( wxCommandEvent& event ) { event.Skip(); }
91 virtual void OnResetButton( wxCommandEvent& event ) { event.Skip(); }
92
93
94 public:
95
96 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 );
98
99};
100
Class DIALOG_COLOR_PICKER_BASE.
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)
virtual void onRGBMouseDrag(wxMouseEvent &event)
virtual void OnChangeEditBlue(wxSpinEvent &event)
virtual void OnColorValueText(wxCommandEvent &event)
virtual void onHSVMouseClick(wxMouseEvent &event)
virtual void OnChangeEditSat(wxSpinEvent &event)
virtual void OnResetButton(wxCommandEvent &event)
virtual void OnChangeEditRed(wxSpinEvent &event)
virtual void OnChangeEditGreen(wxSpinEvent &event)
virtual void OnChangeEditHue(wxSpinEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
virtual void onRGBMouseClick(wxMouseEvent &event)
virtual void onHSVMouseDrag(wxMouseEvent &event)
virtual void OnChangeAlpha(wxScrollEvent &event)
virtual void OnChangeBrightness(wxScrollEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)