72 changed files with 2057 additions and 1342 deletions
-
873d-viewer/3d_viewer/3d_toolbar.cpp
-
53d-viewer/3d_viewer/eda_3d_viewer_frame.cpp
-
23d-viewer/3d_viewer/eda_3d_viewer_frame.h
-
983d-viewer/3d_viewer/toolbars_3d.cpp
-
403d-viewer/3d_viewer/toolbars_3d.h
-
23d-viewer/CMakeLists.txt
-
76common/eda_base_frame.cpp
-
6common/eda_draw_frame.cpp
-
18common/tool/action_toolbar.cpp
-
34common/tool/ui/toolbar_configuration.cpp
-
1cvpcb/CMakeLists.txt
-
3cvpcb/cvpcb_mainframe.cpp
-
2cvpcb/cvpcb_mainframe.h
-
58cvpcb/display_footprints_frame.cpp
-
4cvpcb/display_footprints_frame.h
-
80cvpcb/toolbars_cvpcb.cpp
-
47cvpcb/toolbars_cvpcb.h
-
81cvpcb/toolbars_display_footprints.cpp
-
40cvpcb/toolbars_display_footprints.h
-
2eeschema/sch_edit_frame.cpp
-
5eeschema/sch_edit_frame.h
-
3eeschema/sim/simulator_frame.cpp
-
2eeschema/sim/simulator_frame.h
-
68eeschema/sim/toolbars_simulator_frame.cpp
-
40eeschema/sim/toolbars_simulator_frame.h
-
3eeschema/symbol_editor/symbol_edit_frame.cpp
-
5eeschema/symbol_editor/symbol_edit_frame.h
-
214eeschema/symbol_editor/toolbars_symbol_editor.cpp
-
40eeschema/symbol_editor/toolbars_symbol_editor.h
-
2eeschema/symbol_viewer_frame.cpp
-
3eeschema/symbol_viewer_frame.h
-
295eeschema/toolbars_sch_editor.cpp
-
41eeschema/toolbars_sch_editor.h
-
82eeschema/toolbars_symbol_viewer.cpp
-
41eeschema/toolbars_symbol_viewer.h
-
2gerbview/gerbview_frame.cpp
-
5gerbview/gerbview_frame.h
-
182gerbview/toolbars_gerber.cpp
-
51gerbview/toolbars_gerber.h
-
44include/eda_base_frame.h
-
3include/eda_draw_frame.h
-
53include/tool/action_toolbar.h
-
37include/tool/ui/toolbar_configuration.h
-
1kicad/CMakeLists.txt
-
2kicad/kicad_manager_frame.cpp
-
3kicad/kicad_manager_frame.h
-
23kicad/menubar.cpp
-
60kicad/toolbars_kicad_manager.cpp
-
40kicad/toolbars_kicad_manager.h
-
2pagelayout_editor/pl_editor_frame.cpp
-
5pagelayout_editor/pl_editor_frame.h
-
159pagelayout_editor/toolbars_pl_editor.cpp
-
47pagelayout_editor/toolbars_pl_editor.h
-
1pcbnew/CMakeLists.txt
-
4pcbnew/footprint_edit_frame.cpp
-
5pcbnew/footprint_edit_frame.h
-
3pcbnew/footprint_viewer_frame.cpp
-
4pcbnew/footprint_viewer_frame.h
-
48pcbnew/footprint_wizard_frame.cpp
-
3pcbnew/footprint_wizard_frame.h
-
4pcbnew/pcb_base_edit_frame.cpp
-
1pcbnew/pcb_base_edit_frame.h
-
5pcbnew/pcb_edit_frame.cpp
-
5pcbnew/pcb_edit_frame.h
-
281pcbnew/toolbars_footprint_editor.cpp
-
40pcbnew/toolbars_footprint_editor.h
-
105pcbnew/toolbars_footprint_viewer.cpp
-
40pcbnew/toolbars_footprint_viewer.h
-
81pcbnew/toolbars_footprint_wizard.cpp
-
40pcbnew/toolbars_footprint_wizard.h
-
432pcbnew/toolbars_pcb_editor.cpp
-
48pcbnew/toolbars_pcb_editor.h
@ -1,87 +0,0 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt> |
|||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr |
|||
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@gmail.com> |
|||
* Copyright (C) 2023 CERN |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <wx/wupdlock.h>
|
|||
#include <wx/choice.h>
|
|||
|
|||
#include <bitmaps.h>
|
|||
#include <dialogs/eda_view_switcher.h>
|
|||
#include <eda_3d_viewer_frame.h>
|
|||
#include <tool/action_toolbar.h>
|
|||
#include <tools/eda_3d_actions.h>
|
|||
#include <3d_viewer_id.h>
|
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> EDA_3D_VIEWER_FRAME::DefaultTopMainToolbarConfig() |
|||
{ |
|||
TOOLBAR_CONFIGURATION config; |
|||
|
|||
// clang-format off
|
|||
config.AppendAction( EDA_3D_ACTIONS::reloadBoard ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::copyToClipboard ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::toggleRaytacing ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::zoomRedraw ) |
|||
.AppendAction( ACTIONS::zoomInCenter ) |
|||
.AppendAction( ACTIONS::zoomOutCenter ) |
|||
.AppendAction( ACTIONS::zoomFitScreen ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateXCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateXCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateYCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateYCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateZCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateZCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::flipView ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::moveLeft ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveRight ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveUp ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveDown ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::toggleOrtho ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::showLayersManager ); |
|||
|
|||
// clang-format on
|
|||
|
|||
return config; |
|||
} |
@ -0,0 +1,98 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2016 Mario Luzeiro <mrluzeiro@ua.pt> |
|||
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr |
|||
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@gmail.com> |
|||
* Copyright (C) 2023 CERN |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <wx/wupdlock.h>
|
|||
#include <wx/choice.h>
|
|||
|
|||
#include <bitmaps.h>
|
|||
#include <dialogs/eda_view_switcher.h>
|
|||
#include <eda_3d_viewer_frame.h>
|
|||
#include <tool/action_toolbar.h>
|
|||
#include <tools/eda_3d_actions.h>
|
|||
#include <3d_viewer_id.h>
|
|||
|
|||
#include <toolbars_3d.h>
|
|||
|
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> EDA_3D_VIEWER_TOOLBAR_SETTINGS::DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) |
|||
{ |
|||
TOOLBAR_CONFIGURATION config; |
|||
|
|||
// clang-format off
|
|||
switch( aToolbar ) |
|||
{ |
|||
case TOOLBAR_LOC::LEFT: |
|||
case TOOLBAR_LOC::RIGHT: |
|||
case TOOLBAR_LOC::TOP_AUX: |
|||
return std::nullopt; |
|||
case TOOLBAR_LOC::TOP_MAIN: |
|||
config.AppendAction( EDA_3D_ACTIONS::reloadBoard ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::copyToClipboard ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::toggleRaytacing ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::zoomRedraw ) |
|||
.AppendAction( ACTIONS::zoomInCenter ) |
|||
.AppendAction( ACTIONS::zoomOutCenter ) |
|||
.AppendAction( ACTIONS::zoomFitScreen ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateXCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateXCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateYCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateYCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::rotateZCW ) |
|||
.AppendAction( EDA_3D_ACTIONS::rotateZCCW ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::flipView ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::moveLeft ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveRight ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveUp ) |
|||
.AppendAction( EDA_3D_ACTIONS::moveDown ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::toggleOrtho ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( EDA_3D_ACTIONS::showLayersManager ); |
|||
break; |
|||
} |
|||
|
|||
// clang-format on
|
|||
return config; |
|||
} |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_3D_H_ |
|||
#define TOOLBARS_3D_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the 3D viewer. |
|||
*/ |
|||
class EDA_3D_VIEWER_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
EDA_3D_VIEWER_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "3d_viewer" ) |
|||
{} |
|||
|
|||
~EDA_3D_VIEWER_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_3D_H_ */ |
@ -0,0 +1,47 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_CVPCB_H_ |
|||
#define TOOLBARS_CVPCB_H_ |
|||
|
|||
#include <tool/action_toolbar.h> |
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
class CVPCB_ACTION_TOOLBAR_CONTROLS : public ACTION_TOOLBAR_CONTROLS |
|||
{ |
|||
public: |
|||
static ACTION_TOOLBAR_CONTROL footprintFilter; |
|||
}; |
|||
|
|||
/** |
|||
* Toolbar configuration for cvpcb. |
|||
*/ |
|||
class CVPCB_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
CVPCB_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "cvpcb" ) |
|||
{} |
|||
|
|||
~CVPCB_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_CVPCB_H_ */ |
@ -0,0 +1,81 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
#include <toolbars_display_footprints.h>
|
|||
|
|||
#include <tool/action_toolbar.h>
|
|||
#include <tool/actions.h>
|
|||
#include <tool/ui/toolbar_configuration.h>
|
|||
#include <tools/pcb_actions.h>
|
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DISPLAY_FOOTPRINTS_TOOLBAR_SETTINGS::DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) |
|||
{ |
|||
TOOLBAR_CONFIGURATION config; |
|||
|
|||
// clang-format off
|
|||
switch( aToolbar ) |
|||
{ |
|||
// Currently, no top aux or right toolbars
|
|||
case TOOLBAR_LOC::RIGHT: |
|||
case TOOLBAR_LOC::TOP_AUX: |
|||
return std::nullopt; |
|||
|
|||
case TOOLBAR_LOC::LEFT: |
|||
config.AppendAction( ACTIONS::selectionTool ) |
|||
.AppendAction( ACTIONS::measureTool ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::toggleGrid ) |
|||
.AppendAction( ACTIONS::togglePolarCoords ) |
|||
.AppendAction( ACTIONS::inchesUnits ) |
|||
.AppendAction( ACTIONS::milsUnits ) |
|||
.AppendAction( ACTIONS::millimetersUnits ) |
|||
.AppendAction( ACTIONS::toggleCursorStyle ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( PCB_ACTIONS::showPadNumbers ) |
|||
.AppendAction( PCB_ACTIONS::padDisplayMode ) |
|||
.AppendAction( PCB_ACTIONS::textOutlines ) |
|||
.AppendAction( PCB_ACTIONS::graphicsOutlines ); |
|||
break; |
|||
|
|||
case TOOLBAR_LOC::TOP_MAIN: |
|||
config.AppendAction( ACTIONS::zoomRedraw ) |
|||
.AppendAction( ACTIONS::zoomInCenter ) |
|||
.AppendAction( ACTIONS::zoomOutCenter ) |
|||
.AppendAction( ACTIONS::zoomFitScreen ) |
|||
.AppendAction( ACTIONS::zoomTool ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::show3DViewer ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendControl( ACTION_TOOLBAR_CONTROLS::gridSelect ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendControl( ACTION_TOOLBAR_CONTROLS::zoomSelect ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( PCB_ACTIONS::fpAutoZoom ); |
|||
break; |
|||
} |
|||
|
|||
// clang-format on
|
|||
return config; |
|||
} |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_DISPLAY_FOOTPRINTS_H_ |
|||
#define TOOLBARS_DISPLAY_FOOTPRINTS_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the Display Footprints frame. |
|||
*/ |
|||
class DISPLAY_FOOTPRINTS_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
DISPLAY_FOOTPRINTS_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "display-footprints" ) |
|||
{} |
|||
|
|||
~DISPLAY_FOOTPRINTS_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_DISPLAY_FOOTPRINTS_H_ */ |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_SIMULATOR_FRAME_H_ |
|||
#define TOOLBARS_SIMULATOR_FRAME_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the simulator frame. |
|||
*/ |
|||
class SIMULATOR_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
SIMULATOR_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "sim" ) |
|||
{} |
|||
|
|||
~SIMULATOR_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_SIMULATOR_FRAME_H_ */ |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_CVPCB_H_ |
|||
#define TOOLBARS_CVPCB_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the symbol editor frame. |
|||
*/ |
|||
class SYMBOL_EDIT_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
SYMBOL_EDIT_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "symbol_editor" ) |
|||
{} |
|||
|
|||
~SYMBOL_EDIT_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_CVPCB_H_ */ |
@ -0,0 +1,41 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_SCH_EDITOR_H_ |
|||
#define TOOLBARS_SCH_EDITOR_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the schematic editor frame. |
|||
*/ |
|||
class SCH_EDIT_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
SCH_EDIT_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "eeschema" ) |
|||
{} |
|||
|
|||
~SCH_EDIT_TOOLBAR_SETTINGS |
|||
() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_SCH_EDITOR_H_ */ |
@ -0,0 +1,41 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_SYMBOL_VIEWER_H_ |
|||
#define TOOLBARS_SYMBOL_VIEWER_H_ |
|||
|
|||
#include <tool/action_toolbar.h> |
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the symbol viewer frame. |
|||
*/ |
|||
class SYMBOL_VIEWER_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
SYMBOL_VIEWER_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "symbol_viewer" ) |
|||
{} |
|||
|
|||
~SYMBOL_VIEWER_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_SYMBOL_VIEWER_H_ */ |
@ -0,0 +1,51 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_GERBER_H_ |
|||
#define TOOLBARS_GERBER_H_ |
|||
|
|||
#include <tool/action_toolbar.h> |
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
class GERBVIEW_ACTION_TOOLBAR_CONTROLS : public ACTION_TOOLBAR_CONTROLS |
|||
{ |
|||
public: |
|||
static ACTION_TOOLBAR_CONTROL textInfo; |
|||
static ACTION_TOOLBAR_CONTROL componentHighlight; |
|||
static ACTION_TOOLBAR_CONTROL netHighlight; |
|||
static ACTION_TOOLBAR_CONTROL appertureHighlight; |
|||
static ACTION_TOOLBAR_CONTROL dcodeSelector; |
|||
}; |
|||
|
|||
/** |
|||
* Toolbar configuration for gerbview. |
|||
*/ |
|||
class GERBVIEW_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
GERBVIEW_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "gerbview" ) |
|||
{} |
|||
|
|||
~GERBVIEW_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_GERBER_H_ */ |
@ -0,0 +1,60 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <tools/kicad_manager_actions.h>
|
|||
#include <toolbars_kicad_manager.h>
|
|||
|
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> KICAD_MANAGER_TOOLBAR_SETTINGS::DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) |
|||
{ |
|||
TOOLBAR_CONFIGURATION config; |
|||
|
|||
// clang-format off
|
|||
switch( aToolbar ) |
|||
{ |
|||
// No other toolbars
|
|||
case TOOLBAR_LOC::RIGHT: |
|||
case TOOLBAR_LOC::TOP_AUX: |
|||
case TOOLBAR_LOC::TOP_MAIN: |
|||
return std::nullopt; |
|||
|
|||
case TOOLBAR_LOC::LEFT: |
|||
config.AppendAction( KICAD_MANAGER_ACTIONS::newProject ) |
|||
.AppendAction( KICAD_MANAGER_ACTIONS::openProject ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( KICAD_MANAGER_ACTIONS::archiveProject ) |
|||
.AppendAction( KICAD_MANAGER_ACTIONS::unarchiveProject ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::zoomRedraw ); |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( KICAD_MANAGER_ACTIONS::openProjectDirectory ); |
|||
|
|||
break; |
|||
} |
|||
|
|||
// clang-format on
|
|||
return config; |
|||
} |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_KICAD_MANAGER_H_ |
|||
#define TOOLBARS_KICAD_MANAGER_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the project manager frame. |
|||
*/ |
|||
class KICAD_MANAGER_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
KICAD_MANAGER_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "kicad" ) |
|||
{} |
|||
|
|||
~KICAD_MANAGER_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_KICAD_MANAGER_H_ */ |
@ -0,0 +1,47 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_PL_EDITOR_H_ |
|||
#define TOOLBARS_PL_EDITOR_H_ |
|||
|
|||
#include <tool/action_toolbar.h> |
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
class PL_EDITOR_ACTION_TOOLBAR_CONTROLS : public ACTION_TOOLBAR_CONTROLS |
|||
{ |
|||
public: |
|||
static ACTION_TOOLBAR_CONTROL originSelector; |
|||
static ACTION_TOOLBAR_CONTROL pageSelect; |
|||
}; |
|||
|
|||
/** |
|||
* Toolbar configuration for the page layout editor frame. |
|||
*/ |
|||
class PL_EDITOR_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
PL_EDITOR_TOOLBAR_SETTINGS() : TOOLBAR_SETTINGS( "pl_editor" ) |
|||
{} |
|||
|
|||
~PL_EDITOR_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_PL_EDITOR_H_ */ |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_FOOTPRINT_EDITOR_H_ |
|||
#define TOOLBARS_FOOTPRINT_EDITOR_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the footprint edit frame. |
|||
*/ |
|||
class FOOTPRINT_EDIT_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
FOOTPRINT_EDIT_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "fpedit" ) |
|||
{} |
|||
|
|||
~FOOTPRINT_EDIT_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_FOOTPRINT_EDITOR_H_ */ |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_FOOTPRINT_VIEWER_H_ |
|||
#define TOOLBARS_FOOTPRINT_VIEWER_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the footprint viewer frame. |
|||
*/ |
|||
class FOOTPRINT_VIEWER_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
FOOTPRINT_VIEWER_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "fpviewer" ) |
|||
{} |
|||
|
|||
~FOOTPRINT_VIEWER_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_FOOTPRINT_VIEWER_H_ */ |
@ -0,0 +1,81 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <tools/pcb_actions.h>
|
|||
#include <toolbars_footprint_wizard.h>
|
|||
|
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> FOOTPRINT_WIZARD_TOOLBAR_SETTINGS::DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) |
|||
{ |
|||
TOOLBAR_CONFIGURATION config; |
|||
|
|||
// clang-format off
|
|||
switch( aToolbar ) |
|||
{ |
|||
case TOOLBAR_LOC::LEFT: |
|||
case TOOLBAR_LOC::RIGHT: |
|||
case TOOLBAR_LOC::TOP_AUX: |
|||
return std::nullopt; |
|||
|
|||
case TOOLBAR_LOC::TOP_MAIN: |
|||
/* TODO (ISM): Convert to action
|
|||
m_tbTopMain->AddTool( ID_FOOTPRINT_WIZARD_SELECT_WIZARD, wxEmptyString, |
|||
KiBitmap( BITMAPS::module_wizard ), |
|||
_( "Select wizard script to run" ) ); |
|||
*/ |
|||
|
|||
config.AppendSeparator(); |
|||
/* TODO (ISM): Convert to action
|
|||
m_tbTopMain->AddTool( ID_FOOTPRINT_WIZARD_RESET_TO_DEFAULT, wxEmptyString, |
|||
KiBitmap( BITMAPS::reload ), |
|||
_( "Reset wizard parameters to default") ); |
|||
*/ |
|||
config.AppendSeparator(); |
|||
/* TODO (ISM): Convert to action
|
|||
m_tbTopMain->AddTool( ID_FOOTPRINT_WIZARD_PREVIOUS, wxEmptyString, |
|||
KiBitmap( BITMAPS::lib_previous ), |
|||
_( "Select previous parameters page" ) ); |
|||
m_tbTopMain->AddTool( ID_FOOTPRINT_WIZARD_NEXT, wxEmptyString, |
|||
KiBitmap( BITMAPS::lib_next ), |
|||
_( "Select next parameters page" ) ); |
|||
*/ |
|||
|
|||
config.AppendSeparator() |
|||
.AppendAction( ACTIONS::zoomRedraw ) |
|||
.AppendAction( ACTIONS::zoomInCenter ) |
|||
.AppendAction( ACTIONS::zoomOutCenter ) |
|||
.AppendAction( ACTIONS::zoomFitScreen ); |
|||
|
|||
// The footprint wizard always can export the current footprint
|
|||
config.AppendSeparator(); |
|||
/* TODO (ISM): Convert to action
|
|||
m_tbTopMain->AddTool( ID_FOOTPRINT_WIZARD_DONE, |
|||
wxEmptyString, KiBitmap( BITMAPS::export_footprint_names ), |
|||
_( "Export footprint to editor" ) ); |
|||
*/ |
|||
break; |
|||
} |
|||
|
|||
// clang-format on
|
|||
return config; |
|||
} |
@ -0,0 +1,40 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_FOOTPRINT_WIZARD_H_ |
|||
#define TOOLBARS_FOOTPRINT_WIZARD_H_ |
|||
|
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
/** |
|||
* Toolbar configuration for the footprint wizard frame. |
|||
*/ |
|||
class FOOTPRINT_WIZARD_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
FOOTPRINT_WIZARD_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "fpwizard" ) |
|||
{} |
|||
|
|||
~FOOTPRINT_WIZARD_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_FOOTPRINT_WIZARD_H_ */ |
@ -0,0 +1,48 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* 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. |
|||
* |
|||
* 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. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef TOOLBARS_PCB_EDITOR_H_ |
|||
#define TOOLBARS_PCB_EDITOR_H_ |
|||
|
|||
#include <tool/action_toolbar.h> |
|||
#include <tool/ui/toolbar_configuration.h> |
|||
|
|||
class PCB_ACTION_TOOLBAR_CONTROLS : public ACTION_TOOLBAR_CONTROLS |
|||
{ |
|||
public: |
|||
static ACTION_TOOLBAR_CONTROL trackWidth; |
|||
static ACTION_TOOLBAR_CONTROL viaDiameter; |
|||
}; |
|||
|
|||
/** |
|||
* Toolbar configuration for the PCB editor frame. |
|||
*/ |
|||
class PCB_EDIT_TOOLBAR_SETTINGS : public TOOLBAR_SETTINGS |
|||
{ |
|||
public: |
|||
PCB_EDIT_TOOLBAR_SETTINGS() : |
|||
TOOLBAR_SETTINGS( "pcbnew" ) |
|||
{} |
|||
|
|||
~PCB_EDIT_TOOLBAR_SETTINGS() {} |
|||
|
|||
std::optional<TOOLBAR_CONFIGURATION> DefaultToolbarConfig( TOOLBAR_LOC aToolbar ) override; |
|||
}; |
|||
|
|||
#endif /* TOOLBARS_PCB_EDITOR_H_ */ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue