KiCad PCB EDA Suite
widget_eeschema_color_config.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2007 G. Harland
5  * Copyright (C) 1992-2016 KiCad Developers, see CHANGELOG.TXT for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef WIDGET_EESCHEMA_COLOR_CONFIG_H_
26 #define WIDGET_EESCHEMA_COLOR_CONFIG_H_
27 
28 #include <wx/panel.h>
29 #include <wx/sizer.h>
30 #include <wx/colordlg.h>
31 #include <wx/clrpicker.h>
32 
33 class wxBoxSizer;
34 class wxStaticLine;
35 class wxStdDialogButtonSizer;
36 
37 
38 /***********************************************/
39 /* Derived class for the frame color settings. */
40 /***********************************************/
41 
42 class WIDGET_EESCHEMA_COLOR_CONFIG : public wxPanel
43 {
44 private:
46  wxBoxSizer* m_mainBoxSizer;
47 
48  // Creates the controls and sizers
49  void CreateControls();
50 
51  void SetColor( wxCommandEvent& aEvent );
52 
53  virtual EDA_DRAW_FRAME* GetDrawFrame() { return m_drawFrame; }
54 
55 public:
56  // Constructors and destructor
57  WIDGET_EESCHEMA_COLOR_CONFIG( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame );
58 
60 
67  void InstallOnPanel( wxPanel* aPanel );
68 };
69 
70 #endif // WIDGET_EESCHEMA_COLOR_CONFIG_H_
WIDGET_EESCHEMA_COLOR_CONFIG(wxWindow *aParent, EDA_DRAW_FRAME *aDrawFrame)
Class EDA_DRAW_FRAME is the base class for create windows for drawing purpose.
Definition: draw_frame.h:54
void InstallOnPanel(wxPanel *aPanel)
Method InstallOnPanel Install this WIDGET_EESCHEMA_COLOR_CONFIG onto an empty panel.
virtual EDA_DRAW_FRAME * GetDrawFrame()