KiCad PCB EDA Suite
dialog_graphic_items_options.h
Go to the documentation of this file.
1 
5  /*
6  * This program source code file is part of KiCad, a free EDA CAD application.
7  *
8  * Copyright (C) 1992-2010 <Jean-Pierre Charras> jean-pierre.charras@gipsa-lab.inpg.fr
9  * Copyright (C) 1992-2016 KiCad Developers, see change_log.txt for contributors.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, you may find one here:
23  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
24  * or you may search the http://www.gnu.org website for the version 2 license,
25  * or you may write to the Free Software Foundation, Inc.,
26  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27  */
28 
29 #ifndef _DIALOG_GRAPHIC_ITEMS_OPTIONS_H_
30 #define _DIALOG_GRAPHIC_ITEMS_OPTIONS_H_
31 
33 
39 {
40 private:
43 
44 public:
47 
48 private:
49  void initValues( );
50  void OnOkClick( wxCommandEvent& event ) override;
51  void OnCancelClick( wxCommandEvent& event ) override;
52 
53  void OnInitDlg( wxInitDialogEvent& event ) override
54  {
55  // Call the default wxDialog handler of a wxInitDialogEvent
56  TransferDataToWindow();
57 
58  // Now all widgets have the size fixed, call FinishDialogSettings
60  }
61 };
62 
63 #endif
64  // _DIALOG_GRAPHIC_ITEMS_OPTIONS_H_
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
void OnCancelClick(wxCommandEvent &event) override
void OnOkClick(wxCommandEvent &event) override
DIALOG_GRAPHIC_ITEMS_OPTIONS(PCB_BASE_FRAME *parent)
Class DIALOG_GRAPHIC_ITEMS_OPTIONS_BASE.
class PCB_BASE_FRAME basic PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer...
void OnInitDlg(wxInitDialogEvent &event) override
Class BOARD_DESIGN_SETTINGS contains design settings for a BOARD object.