KiCad PCB EDA Suite
Loading...
Searching...
No Matches
native_model_file_picker.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
19 */
20
21#ifndef NATIVE_MODEL_FILE_PICKER_H
22#define NATIVE_MODEL_FILE_PICKER_H
23
24#include <wx/string.h>
25
26class wxWindow;
27
29{
30 wxWindow* parent = nullptr;
31 wxString title;
32 wxString directory;
33 wxString filename;
34 wxString wildcard;
35 long style = 0;
36 int filterIndex = 0;
37 bool embedFile = false;
38};
39
40// Selection fields are valid only when accepted is true.
42{
43 bool accepted = false;
44 wxString path;
45 int filterIndex = 0;
46 bool embedFile = false;
47};
48
50
51#endif // NATIVE_MODEL_FILE_PICKER_H
NATIVE_MODEL_FILE_PICKER_RESULT ShowNativeModelFilePicker(const NATIVE_MODEL_FILE_PICKER_OPTIONS &aOptions)