KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_plugin_options.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) 2023 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21#ifndef _DIALOG_PLUGIN_OPTIONS_H_
22#define _DIALOG_PLUGIN_OPTIONS_H_
23
25#include <string_utf8_map.h>
26
33{
34public:
35 DIALOG_PLUGIN_OPTIONS( wxWindow* aParent, const wxString& aNickname,
36 const STRING_UTF8_MAP& aPluginOptions, const wxString& aFormattedOptions,
37 wxString* aResult );
38
39 ~DIALOG_PLUGIN_OPTIONS() override;
40
41 bool TransferDataToWindow() override;
42
43 bool TransferDataFromWindow() override;
44
45private:
46 const wxString& m_callers_options;
47 wxString* m_result;
51
52 int appendRow();
53
54 void appendOption();
55
56 //-----<event handlers>------------------------------------------------------
57 void onListBoxItemSelected( wxCommandEvent& event ) override;
58
59 void onListBoxItemDoubleClicked( wxCommandEvent& event ) override;
60
61 void onAppendOption( wxCommandEvent& ) override;
62
63 void onAppendRow( wxCommandEvent& ) override;
64
65 void onDeleteRow( wxCommandEvent& ) override;
66
67 void onGridCellChange( wxGridEvent& aEvent ) override;
68
69 void onUpdateUI( wxUpdateUIEvent& ) override;
70
71 void onSize( wxSizeEvent& aEvent ) override;
72};
73
74
75#endif // _DIALOG_PLUGIN_OPTIONS_H_
76
Class DIALOG_PLUGIN_OPTIONS_BASE.
DIALOG_PLUGIN_OPTIONS is an options editor in the form of a two column name/value spreadsheet like (t...
void onAppendOption(wxCommandEvent &) override
void onListBoxItemSelected(wxCommandEvent &event) override
void onDeleteRow(wxCommandEvent &) override
bool TransferDataToWindow() override
const wxString & m_callers_options
void onUpdateUI(wxUpdateUIEvent &) override
void onSize(wxSizeEvent &aEvent) override
bool TransferDataFromWindow() override
void onGridCellChange(wxGridEvent &aEvent) override
void onListBoxItemDoubleClicked(wxCommandEvent &event) override
void onAppendRow(wxCommandEvent &) override
A name/value tuple with unique names and optional values.