KiCad PCB EDA Suite
Loading...
Searching...
No Matches
toolbars_pcb_editor.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef TOOLBARS_PCB_EDITOR_H_
21
#define TOOLBARS_PCB_EDITOR_H_
22
23
#include <
tool/action_toolbar.h
>
24
#include <
tool/ui/toolbar_configuration.h
>
25
26
class
PCB_ACTION_TOOLBAR_CONTROLS
:
public
ACTION_TOOLBAR_CONTROLS
27
{
28
public
:
29
static
ACTION_TOOLBAR_CONTROL
trackWidth
;
30
static
ACTION_TOOLBAR_CONTROL
viaDiameter
;
31
};
32
36
class
PCB_EDIT_TOOLBAR_SETTINGS
:
public
TOOLBAR_SETTINGS
37
{
38
public
:
39
PCB_EDIT_TOOLBAR_SETTINGS
() :
40
TOOLBAR_SETTINGS
(
"pcbnew-toolbars"
)
41
{}
42
43
~PCB_EDIT_TOOLBAR_SETTINGS
() {}
44
45
std::optional<TOOLBAR_CONFIGURATION>
DefaultToolbarConfig
(
TOOLBAR_LOC
aToolbar )
override
;
46
};
47
48
#endif
/* TOOLBARS_PCB_EDITOR_H_ */
action_toolbar.h
ACTION_TOOLBAR_CONTROLS
Definition:
action_toolbar.h:463
ACTION_TOOLBAR_CONTROL
Class to hold basic information about controls that can be added to the toolbars.
Definition:
action_toolbar.h:428
PCB_ACTION_TOOLBAR_CONTROLS
Definition:
toolbars_pcb_editor.h:27
PCB_ACTION_TOOLBAR_CONTROLS::trackWidth
static ACTION_TOOLBAR_CONTROL trackWidth
Definition:
toolbars_pcb_editor.h:29
PCB_ACTION_TOOLBAR_CONTROLS::viaDiameter
static ACTION_TOOLBAR_CONTROL viaDiameter
Definition:
toolbars_pcb_editor.h:30
PCB_EDIT_TOOLBAR_SETTINGS
Toolbar configuration for the PCB editor frame.
Definition:
toolbars_pcb_editor.h:37
PCB_EDIT_TOOLBAR_SETTINGS::DefaultToolbarConfig
std::optional< TOOLBAR_CONFIGURATION > DefaultToolbarConfig(TOOLBAR_LOC aToolbar) override
Get the default tools to show on the specified canvas toolbar.
Definition:
toolbars_pcb_editor.cpp:129
PCB_EDIT_TOOLBAR_SETTINGS::~PCB_EDIT_TOOLBAR_SETTINGS
~PCB_EDIT_TOOLBAR_SETTINGS()
Definition:
toolbars_pcb_editor.h:43
PCB_EDIT_TOOLBAR_SETTINGS::PCB_EDIT_TOOLBAR_SETTINGS
PCB_EDIT_TOOLBAR_SETTINGS()
Definition:
toolbars_pcb_editor.h:39
TOOLBAR_SETTINGS
Definition:
toolbar_configuration.h:205
toolbar_configuration.h
TOOLBAR_LOC
TOOLBAR_LOC
Definition:
toolbar_configuration.h:197
src
pcbnew
toolbars_pcb_editor.h
Generated on Mon Mar 10 2025 00:05:54 for KiCad PCB EDA Suite by
1.9.6