66#define PARENT_STYLE ( wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN \ 
   67                      | wxWANTS_CHARS | wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT ) 
 
   68#define MODAL_STYLE ( wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN \ 
   69                      | wxWANTS_CHARS | wxFRAME_NO_TASKBAR ) 
 
   80    wxBoxSizer* frameSizer = 
new wxBoxSizer( wxVERTICAL );
 
   82    std::vector<PICKED_SYMBOL> dummyAlreadyPlaced;
 
   85                                               dummyAlreadyPlaced, 
false, 
false, aCancelled,
 
  101    wxPanel*    bottomPanel = 
new wxPanel( 
this );
 
  102    wxBoxSizer* bottomSizer = 
new wxBoxSizer( wxVERTICAL );
 
  104    wxStdDialogButtonSizer* sdbSizer = 
new wxStdDialogButtonSizer();
 
  105    wxButton*               okButton = 
new wxButton( bottomPanel, wxID_OK );
 
  106    wxButton*               cancelButton = 
new wxButton( bottomPanel, wxID_CANCEL );
 
  107    sdbSizer->AddButton( okButton );
 
  108    sdbSizer->AddButton( cancelButton );
 
  111    bottomSizer->Add( sdbSizer, 1, wxEXPAND | wxALL, 5 );
 
  113    bottomPanel->SetSizer( bottomSizer );
 
  114    frameSizer->Add( bottomPanel, 0, wxEXPAND );
 
  116    SetSizer( frameSizer );
 
  117    SetTitle( GetTitle() + wxString::Format( 
_( 
" (%d items loaded)" ), 
m_chooserPanel->GetItemCount() ) );
 
 
  133    if( aSymbol && !aSymbol->IsEmpty() )
 
  137        libid.
Parse( *aSymbol, 
true );
 
 
  181        symbol.
LibId = libId;
 
 
  196        return &cfg->m_LibViewPanel.window;
 
  198    wxFAIL_MSG( wxT( 
"SYMBOL_CHOOSER not running with EESCHEMA_SETTINGS" ) );
 
 
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
 
EDA_MSG_PANEL * m_messagePanel
 
virtual bool ShowModal(wxString *aResult=nullptr, wxWindow *aResultantFocusWindow=nullptr)
Show this wxFrame as if it were a modal dialog, with all other instantiated wxFrames disabled until t...
 
void SetModal(bool aIsModal)
 
void DismissModal(bool aRetVal, const wxString &aResult=wxEmptyString)
 
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
 
A logical library item identifier and consists of various portions much like a URI.
 
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
 
bool IsValid() const
Check if this LID_ID is valid.
 
void OnChar(wxKeyEvent &aEvent)
 
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
 
SCH_BASE_FRAME(KIWAY *aKiway, wxWindow *aParent, FRAME_T aWindowType, const wxString &aTitle, const wxPoint &aPosition, const wxSize &aSize, long aStyle, const wxString &aFrameName)
 
Symbol library viewer main window.
 
void OnOK(wxCommandEvent &aEvent)
 
void doCloseWindow() override
 
SYMBOL_CHOOSER_FRAME(KIWAY *aKiway, wxWindow *aParent, bool &aCancelled)
 
void OnPaint(wxPaintEvent &aEvent)
 
WINDOW_SETTINGS * GetWindowSettings(APP_SETTINGS_BASE *aCfg) override
Return a pointer to the window settings for this frame.
 
bool ShowModal(wxString *aSymbol, wxWindow *aParent) override
Runs the symbol viewer as a modal dialog.
 
PANEL_SYMBOL_CHOOSER * m_chooserPanel
 
void CloseSymbolChooser(wxCommandEvent &aEvent)
 
#define SYMBOL_CHOOSER_FRAME_NAME
 
std::vector< FAB_LAYER_COLOR > dummy
 
Store the common settings that are saved and loaded for each window / frame.
 
static void AddSymbolToHistory(const PICKED_SYMBOL &aSymbol)
 
static std::vector< PICKED_SYMBOL > s_SymbolHistoryList
 
static unsigned s_SymbolHistoryMaxCount