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
ede37ecf
Commit
ede37ecf
authored
Aug 04, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beautified
parent
72f7cb16
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
585 additions
and
534 deletions
+585
-534
tool_onrightclick.cpp
pcbnew/tool_onrightclick.cpp
+56
-58
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+529
-476
No files found.
pcbnew/tool_onrightclick.cpp
View file @
ede37ecf
/********************************************************************************/
/* tool_onrightclick.cpp: fonctions appel
e
s par le bouton droit sur un TOOL */
/* tool_onrightclick.cpp: fonctions appel
�
s par le bouton droit sur un TOOL */
/********************************************************************************/
#include "fctsys.h"
...
...
@@ -15,69 +15,67 @@
#include "protos.h"
/*****************************************************************/
void
WinEDA_PcbFrame
::
ToolOnRightClick
(
wxCommandEvent
&
event
)
void
WinEDA_PcbFrame
::
ToolOnRightClick
(
wxCommandEvent
&
event
)
/*****************************************************************/
{
wxPoint
pos
;
int
id
=
event
.
GetSelection
();
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
pos
.
x
-=
400
;
pos
.
y
-=
30
;
switch
(
id
)
{
case
ID_TRACK_BUTT
:
InstallPcbOptionsFrame
(
pos
,
NULL
,
ID_PCB_TRACK_SIZE_SETUP
);
break
;
case
ID_COMPONENT_BUTT
:
break
;
case
ID_PCB_CIRCLE_BUTT
:
case
ID_PCB_ARC_BUTT
:
case
ID_LINE_COMMENT_BUTT
:
case
ID_PCB_COTATION_BUTT
:
case
ID_TEXT_COMMENT_BUTT
:
InstallPcbOptionsFrame
(
pos
,
NULL
,
ID_PCB_DRAWINGS_WIDTHS_SETUP
);
break
;
default
:
break
;
}
wxPoint
pos
;
int
id
=
event
.
GetSelection
();
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
pos
.
x
-=
400
;
pos
.
y
-=
30
;
switch
(
id
)
{
case
ID_TRACK_BUTT
:
InstallPcbOptionsFrame
(
pos
,
NULL
,
ID_PCB_TRACK_SIZE_SETUP
);
break
;
case
ID_COMPONENT_BUTT
:
break
;
case
ID_PCB_CIRCLE_BUTT
:
case
ID_PCB_ARC_BUTT
:
case
ID_LINE_COMMENT_BUTT
:
case
ID_PCB_COTATION_BUTT
:
case
ID_TEXT_COMMENT_BUTT
:
InstallPcbOptionsFrame
(
pos
,
NULL
,
ID_PCB_DRAWINGS_WIDTHS_SETUP
);
break
;
default
:
break
;
}
}
/************************************************************************/
void
WinEDA_ModuleEditFrame
::
ToolOnRightClick
(
wxCommandEvent
&
event
)
void
WinEDA_ModuleEditFrame
::
ToolOnRightClick
(
wxCommandEvent
&
event
)
/************************************************************************/
{
wxPoint
pos
;
int
id
=
event
.
GetSelection
();
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
pos
.
x
-=
400
;
pos
.
y
-=
30
;
switch
(
id
)
{
case
ID_MODEDIT_ADD_PAD
:
InstallPadOptionsFrame
(
NULL
,
NULL
,
wxPoint
(
-
1
,
-
1
)
);
break
;
case
ID_PCB_CIRCLE_BUTT
:
case
ID_PCB_ARC_BUTT
:
case
ID_LINE_COMMENT_BUTT
:
case
ID_PCB_COTATION_BUTT
:
case
ID_TEXT_COMMENT_BUTT
:
InstallOptionsFrame
(
pos
);
break
;
default
:
DisplayError
(
this
,
wxT
(
"ToolOnRightClick() error"
)
);
break
;
}
wxPoint
pos
;
int
id
=
event
.
GetSelection
();
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
pos
.
x
-=
400
;
pos
.
y
-=
30
;
switch
(
id
)
{
case
ID_MODEDIT_ADD_PAD
:
InstallPadOptionsFrame
(
NULL
,
NULL
,
wxPoint
(
-
1
,
-
1
)
);
break
;
case
ID_PCB_CIRCLE_BUTT
:
case
ID_PCB_ARC_BUTT
:
case
ID_LINE_COMMENT_BUTT
:
case
ID_PCB_COTATION_BUTT
:
case
ID_TEXT_COMMENT_BUTT
:
InstallOptionsFrame
(
pos
);
break
;
default
:
DisplayError
(
this
,
wxT
(
"ToolOnRightClick() error"
)
);
break
;
}
}
pcbnew/tool_pcb.cpp
View file @
ede37ecf
This diff is collapsed.
Click to expand it.
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