30 #include <wx/snglinst.h> 62 wxWindow*
CreateWindow( wxWindow* aParent,
int aClassId,
KIWAY* aKiway,
int aCtlBits = 0 )
override 99 void MacOpenFile(
const wxString& aFileName )
override 101 wxFileName filename( aFileName );
103 if( filename.FileExists() )
108 KIWAY_PLAYER* frame = dynamic_cast<KIWAY_PLAYER*>(
App().GetTopWindow() );
147 m_it = m_hitList.begin();
182 const wxPoint& pos,
const wxSize& size,
long style ) :
186 searchStringLabel =
nullptr;
187 m_searchCombo =
nullptr;
188 m_matchCase =
nullptr;
189 m_matchWords =
nullptr;
190 m_wildcards =
nullptr;
192 m_includeValues =
nullptr;
193 m_includeReferences =
nullptr;
194 m_includeTexts =
nullptr;
195 m_includeMarkers =
nullptr;
196 m_includeVias =
nullptr;
197 m_findNext =
nullptr;
198 m_findPrevious =
nullptr;
199 m_searchAgain =
nullptr;
200 m_closeButton =
nullptr;
217 const wxString& title,
218 const wxPoint& pos,
const wxSize& size,
223 m_Include_Modules =
nullptr;
224 m_Include_PcbTexts =
nullptr;
225 m_IncludeLockedModules =
nullptr;
226 m_Include_Draw_Items =
nullptr;
227 m_Include_Tracks =
nullptr;
228 m_Include_Vias =
nullptr;
229 m_Include_Edges_Items =
nullptr;
230 m_Include_Zones =
nullptr;
231 m_sdbSizer1 =
nullptr;
232 m_staticLine =
nullptr;
233 m_sdbSizer1OK =
nullptr;
234 m_sdbSizer1Cancel =
nullptr;
245 m_options( aOptions )
248 if( m_options.includeModules )
292 m_enteredGroup( NULL ),
338 bool aConfirmLockedItems )
351 bool* aSelectionCancelledFlag,
439 STOP_CONDITION aStopCondition )
595 const wxString& aCommitMessage,
int aOptions )
659 std::vector<VIEW_ITEM*> items;
bool Show(bool show=true) override
The Show method is overridden to make the search combobox focused by default.
virtual bool OpenProjectFiles(const std::vector< wxString > &aFileList, int aCtl=0)
Open a project or set of files given by aFileList.
BITMAP2CMP_SETTINGS kiface
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
void checkBoxClicked(wxCommandEvent &aEvent) override
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits) override
Typically start_common() is called from here.
void MacOpenFile(const wxString &aFileName) override
Specific to MacOSX (not used under Linux or Windows).
This file is part of the common library.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Container for data for KiCad programs.
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
int GetColorStandardListCount()
virtual wxApp & App()
Returns a bare naked wxApp which may come from wxPython, SINGLE_TOP, or kicad.exe.
wxWindow * CreateWindow(wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
Create a wxWindow for the current project.
const FAB_LAYER_COLOR * GetColorStandardList()
void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Struct that will be set with the result of the user choices in the dialog.
DIALOG_FIND_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
~DIALOG_FILTER_SELECTION_BASE()
void onTextEnter(wxCommandEvent &event) override
bool TransferDataFromWindow() override
A class used to derive camera objects from.
Class DIALOG_FILTER_SELECTION_BASE.
static bool itemIsIncludedByFilter(const BOARD_ITEM &aItem, const BOARD &aBoard, const DIALOG_FILTER_SELECTION::OPTIONS &aFilterOptions)
Function itemIsIncludedByFilter()
Container for display options like enable/disable some optional drawings.
LSET is a set of PCB_LAYER_IDs.
void onFindNextClick(wxCommandEvent &event) override
void onFindPreviousClick(wxCommandEvent &event) override
PGM_BASE * PgmOrNull()
similar to PGM_BASE& Pgm(), but return a reference that can be nullptr when running a shared lib from...
FP_LIB_TABLE GFootprintTable
The global footprint library table.
DIALOG_FIND(PCB_BASE_FRAME *aParent)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void OnCloseButtonClick(wxCommandEvent &aEvent) override
EDA_ITEM * GetTopLeftItem(bool aFootprintsOnly=false) const override
void * IfaceOrAddress(int aDataId) override
Return pointer to the requested object.
FACE_T
Known KIFACE implementations.
KIFACE_BASE(const char *aKifaceName, KIWAY::FACE_T aId)
const std::vector< KIGFX::VIEW_ITEM * > updateDrawList() const override
BBOX_3D()
Create with default values a bounding box (not initialized)
IFACE(const char *aDSOname, KIWAY::FACE_T aType)
Information pertinent to a Pcbnew printed circuit board.
DIALOG_FILTER_SELECTION(PCB_BASE_FRAME *aParent, OPTIONS &aOptions)
Create the filter selection dialog.
Used when the right click button is pressed, or when the select tool is in effect.
A base class for most all the KiCad significant classes used in schematics and boards.
TRACK_BALL(float aInitialDistance)
DIALOG_FILTER_SELECTION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Filter Selected Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnClose(wxCloseEvent &event) override
void allItemsClicked(wxCommandEvent &aEvent) override
A general implementation of a COLLECTORS_GUIDE.
void onSearchAgainClick(wxCommandEvent &event) override
const LSET GetSelectionLayers()
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
FOOTPRINT * GetFootprintFromBoardByReference()