KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_MODEL_FILE_PREVIEW Class Reference

#include <panel_model_file_preview.h>

Inheritance diagram for PANEL_MODEL_FILE_PREVIEW:

Classes

struct  LIFETIME
 
struct  RESULT
 

Public Types

using COMPLETION = std::function<void( uint64_t, RESULT )>
 
using REQUEST = std::function<void( wxString, uint64_t, COMPLETION )>
 
using CANCEL = std::function<void()>
 

Public Member Functions

 PANEL_MODEL_FILE_PREVIEW (wxWindow *aParent, REQUEST aRequest, CANCEL aCancel, bool aEmbedFile)
 
 ~PANEL_MODEL_FILE_PREVIEW () override
 
void SetSelectedFile (const wxString &aPath)
 
bool GetEmbedFile () const
 

Private Member Functions

void ApplyResult (uint64_t aGeneration, RESULT aResult)
 

Private Attributes

REQUEST m_request
 
CANCEL m_cancel
 
std::shared_ptr< LIFETIME > m_lifetime
 
std::shared_ptr< const void > m_modelOwner
 
EDA_3D_MODEL_VIEWER * m_viewer = nullptr
 
wxCheckBox * m_embedFile = nullptr
 
wxFileDialog * m_dialog = nullptr
 
wxString m_selectedFile
 
uint64_t m_generation = 0
 

Detailed Description

Definition at line 38 of file panel_model_file_preview.h.

Member Typedef Documentation

◆ CANCEL

using PANEL_MODEL_FILE_PREVIEW::CANCEL = std::function<void()>

Definition at line 53 of file panel_model_file_preview.h.

◆ COMPLETION

using PANEL_MODEL_FILE_PREVIEW::COMPLETION = std::function<void( uint64_t, RESULT )>

Definition at line 51 of file panel_model_file_preview.h.

◆ REQUEST

using PANEL_MODEL_FILE_PREVIEW::REQUEST = std::function<void( wxString, uint64_t, COMPLETION )>

Definition at line 52 of file panel_model_file_preview.h.

Constructor & Destructor Documentation

◆ PANEL_MODEL_FILE_PREVIEW()

PANEL_MODEL_FILE_PREVIEW::PANEL_MODEL_FILE_PREVIEW ( wxWindow * aParent,
REQUEST aRequest,
CANCEL aCancel,
bool aEmbedFile )

◆ ~PANEL_MODEL_FILE_PREVIEW()

PANEL_MODEL_FILE_PREVIEW::~PANEL_MODEL_FILE_PREVIEW ( )
override

Member Function Documentation

◆ ApplyResult()

◆ GetEmbedFile()

bool PANEL_MODEL_FILE_PREVIEW::GetEmbedFile ( ) const

Definition at line 140 of file panel_model_file_preview.cpp.

References m_embedFile.

◆ SetSelectedFile()

void PANEL_MODEL_FILE_PREVIEW::SetSelectedFile ( const wxString & aPath)

Member Data Documentation

◆ m_cancel

CANCEL PANEL_MODEL_FILE_PREVIEW::m_cancel
private

◆ m_dialog

wxFileDialog* PANEL_MODEL_FILE_PREVIEW::m_dialog = nullptr
private

Definition at line 72 of file panel_model_file_preview.h.

Referenced by PANEL_MODEL_FILE_PREVIEW().

◆ m_embedFile

wxCheckBox* PANEL_MODEL_FILE_PREVIEW::m_embedFile = nullptr
private

Definition at line 71 of file panel_model_file_preview.h.

Referenced by GetEmbedFile(), and PANEL_MODEL_FILE_PREVIEW().

◆ m_generation

uint64_t PANEL_MODEL_FILE_PREVIEW::m_generation = 0
private

◆ m_lifetime

std::shared_ptr<LIFETIME> PANEL_MODEL_FILE_PREVIEW::m_lifetime
private

◆ m_modelOwner

std::shared_ptr<const void> PANEL_MODEL_FILE_PREVIEW::m_modelOwner
private

◆ m_request

REQUEST PANEL_MODEL_FILE_PREVIEW::m_request
private

Definition at line 66 of file panel_model_file_preview.h.

Referenced by PANEL_MODEL_FILE_PREVIEW(), and SetSelectedFile().

◆ m_selectedFile

wxString PANEL_MODEL_FILE_PREVIEW::m_selectedFile
private

Definition at line 73 of file panel_model_file_preview.h.

Referenced by SetSelectedFile().

◆ m_viewer

EDA_3D_MODEL_VIEWER* PANEL_MODEL_FILE_PREVIEW::m_viewer = nullptr
private

The documentation for this class was generated from the following files: