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
26
class
wxWindow;
27
28
struct
NATIVE_MODEL_FILE_PICKER_OPTIONS
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.
41
struct
NATIVE_MODEL_FILE_PICKER_RESULT
42
{
43
bool
accepted
=
false
;
44
wxString
path
;
45
int
filterIndex
= 0;
46
bool
embedFile
=
false
;
47
};
48
49
NATIVE_MODEL_FILE_PICKER_RESULT
ShowNativeModelFilePicker
(
const
NATIVE_MODEL_FILE_PICKER_OPTIONS
& aOptions );
50
51
#endif
// NATIVE_MODEL_FILE_PICKER_H
ShowNativeModelFilePicker
NATIVE_MODEL_FILE_PICKER_RESULT ShowNativeModelFilePicker(const NATIVE_MODEL_FILE_PICKER_OPTIONS &aOptions)
Definition
native_model_file_picker.cpp:34
NATIVE_MODEL_FILE_PICKER_OPTIONS
Definition
native_model_file_picker.h:29
NATIVE_MODEL_FILE_PICKER_OPTIONS::title
wxString title
Definition
native_model_file_picker.h:31
NATIVE_MODEL_FILE_PICKER_OPTIONS::filename
wxString filename
Definition
native_model_file_picker.h:33
NATIVE_MODEL_FILE_PICKER_OPTIONS::filterIndex
int filterIndex
Definition
native_model_file_picker.h:36
NATIVE_MODEL_FILE_PICKER_OPTIONS::style
long style
Definition
native_model_file_picker.h:35
NATIVE_MODEL_FILE_PICKER_OPTIONS::directory
wxString directory
Definition
native_model_file_picker.h:32
NATIVE_MODEL_FILE_PICKER_OPTIONS::embedFile
bool embedFile
Definition
native_model_file_picker.h:37
NATIVE_MODEL_FILE_PICKER_OPTIONS::parent
wxWindow * parent
Definition
native_model_file_picker.h:30
NATIVE_MODEL_FILE_PICKER_OPTIONS::wildcard
wxString wildcard
Definition
native_model_file_picker.h:34
NATIVE_MODEL_FILE_PICKER_RESULT
Definition
native_model_file_picker.h:42
NATIVE_MODEL_FILE_PICKER_RESULT::filterIndex
int filterIndex
Definition
native_model_file_picker.h:45
NATIVE_MODEL_FILE_PICKER_RESULT::embedFile
bool embedFile
Definition
native_model_file_picker.h:46
NATIVE_MODEL_FILE_PICKER_RESULT::path
wxString path
Definition
native_model_file_picker.h:44
NATIVE_MODEL_FILE_PICKER_RESULT::accepted
bool accepted
Definition
native_model_file_picker.h:43
src
3d-viewer
dialogs
native_model_file_picker.h
Generated on Wed Oct 7 2026 00:05:52 for KiCad PCB EDA Suite by
1.13.2