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();
173 const wxPoint& pos,
const wxSize& size,
long style ) :
177 searchStringLabel =
nullptr;
178 m_searchCombo =
nullptr;
179 m_matchCase =
nullptr;
180 m_matchWords =
nullptr;
181 m_wildcards =
nullptr;
183 m_includeValues =
nullptr;
184 m_includeReferences =
nullptr;
185 m_includeTexts =
nullptr;
186 m_includeMarkers =
nullptr;
187 m_includeVias =
nullptr;
188 m_findNext =
nullptr;
189 m_findPrevious =
nullptr;
190 m_searchAgain =
nullptr;
191 m_closeButton =
nullptr;
208 const wxString& title,
209 const wxPoint& pos,
const wxSize& size,
214 m_Include_Modules =
nullptr;
215 m_Include_PcbTextes =
nullptr;
216 m_IncludeLockedModules =
nullptr;
217 m_Include_Draw_Items =
nullptr;
218 m_Include_Tracks =
nullptr;
219 m_Include_Vias =
nullptr;
220 m_Include_Edges_Items =
nullptr;
221 m_Include_Zones =
nullptr;
222 m_sdbSizer1 =
nullptr;
223 m_staticLine =
nullptr;
224 m_sdbSizer1OK =
nullptr;
225 m_sdbSizer1Cancel =
nullptr;
236 m_options( aOptions )
239 if( m_options.includeModules )
314 m_mainToolBar(
nullptr ),
316 m_currentCamera( m_trackBallCamera ),
318 m_disable_ray_tracing( true )
429 bool aAllowOpacityControl,
474 m_subtractive( false ),
475 m_exclusive_or( false ),
477 m_skip_heuristics( false ),
478 m_enteredGroup(
NULL ),
529 bool aConfirmLockedItems )
543 bool* aSelectionCancelledFlag,
646 STOP_CONDITION aStopCondition )
845 const wxString& aCommitMessage,
int aOptions )
903 std::vector<VIEW_ITEM*> items;
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 KIFACE (I)mplementation.
bool Set3DCopperColorFromUser()
Set the copper color from a set of colors.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
void checkBoxClicked(wxCommandEvent &aEvent) override
Reference to the options struct to fill.
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits) override
Typically start_common() is called from here.
void Install3DViewOptionDialog(wxCommandEvent &event)
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...
bool Set3DSolderMaskColorFromUser()
Set the solder mask color from a set of colors.
Container for data for KiCad programs.
static const int viewer3dSchemaVersion
virtual wxApp & App()
Returns a bare naked wxApp which may come from wxPython, SINGLE_TOP, or kicad.exe.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
const KIGFX::VIEW_GROUP::ITEMS updateDrawList() const override
Layer on which the group is drawn.
wxWindow * CreateWindow(wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
Create a wxWindow for the current project.
void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.
void SynchroniseColoursWithBoard()
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.
std::vector< CUSTOM_COLOR_ITEM > CUSTOM_COLORS_LIST
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,...
void Exit3DFrame(wxCommandEvent &event)
Called when user press the File->Exit.
void loadCommonSettings()
Load configuration from common settings.
~DIALOG_FILTER_SELECTION_BASE()
KIFACE_I(const char *aKifaceName, KIWAY::FACE_T aId)
void onTextEnter(wxCommandEvent &event) override
Class DIALOG_FILTER_SELECTION_BASE.
void OnActivate(wxActivateEvent &event)
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.
void OnDisableRayTracing(wxCommandEvent &aEvent)
LSET is a set of PCB_LAYER_IDs.
void onFindNextClick(wxCommandEvent &event) override
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
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...
bool Set3DSilkScreenColorFromUser()
Set the silkscreen color from a set of colors.
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
FP_LIB_TABLE GFootprintTable
!!!!!!!!!!!!!! This code is obsolete because of the merge into pcbnew, don't bother with it.
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
DIALOG_FIND(PCB_BASE_FRAME *aParent)
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void OnCloseWindow(wxCloseEvent &event)
bool Set3DColorFromUser(SFVEC4F &aColor, const wxString &aTitle, CUSTOM_COLORS_LIST *aPredefinedColors, bool aAllowOpacityControl=false, KIGFX::COLOR4D aDefaultColor=KIGFX::COLOR4D(1.0, 1.0, 1.0, 1.0))
Get a SFVEC3D from a color dialog.
EDA_ITEM * GetTopLeftItem(bool aFootprintsOnly=false) const override
void * IfaceOrAddress(int aDataId) override
Return pointer to the requested object.
bool Set3DSolderPasteColorFromUser()
Set the solder mask color from a set of colors.
FACE_T
Known KIFACE implementations.
void onClose(wxCommandEvent &event) override
void RenderEngineChanged()
RenderEngineChanged - Update toolbar icon and call canvas RenderEngineChanged.
std::vector< VIEW_ITEM * > ITEMS
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.
Declaration of the eda_3d_viewer class.
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)
Used when the right click button is pressed, or when the select tool is in effect.
void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
The base frame for deriving all KiCad main window classes.
void OnRenderEngineSelection(wxCommandEvent &event)
A base class for most all the KiCad significant classes used in schematics and boards.
EVT_TOOL_RANGE(ID_START_COMMAND_3D, ID_MENU_COMMAND_END, EDA_3D_VIEWER::Process_Special_Functions) EDA_3D_VIEWER
void OnSetFocus(wxFocusEvent &event)
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
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 ExecuteCommand(wxCommandEvent &event) override
A general implementation of a COLLECTORS_GUIDE.
void onSearchAgainClick(wxCommandEvent &event) override
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification that common settings are updated.
void NewDisplay(bool aForceImmediateRedraw=false)
Reload and refresh (rebuild) the 3D scene.
const LSET GetSelectionLayers()
#define RANGE_SCALE_3D
This defines the range that all coord will have to be rendered.
#define QUALIFIED_VIEWER3D_FRAMENAME(parent)
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
bool Set3DBoardBodyColorFromUser()
Set the copper color from a set of colors.
void ReloadRequest()
Request reloading the 3D view.
FOOTPRINT * GetFootprintFromBoardByReference()
void Process_Special_Functions(wxCommandEvent &event)
A color representation with 4 components: red, green, blue, alpha.
void takeScreenshot(wxCommandEvent &event)
Create a Screenshot of the current 3D view.