KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_configure_paths.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) 2015 Wayne Stambaugh <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.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, see <https://www.gnu.org/licenses/>.
19 */
20
21#ifndef _DIALOG_CONFIGURE_PATHS_H_
22#define _DIALOG_CONFIGURE_PATHS_H_
23
24#include <memory>
25
26#include <wx/string.h>
27#include <wx/valtext.h>
28
29#include <../common/dialogs/dialog_configure_paths_base.h>
30
31
32class HTML_WINDOW;
33
34
36{
37public:
38 DIALOG_CONFIGURE_PATHS( wxWindow* aParent );
39 ~DIALOG_CONFIGURE_PATHS() override;
40
41 bool TransferDataToWindow() override;
42 bool TransferDataFromWindow() override;
43
44protected:
45 // Various button callbacks
46 void OnUpdateUI( wxUpdateUIEvent& event ) override;
47 void OnGridCellChanging( wxGridEvent& event );
48 void OnAddEnvVar( wxCommandEvent& event ) override;
49 void OnRemoveEnvVar( wxCommandEvent& event ) override;
50 void OnHelp( wxCommandEvent& event ) override;
51
52 void AppendEnvVar( const wxString& aName, const wxString& aPath, bool isExternal );
53 void AppendSearchPath( const wxString& aName, const wxString& aPath, const wxString& aDesc );
54
55private:
56 wxString m_errorMsg;
57 wxGrid* m_errorGrid;
60
61 wxString m_curdir;
62 wxTextValidator m_aliasValidator;
63
66};
67
68#endif // _DIALOG_CONFIGURE_PATHS_H_
DIALOG_CONFIGURE_PATHS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Configure Paths"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void AppendSearchPath(const wxString &aName, const wxString &aPath, const wxString &aDesc)
void AppendEnvVar(const wxString &aName, const wxString &aPath, bool isExternal)
void OnGridCellChanging(wxGridEvent &event)
void OnUpdateUI(wxUpdateUIEvent &event) override
void OnHelp(wxCommandEvent &event) override
void OnRemoveEnvVar(wxCommandEvent &event) override
DIALOG_CONFIGURE_PATHS(wxWindow *aParent)
void OnAddEnvVar(wxCommandEvent &event) override
Add dark theme support to wxHtmlWindow.
Definition html_window.h:31