Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b21ce73c
Commit
b21ce73c
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial version of the drawing tool.
parent
363709e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+1
-0
common_actions.cpp
pcbnew/tools/common_actions.cpp
+4
-0
common_actions.h
pcbnew/tools/common_actions.h
+3
-0
edit_tool.h
pcbnew/tools/edit_tool.h
+3
-0
pcb_tools.cpp
pcbnew/tools/pcb_tools.cpp
+3
-0
No files found.
pcbnew/CMakeLists.txt
View file @
b21ce73c
...
@@ -251,6 +251,7 @@ set( PCBNEW_CLASS_SRCS
...
@@ -251,6 +251,7 @@ set( PCBNEW_CLASS_SRCS
tools/selection_tool.cpp
tools/selection_tool.cpp
tools/selection_area.cpp
tools/selection_area.cpp
tools/bright_box.cpp
tools/bright_box.cpp
tools/drawing_tool.cpp
tools/edit_tool.cpp
tools/edit_tool.cpp
tools/pcb_tools.cpp
tools/pcb_tools.cpp
tools/common_actions.cpp
tools/common_actions.cpp
...
...
pcbnew/tools/common_actions.cpp
View file @
b21ce73c
...
@@ -56,3 +56,7 @@ TOOL_ACTION COMMON_ACTIONS::remove( "pcbnew.InteractiveEdit.remove",
...
@@ -56,3 +56,7 @@ TOOL_ACTION COMMON_ACTIONS::remove( "pcbnew.InteractiveEdit.remove",
TOOL_ACTION
COMMON_ACTIONS
::
properties
(
"pcbnew.InteractiveEdit.properties"
,
TOOL_ACTION
COMMON_ACTIONS
::
properties
(
"pcbnew.InteractiveEdit.properties"
,
AS_GLOBAL
,
'E'
,
AS_GLOBAL
,
'E'
,
"Properties..."
,
"Displays properties window"
);
"Properties..."
,
"Displays properties window"
);
TOOL_ACTION
COMMON_ACTIONS
::
drawingLine
(
"pcbnew.InteractiveDrawing.line"
,
AS_GLOBAL
,
'D'
,
"Draw a line"
,
"Draw a line"
);
pcbnew/tools/common_actions.h
View file @
b21ce73c
...
@@ -56,4 +56,7 @@ public:
...
@@ -56,4 +56,7 @@ public:
/// Deleting a BOARD_ITEM
/// Deleting a BOARD_ITEM
static
TOOL_ACTION
remove
;
static
TOOL_ACTION
remove
;
/// Activation of the drawing tool (line)
static
TOOL_ACTION
drawingLine
;
};
};
pcbnew/tools/edit_tool.h
View file @
b21ce73c
...
@@ -114,6 +114,9 @@ private:
...
@@ -114,6 +114,9 @@ private:
m_updateFlag
=
aFlag
;
m_updateFlag
=
aFlag
;
}
}
///> Updates ratsnest for selected items.
///> @param aRedraw says if selected items should be drawn using the simple mode (e.g. one line
///> per item).
void
updateRatsnest
(
bool
aRedraw
);
void
updateRatsnest
(
bool
aRedraw
);
///> Returns the right modification point (e.g. for rotation), depending on the number of
///> Returns the right modification point (e.g. for rotation), depending on the number of
...
...
pcbnew/tools/pcb_tools.cpp
View file @
b21ce73c
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "selection_tool.h"
#include "selection_tool.h"
#include "edit_tool.h"
#include "edit_tool.h"
#include "drawing_tool.h"
#include "common_actions.h"
#include "common_actions.h"
#include <router/router_tool.h>
#include <router/router_tool.h>
...
@@ -54,11 +55,13 @@ void PCB_EDIT_FRAME::setupTools()
...
@@ -54,11 +55,13 @@ void PCB_EDIT_FRAME::setupTools()
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
flip
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
flip
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
remove
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
remove
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
properties
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
properties
);
m_toolManager
->
RegisterAction
(
&
COMMON_ACTIONS
::
drawingLine
);
// Register tools
// Register tools
m_toolManager
->
RegisterTool
(
new
SELECTION_TOOL
);
m_toolManager
->
RegisterTool
(
new
SELECTION_TOOL
);
m_toolManager
->
RegisterTool
(
new
ROUTER_TOOL
);
m_toolManager
->
RegisterTool
(
new
ROUTER_TOOL
);
m_toolManager
->
RegisterTool
(
new
EDIT_TOOL
);
m_toolManager
->
RegisterTool
(
new
EDIT_TOOL
);
m_toolManager
->
RegisterTool
(
new
DRAWING_TOOL
);
m_toolManager
->
SetEnvironment
(
NULL
,
GetGalCanvas
()
->
GetView
(),
m_toolManager
->
SetEnvironment
(
NULL
,
GetGalCanvas
()
->
GetView
(),
GetGalCanvas
()
->
GetViewControls
(),
this
);
GetGalCanvas
()
->
GetViewControls
(),
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment