KiCad PCB EDA Suite
dlg_select_3dmodel.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) 2016 Cirilo Bernardo <cirilo.bernardo@gmail.com>
5  * Copyright (C) 2018 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, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
31 #ifndef DLG_SELECT_3DMODEL_H
32 #define DLG_SELECT_3DMODEL_H
33 
35 
36 class FP_3DMODEL;
37 class S3D_CACHE;
38 class FILENAME_RESOLVER;
39 class C3D_MODEL_VIEWER;
40 
42 {
43 private:
44  FP_3DMODEL* m_model; // data for the selected model
45  S3D_CACHE* m_cache; // cache manager
46  FILENAME_RESOLVER* m_resolver; // 3D filename resolver
47 
48  wxString& m_previousDir;
50 
52 
53  void updateDirChoiceList( void );
54 
55 public:
56  DLG_SELECT_3DMODEL( wxWindow* aParent, S3D_CACHE* aCacheManager, FP_3DMODEL* aModelItem,
57  wxString& prevModelSelectDir, int& prevModelWildcard );
58 
59  bool TransferDataFromWindow() override;
60  void OnSelectionChanged( wxCommandEvent& event )override;
61  void OnFileActivated( wxCommandEvent& event )override;
62  void SetRootDir( wxCommandEvent& event ) override;
63  void Cfg3DPaths( wxCommandEvent& event ) override;
64 };
65 
66 #endif // DLG_SELECT_3DMODEL_H
bool TransferDataFromWindow() override
C3D_MODEL_VIEWER * m_modelViewer
void SetRootDir(wxCommandEvent &event) override
S3D_CACHE.
Definition: 3d_cache.h:54
Class C3D_MODEL_VIEWER Implement a canvas based on a wxGLCanvas.
void OnFileActivated(wxCommandEvent &event) override
FILENAME_RESOLVER * m_resolver
void Cfg3DPaths(wxCommandEvent &event) override
DLG_SELECT_3DMODEL(wxWindow *aParent, S3D_CACHE *aCacheManager, FP_3DMODEL *aModelItem, wxString &prevModelSelectDir, int &prevModelWildcard)
void OnSelectionChanged(wxCommandEvent &event) override
Class DLG_SELECT_3D_MODELE_BASE.