2013-05-28 16:54:59 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2019-04-11 01:23:34 +00:00
|
|
|
* Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
2013-05-28 16:54:59 +00:00
|
|
|
*
|
2018-01-08 04:05:03 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
2013-05-28 16:54:59 +00:00
|
|
|
*
|
2018-01-08 04:05:03 +00:00
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
2013-05-28 16:54:59 +00:00
|
|
|
*
|
2018-01-08 04:05:03 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
2013-05-28 16:54:59 +00:00
|
|
|
*/
|
|
|
|
|
2018-01-29 20:58:58 +00:00
|
|
|
#ifndef FOOTPRINT_EDIT_FRAME_H
|
|
|
|
#define FOOTPRINT_EDIT_FRAME_H
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2018-01-29 15:39:40 +00:00
|
|
|
#include <pcb_base_frame.h>
|
2014-07-09 11:50:27 +00:00
|
|
|
#include <pcb_base_edit_frame.h>
|
2012-11-19 16:19:38 +00:00
|
|
|
#include <io_mgr.h>
|
2017-03-13 15:18:30 +00:00
|
|
|
#include <config_params.h>
|
2018-07-29 15:33:58 +00:00
|
|
|
#include <fp_tree_synchronizing_adapter.h>
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
class PCB_LAYER_WIDGET;
|
2013-05-28 16:54:59 +00:00
|
|
|
class FP_LIB_TABLE;
|
2017-03-13 15:18:30 +00:00
|
|
|
class EDGE_MODULE;
|
2018-07-29 15:33:58 +00:00
|
|
|
class FOOTPRINT_TREE_PANE;
|
|
|
|
class LIB_MANAGER;
|
2013-05-28 16:54:59 +00:00
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
namespace PCB { struct IFACE; } // A KIFACE_I coded in pcbnew.c
|
|
|
|
|
2013-05-28 16:54:59 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
class FOOTPRINT_EDIT_FRAME : public PCB_BASE_EDIT_FRAME
|
2010-08-10 18:34:26 +00:00
|
|
|
{
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
friend struct PCB::IFACE;
|
|
|
|
|
2018-07-29 15:33:58 +00:00
|
|
|
FOOTPRINT_TREE_PANE* m_treePane;
|
|
|
|
LIB_TREE_MODEL_ADAPTER::PTR m_adapter;
|
|
|
|
|
2018-10-03 21:44:17 +00:00
|
|
|
std::unique_ptr<MODULE> m_copiedModule;
|
|
|
|
std::unique_ptr<MODULE> m_revertModule;
|
2018-09-13 23:39:40 +00:00
|
|
|
wxString m_footprintNameWhenLoaded;
|
|
|
|
|
2019-02-05 15:06:36 +00:00
|
|
|
int m_defaultLibWidth;
|
|
|
|
|
2010-08-10 18:34:26 +00:00
|
|
|
public:
|
|
|
|
|
2011-08-26 17:01:17 +00:00
|
|
|
~FOOTPRINT_EDIT_FRAME();
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2012-09-12 09:53:11 +00:00
|
|
|
/**
|
|
|
|
* Function GetFootprintEditorFrameName (static)
|
|
|
|
* @return the frame name used when creating the frame
|
|
|
|
* used to get a reference to this frame, if exists
|
|
|
|
*/
|
|
|
|
static const wxChar* GetFootprintEditorFrameName();
|
|
|
|
|
2017-06-20 06:10:30 +00:00
|
|
|
///> @copydoc PCB_BASE_EDIT_FRAME::GetModel()
|
2016-05-13 15:31:54 +00:00
|
|
|
BOARD_ITEM_CONTAINER* GetModel() const override;
|
|
|
|
|
2018-08-25 15:12:08 +00:00
|
|
|
bool IsCurrentFPFromBoard() const;
|
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
BOARD_DESIGN_SETTINGS& GetDesignSettings() const override;
|
|
|
|
void SetDesignSettings( const BOARD_DESIGN_SETTINGS& aSettings ) override;
|
2012-02-02 17:45:37 +00:00
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
const PCB_PLOT_PARAMS& GetPlotSettings() const override;
|
|
|
|
void SetPlotSettings( const PCB_PLOT_PARAMS& aSettings ) override;
|
2012-04-05 18:27:56 +00:00
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
void LoadSettings( wxConfigBase* aCfg ) override;
|
|
|
|
void SaveSettings( wxConfigBase* aCfg ) override;
|
2015-01-30 18:42:46 +00:00
|
|
|
|
2018-02-13 21:19:41 +00:00
|
|
|
double BestZoom() override;
|
|
|
|
|
2015-01-30 18:42:46 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Return the footprint editor settings list.
|
2015-01-30 18:42:46 +00:00
|
|
|
*
|
|
|
|
* Currently, only the settings that are needed at start
|
|
|
|
* up by the main window are defined here. There are other locally used
|
|
|
|
* settings that are scattered throughout the Pcbnew source code. If you need
|
|
|
|
* to define a configuration setting that needs to be loaded at run time,
|
|
|
|
* this is the place to define it.
|
|
|
|
*
|
|
|
|
* @return - Reference to the list of applications settings.
|
|
|
|
*/
|
|
|
|
PARAM_CFG_ARRAY& GetConfigurationSettings();
|
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void OnCloseWindow( wxCloseEvent& Event ) override;
|
2011-09-26 20:32:56 +00:00
|
|
|
void CloseModuleEditor( wxCommandEvent& Event );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2018-08-11 11:16:41 +00:00
|
|
|
/**
|
|
|
|
* switches currently used canvas (default / Cairo / OpenGL).
|
|
|
|
* It also reinit the layers manager that slightly changes with canvases
|
|
|
|
*/
|
|
|
|
virtual void OnSwitchCanvas( wxCommandEvent& aEvent ) override;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update the layer manager and other widgets from the board setup
|
|
|
|
* (layer and items visibility, colors ...)
|
|
|
|
*/
|
|
|
|
void UpdateUserInterface();
|
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
void Process_Special_Functions( wxCommandEvent& event );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2015-01-30 18:42:46 +00:00
|
|
|
void ProcessPreferences( wxCommandEvent& event );
|
|
|
|
|
2011-08-26 17:01:17 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Draw the footprint editor BOARD, and others elements such as axis and grid.
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2019-04-11 01:23:34 +00:00
|
|
|
/**
|
|
|
|
* Refresh the library tree and redraw the window
|
|
|
|
*/
|
|
|
|
void HardRedraw() override;
|
|
|
|
|
2011-08-26 17:01:17 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Create the main horizontal toolbar for the footprint editor.
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void ReCreateHToolbar() override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void ReCreateVToolbar() override;
|
2018-02-03 22:55:13 +00:00
|
|
|
void ReCreateOptToolbar() override;
|
2016-09-24 18:53:15 +00:00
|
|
|
void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle the double click in the footprint editor.
|
|
|
|
*
|
2011-08-26 17:01:17 +00:00
|
|
|
* If the double clicked item is editable: call the corresponding editor.
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle the right mouse click in the footprint editor.
|
|
|
|
*
|
|
|
|
* Create the pop up menu. After this menu is built, the standard ZOOM menu is added
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief (Re)Create the menubar for the module editor frame
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void ReCreateMenuBar() override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2015-05-19 16:39:05 +00:00
|
|
|
// The Tool Framework initalization, for GAL mode
|
|
|
|
void setupTools();
|
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void ToolOnRightClick( wxCommandEvent& event ) override;
|
2011-09-26 20:32:56 +00:00
|
|
|
void OnSelectOptionToolbar( wxCommandEvent& event );
|
2015-03-29 21:22:53 +00:00
|
|
|
void OnConfigurePaths( wxCommandEvent& aEvent );
|
2018-11-04 00:58:28 +00:00
|
|
|
void OnToggleSearchTree( wxCommandEvent& event );
|
|
|
|
|
2018-11-09 13:32:13 +00:00
|
|
|
void OnSaveFootprintAsPng( wxCommandEvent& event );
|
|
|
|
|
2018-11-04 00:58:28 +00:00
|
|
|
bool IsSearchTreeShown();
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2012-10-07 15:37:25 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Save a library to a new name and/or library type.
|
2012-10-07 15:37:25 +00:00
|
|
|
*
|
2013-05-28 16:54:59 +00:00
|
|
|
* @note Saving as a new library type requires the plug-in to support saving libraries
|
2012-10-07 15:37:25 +00:00
|
|
|
* @see PLUGIN::FootprintSave and PLUGIN::FootprintLibCreate
|
|
|
|
*/
|
2018-07-29 15:33:58 +00:00
|
|
|
bool SaveLibraryAs( const wxString& aLibraryPath );
|
2012-10-07 15:37:25 +00:00
|
|
|
|
2015-05-05 18:39:42 +00:00
|
|
|
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
|
2016-09-24 18:53:15 +00:00
|
|
|
EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
|
2015-05-05 18:39:42 +00:00
|
|
|
|
2011-08-26 17:01:17 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle hot key events.
|
2015-05-05 18:39:42 +00:00
|
|
|
* <p>
|
2011-08-26 17:01:17 +00:00
|
|
|
* Some commands are relative to the item under the mouse cursor. Commands are
|
|
|
|
* case insensitive
|
|
|
|
* </p>
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
BOARD_ITEM* PrepareItemForHotkey( bool failIfCurrentlyEdited );
|
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
bool OnHotkeyEditItem( int aIdCommand );
|
|
|
|
bool OnHotkeyDeleteItem( int aIdCommand );
|
|
|
|
bool OnHotkeyMoveItem( int aIdCommand );
|
2015-02-12 03:22:24 +00:00
|
|
|
bool OnHotkeyMoveItemExact();
|
2011-09-26 20:32:56 +00:00
|
|
|
bool OnHotkeyRotateItem( int aIdCommand );
|
2015-02-12 03:22:24 +00:00
|
|
|
bool OnHotkeyDuplicateItem( int aIdCommand );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Display 3D view of the footprint (module) being edited.
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void Show3D_Frame( wxCommandEvent& event ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
|
2011-09-26 20:32:56 +00:00
|
|
|
void OnVerticalToolbar( wxCommandEvent& aEvent );
|
2011-02-21 13:54:29 +00:00
|
|
|
|
2017-06-12 13:10:43 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle ID_ZOOM_SELECTION and ID_NO_TOOL_SELECTED tools
|
2017-06-12 13:10:43 +00:00
|
|
|
*/
|
|
|
|
void OnUpdateSelectTool( wxUpdateUIEvent& aEvent );
|
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle most of tools og the vertical right toolbar ("Tools" toolbar)
|
2017-06-12 13:10:43 +00:00
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void OnUpdateVerticalToolbar( wxUpdateUIEvent& aEvent );
|
2017-06-12 13:10:43 +00:00
|
|
|
|
2015-01-30 18:42:46 +00:00
|
|
|
void OnUpdateOptionsToolbar( wxUpdateUIEvent& aEvent );
|
2011-09-26 20:32:56 +00:00
|
|
|
void OnUpdateModuleSelected( wxUpdateUIEvent& aEvent );
|
2018-07-29 15:33:58 +00:00
|
|
|
void OnUpdateModuleTargeted( wxUpdateUIEvent& aEvent );
|
|
|
|
void OnUpdateSave( wxUpdateUIEvent& aEvent );
|
|
|
|
void OnUpdateSaveAs( wxUpdateUIEvent& aEvent );
|
2011-09-26 20:32:56 +00:00
|
|
|
void OnUpdateLoadModuleFromBoard( wxUpdateUIEvent& aEvent );
|
|
|
|
void OnUpdateInsertModuleInBoard( wxUpdateUIEvent& aEvent );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
///> @copydoc PCB_BASE_EDIT_FRAME::OnEditItemRequest()
|
2016-09-24 18:53:15 +00:00
|
|
|
void OnEditItemRequest( wxDC* aDC, BOARD_ITEM* aItem ) override;
|
2014-07-09 11:50:27 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Called from the main toolbar to load a footprint from board mainly to edit it.
|
2010-08-10 18:34:26 +00:00
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void LoadModuleFromBoard( wxCommandEvent& event );
|
2018-10-15 14:28:53 +00:00
|
|
|
|
|
|
|
void LoadModuleFromLibrary( LIB_ID aFPID );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2018-07-29 15:33:58 +00:00
|
|
|
/**
|
|
|
|
* Returns the adapter object that provides the stored data.
|
|
|
|
*/
|
|
|
|
LIB_TREE_MODEL_ADAPTER::PTR& GetLibTreeAdapter() { return m_adapter; }
|
|
|
|
|
2015-01-28 10:00:48 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Save in an existing library a given footprint.
|
|
|
|
*
|
2015-01-28 10:00:48 +00:00
|
|
|
* @param aModule = the given footprint
|
|
|
|
* @return : true if OK, false if abort
|
|
|
|
*/
|
2018-07-26 20:19:46 +00:00
|
|
|
bool SaveFootprint( MODULE* aModule );
|
|
|
|
bool SaveFootprintAs( MODULE* aModule );
|
2018-08-25 15:12:08 +00:00
|
|
|
bool SaveFootprintToBoard( bool aAddNew );
|
2018-10-03 21:44:17 +00:00
|
|
|
bool RevertFootprint();
|
2015-01-28 10:00:48 +00:00
|
|
|
|
2011-08-26 17:01:17 +00:00
|
|
|
/**
|
2010-08-10 18:34:26 +00:00
|
|
|
* Must be called after a footprint change
|
|
|
|
* in order to set the "modify" flag of the current screen
|
|
|
|
* and prepare, if needed the refresh of the 3D frame showing the footprint
|
|
|
|
* do not forget to call the basic OnModify function to update auxiliary info
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual void OnModify() override;
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2010-08-10 18:34:26 +00:00
|
|
|
* Install the print dialog
|
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void ToPrinter( wxCommandEvent& event );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
|
|
|
// BOARD handling
|
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Delete all and reinitialize the current board.
|
|
|
|
*
|
2011-08-26 17:01:17 +00:00
|
|
|
* @param aQuery = true to prompt user for confirmation, false to initialize silently
|
2010-08-10 18:34:26 +00:00
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
bool Clear_Pcb( bool aQuery );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
|
|
|
/* handlers for block commands */
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual int BlockCommand( EDA_KEY key ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Handle the BLOCK PLACE command.
|
|
|
|
*
|
2011-08-26 17:01:17 +00:00
|
|
|
* Last routine for block operation for:
|
|
|
|
* - block move & drag
|
|
|
|
* - block copy & paste
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual void HandleBlockPlace( wxDC* DC ) override;
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the "end" of a block command,
|
|
|
|
* i.e. is called at the end of the definition of the area of a block.
|
|
|
|
* depending on the current block command, this command is executed
|
|
|
|
* or parameters are initialized to prepare a call to HandleBlockPlace
|
|
|
|
* in GetScreen()->m_BlockLocate
|
|
|
|
* @return false if no item selected, or command finished,
|
|
|
|
* true if some items found and HandleBlockPlace must be called later
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual bool HandleBlockEnd( wxDC* DC ) override;
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
BOARD_ITEM* ModeditLocateAndDisplay( int aHotKeyCode = 0 );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2018-07-29 15:33:58 +00:00
|
|
|
/// Return the LIB_ID of the part selected in the footprint or the part being edited.
|
2018-09-13 23:39:40 +00:00
|
|
|
LIB_ID getTargetFPID() const;
|
2018-07-29 15:33:58 +00:00
|
|
|
|
|
|
|
/// Return the LIB_ID of the part being edited.
|
2018-09-13 23:39:40 +00:00
|
|
|
LIB_ID GetLoadedFPID() const;
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
void RemoveStruct( EDA_ITEM* Item );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Perform a geometric transform on the current footprint.
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void Transform( MODULE* module, int transform );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
|
|
|
// importing / exporting Footprint
|
2010-12-29 17:47:32 +00:00
|
|
|
/**
|
|
|
|
* Create a file containing only one footprint.
|
2018-11-09 13:32:13 +00:00
|
|
|
*
|
2010-12-29 17:47:32 +00:00
|
|
|
* Used to export a footprint
|
|
|
|
* Exported files have the standard ext .emp
|
|
|
|
* This is the same format as .mod files but restricted to only one footprint
|
|
|
|
* So Create a new lib (which will contains one module) and export a footprint
|
|
|
|
* is basically the same thing
|
|
|
|
* @param aModule = the module to export
|
|
|
|
*/
|
2012-11-19 16:19:38 +00:00
|
|
|
void Export_Module( MODULE* aModule );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2010-08-10 18:34:26 +00:00
|
|
|
/**
|
|
|
|
* Read a file containing only one footprint.
|
2018-11-09 13:32:13 +00:00
|
|
|
*
|
2010-08-10 18:34:26 +00:00
|
|
|
* Used to import (after exporting) a footprint
|
|
|
|
* Exported files have the standard ext .emp
|
|
|
|
* This is the same format as .mod files but restricted to only one footprint
|
|
|
|
* The import function can also read gpcb footprint file, in Newlib format
|
|
|
|
* (One footprint per file, Newlib files have no special ext.)
|
|
|
|
*/
|
2018-11-09 13:32:13 +00:00
|
|
|
MODULE* Import_Module( const wxString& aName = wxT("") );
|
2017-10-19 21:15:48 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Load in Modedit a footprint from the main board.
|
|
|
|
*
|
2010-08-10 18:34:26 +00:00
|
|
|
* @param Module = the module to load. If NULL, a module reference will we asked to user
|
|
|
|
* @return true if a module isloaded, false otherwise.
|
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
bool Load_Module_From_BOARD( MODULE* Module );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Display the list of modules currently existing on the BOARD.
|
|
|
|
*
|
2010-08-10 18:34:26 +00:00
|
|
|
* @return a pointer to a module if this module is selected or NULL otherwise
|
|
|
|
* @param aPcb = the board from modules can be loaded
|
|
|
|
*/
|
2018-07-29 00:11:39 +00:00
|
|
|
MODULE* SelectFootprintFromBoard( BOARD* aPcb );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
|
|
|
// functions to edit footprint edges
|
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Change the width of module perimeter lines, EDGE_MODULEs.
|
|
|
|
*
|
2010-08-10 18:34:26 +00:00
|
|
|
* param ModuleSegmentWidth (global) = new width
|
|
|
|
* @param aEdge = edge to edit, or NULL. If aEdge == NULL change
|
|
|
|
* the width of all footprint's edges
|
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void Edit_Edge_Width( EDGE_MODULE* aEdge );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Change the EDGE_MODULE Edge layer, (The new layer will be asked)
|
2011-08-26 17:01:17 +00:00
|
|
|
* if Edge == NULL change the layer of the entire footprint edges
|
2018-11-09 13:32:13 +00:00
|
|
|
*
|
2011-08-26 17:01:17 +00:00
|
|
|
* @param Edge = edge to edit, or NULL
|
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void Edit_Edge_Layer( EDGE_MODULE* Edge );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Delete EDGE_MODULE ddge.
|
|
|
|
*
|
2011-08-26 17:01:17 +00:00
|
|
|
* @param Edge = edge to delete
|
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void Delete_Edge_Module( EDGE_MODULE* Edge );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Creates a new edge item (line, arc ..).
|
|
|
|
*
|
|
|
|
* @param Edge = if NULL: create new edge else terminate edge and create a new edge
|
2011-08-26 17:01:17 +00:00
|
|
|
* @param DC = current Device Context
|
|
|
|
* @param type_edge = S_SEGMENT,S_ARC ..
|
|
|
|
* @return the new created edge.
|
|
|
|
*/
|
2012-05-22 17:51:18 +00:00
|
|
|
EDGE_MODULE* Begin_Edge_Module( EDGE_MODULE* Edge, wxDC* DC, STROKE_T type_edge );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Terminate a move or create edge function.
|
2011-08-26 17:01:17 +00:00
|
|
|
*/
|
2011-09-26 20:32:56 +00:00
|
|
|
void End_Edge_Module( EDGE_MODULE* Edge );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
/// Function to initialize the move function params of a graphic item type DRAWSEGMENT
|
2011-09-26 20:32:56 +00:00
|
|
|
void Start_Move_EdgeMod( EDGE_MODULE* drawitem, wxDC* DC );
|
2011-08-26 17:01:17 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
/// Function to place a graphic item type EDGE_MODULE currently moved
|
2011-09-26 20:32:56 +00:00
|
|
|
void Place_EdgeMod( EDGE_MODULE* drawitem );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2011-12-30 12:29:54 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Change pad characteristics for the given footprint
|
2012-02-19 04:02:19 +00:00
|
|
|
* or all footprints which look like the given footprint.
|
2011-12-30 12:29:54 +00:00
|
|
|
* Options are set by the opened dialog.
|
|
|
|
* @param aPad is the pattern. The given footprint is the parent of this pad
|
|
|
|
*/
|
2018-07-05 16:14:19 +00:00
|
|
|
void PushPadProperties( D_PAD* aPad );
|
2011-12-30 12:29:54 +00:00
|
|
|
|
2012-11-19 16:19:38 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Delete the given module from its library.
|
2012-11-19 16:19:38 +00:00
|
|
|
*/
|
2018-09-13 15:39:14 +00:00
|
|
|
bool DeleteModuleFromLibrary( const LIB_ID& aFPID, bool aConfirm );
|
2010-08-10 18:34:26 +00:00
|
|
|
|
2015-01-07 19:07:15 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Test whether a given element category is visible.
|
|
|
|
*
|
2015-01-07 19:07:15 +00:00
|
|
|
* @param aElement is from the enum by the same name
|
|
|
|
* @return bool - true if the element is visible.
|
2017-03-13 03:19:33 +00:00
|
|
|
* @see enum PCB_LAYER_ID
|
2015-01-07 19:07:15 +00:00
|
|
|
*/
|
2017-03-13 03:19:33 +00:00
|
|
|
bool IsElementVisible( GAL_LAYER_ID aElement ) const;
|
2015-01-07 19:07:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function SetElementVisibility
|
|
|
|
* changes the visibility of an element category
|
|
|
|
* @param aElement is from the enum by the same name
|
|
|
|
* @param aNewState = The new visibility state of the element category
|
2017-03-13 03:19:33 +00:00
|
|
|
* @see enum PCB_LAYER_ID
|
2015-01-07 19:07:15 +00:00
|
|
|
*/
|
2017-03-13 03:19:33 +00:00
|
|
|
void SetElementVisibility( GAL_LAYER_ID aElement, bool aNewState );
|
2015-01-07 19:07:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return true if the grid must be shown
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual bool IsGridVisible() const override;
|
2015-01-07 19:07:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* It may be overloaded by derived classes
|
|
|
|
* if you want to store/retrieve the grid visibility in configuration.
|
|
|
|
* @param aVisible = true if the grid must be shown
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual void SetGridVisibility( bool aVisible ) override;
|
2015-01-07 19:07:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the color of the grid
|
|
|
|
*/
|
2017-08-04 12:43:02 +00:00
|
|
|
virtual COLOR4D GetGridColor() override;
|
2013-04-11 18:29:56 +00:00
|
|
|
|
2014-07-09 09:59:23 +00:00
|
|
|
///> @copydoc PCB_BASE_FRAME::SetActiveLayer()
|
2017-03-13 03:19:33 +00:00
|
|
|
void SetActiveLayer( PCB_LAYER_ID aLayer ) override;
|
2014-07-09 09:59:23 +00:00
|
|
|
|
2018-02-21 16:29:24 +00:00
|
|
|
///> @copydoc PCB_BASE_FRAME::OnUpdateLayerAlpha()
|
|
|
|
void OnUpdateLayerAlpha( wxUpdateUIEvent& aEvent ) override;
|
|
|
|
|
2014-07-09 09:22:43 +00:00
|
|
|
///> @copydoc EDA_DRAW_FRAME::UseGalCanvas()
|
2016-09-24 18:53:15 +00:00
|
|
|
virtual void UseGalCanvas( bool aEnable ) override;
|
2014-07-09 09:22:43 +00:00
|
|
|
|
2017-10-19 21:15:48 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Load a KiCad board (.kicad_pcb) from \a aFileName.
|
2017-10-19 21:15:48 +00:00
|
|
|
*
|
|
|
|
* @param aFileSet - hold the BOARD file to load, a vector of one element.
|
|
|
|
* @param aCtl - KICTL_ bits, one to indicate that an append of the board file
|
|
|
|
* aFileName to the currently loaded file is desired.
|
|
|
|
* @see #KIWAY_PLAYER for bit defines.
|
|
|
|
* @return bool - false if file load fails, otherwise true.
|
|
|
|
*/
|
|
|
|
bool OpenProjectFiles( const std::vector<wxString>& aFileSet, int aCtl = 0 ) override;
|
|
|
|
|
2018-09-25 14:23:38 +00:00
|
|
|
/**
|
|
|
|
* Override from PCB_BASE_EDIT_FRAME which adds a module to the editor's dummy board,
|
|
|
|
* NOT to the user's PCB.
|
|
|
|
*/
|
|
|
|
void AddModuleToBoard( MODULE* module ) override;
|
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
/**
|
|
|
|
* Allows Modedit to install its preferences panel into the preferences dialog.
|
|
|
|
*/
|
|
|
|
void InstallPreferences( PAGED_DIALOG* aParent ) override;
|
|
|
|
|
2018-08-04 11:59:04 +00:00
|
|
|
void ReFillLayerWidget();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update visible items after a language change.
|
|
|
|
*/
|
|
|
|
void ShowChangedLanguage() override;
|
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
/**
|
|
|
|
* Called after the preferences dialog is run.
|
|
|
|
*/
|
|
|
|
void CommonSettingsChanged() override;
|
2017-10-19 21:15:48 +00:00
|
|
|
|
2018-08-06 18:33:28 +00:00
|
|
|
/**
|
|
|
|
* Synchronize the footprint library tree to the current state of the footprint library
|
|
|
|
* table.
|
|
|
|
* @param aProgress
|
|
|
|
*/
|
|
|
|
void SyncLibraryTree( bool aProgress );
|
|
|
|
|
2018-05-12 08:44:31 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Redraw the message panel.
|
|
|
|
*
|
2018-05-12 08:44:31 +00:00
|
|
|
* If a item is currently selected, displays the item info.
|
|
|
|
* If nothing selected, display the current footprint info, or
|
|
|
|
* clear the message panel if nothing is edited
|
|
|
|
*/
|
|
|
|
void UpdateMsgPanel() override;
|
|
|
|
|
2018-08-19 16:53:01 +00:00
|
|
|
void KiwayMailIn( KIWAY_EXPRESS& mail ) override;
|
2018-05-12 08:44:31 +00:00
|
|
|
|
2010-08-10 18:34:26 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2012-11-19 16:19:38 +00:00
|
|
|
|
|
|
|
protected:
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
|
|
|
/// protected so only friend PCB::IFACE::CreateWindow() can act as sole factory.
|
2018-08-03 19:41:57 +00:00
|
|
|
FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent, EDA_DRAW_PANEL_GAL::GAL_TYPE aBackend );
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2017-09-10 14:21:56 +00:00
|
|
|
PCB_LAYER_WIDGET* m_Layers; ///< the layer manager
|
2012-11-19 16:19:38 +00:00
|
|
|
|
2017-09-10 14:21:56 +00:00
|
|
|
/// List of footprint editor configuration parameters.
|
|
|
|
PARAM_CFG_ARRAY m_configParams;
|
2015-01-30 18:42:46 +00:00
|
|
|
|
2018-07-30 13:18:37 +00:00
|
|
|
/**
|
|
|
|
* Make sure the footprint info list is loaded (with a progress dialog) and then initialize
|
|
|
|
* the footprint library tree.
|
|
|
|
*/
|
|
|
|
void initLibraryTree();
|
|
|
|
|
2012-11-19 16:19:38 +00:00
|
|
|
/**
|
2018-11-09 13:32:13 +00:00
|
|
|
* Updates window title according to getLibNickName().
|
2012-11-19 16:19:38 +00:00
|
|
|
*/
|
|
|
|
void updateTitle();
|
|
|
|
|
2014-07-09 11:50:27 +00:00
|
|
|
/// Reloads displayed items and sets view.
|
|
|
|
void updateView();
|
|
|
|
|
2014-06-11 05:18:41 +00:00
|
|
|
void restoreLastFootprint();
|
|
|
|
void retainLastFootprint();
|
2015-01-07 19:07:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a new text for the footprint
|
|
|
|
* @param aModule is the owner of the text
|
|
|
|
* @param aDC is the current DC (can be NULL )
|
|
|
|
* @return a pointer to the new text, or NULL if aborted
|
|
|
|
*/
|
|
|
|
TEXTE_MODULE* CreateTextModule( MODULE* aModule, wxDC* aDC );
|
2015-02-12 03:22:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2018-09-13 15:39:14 +00:00
|
|
|
/**
|
|
|
|
* Run the Footprint Properties dialog and handle changes made in it.
|
|
|
|
*/
|
|
|
|
void editFootprintProperties( MODULE* aFootprint );
|
|
|
|
|
2018-10-03 21:44:17 +00:00
|
|
|
bool saveFootprintInLibrary( MODULE* aModule, const wxString& aLibraryName );
|
|
|
|
|
2015-02-12 03:22:24 +00:00
|
|
|
/**
|
2015-02-12 03:22:24 +00:00
|
|
|
* Move the selected item exactly, popping up a dialog to allow the
|
|
|
|
* user the enter the move delta
|
|
|
|
*/
|
|
|
|
void moveExact();
|
|
|
|
|
|
|
|
/**
|
2015-02-12 03:22:24 +00:00
|
|
|
* Duplicate the item under the cursor
|
2018-11-09 13:32:13 +00:00
|
|
|
*
|
2015-02-12 03:22:24 +00:00
|
|
|
* @param aIncrement increment the number of pad (if that is what is selected)
|
|
|
|
*/
|
2016-09-25 17:06:49 +00:00
|
|
|
void duplicateItems( bool aIncrement ) override;
|
2019-02-05 15:06:36 +00:00
|
|
|
|
2010-08-10 18:34:26 +00:00
|
|
|
};
|
|
|
|
|
2018-01-29 20:58:58 +00:00
|
|
|
#endif // FOOTPRINT_EDIT_FRAME_H
|