Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
5f24d667
Commit
5f24d667
authored
Oct 19, 2006
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(formating)
parent
5c02057f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
src/data/action/symbol.hpp
src/data/action/symbol.hpp
+10
-10
src/data/action/symbol_part.cpp
src/data/action/symbol_part.cpp
+2
-2
src/data/action/symbol_part.hpp
src/data/action/symbol_part.hpp
+6
-6
No files found.
src/data/action/symbol.hpp
View file @
5f24d667
...
...
@@ -34,7 +34,7 @@ class SymbolPartMoveAction : public SymbolPartAction {
SymbolPartMoveAction
(
const
set
<
SymbolPartP
>&
parts
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Update this action to move some more
void
move
(
const
Vector2D
&
delta
);
...
...
@@ -71,7 +71,7 @@ class SymbolPartRotateAction : public SymbolPartMatrixAction {
SymbolPartRotateAction
(
const
set
<
SymbolPartP
>&
parts
,
const
Vector2D
&
center
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Update this action to rotate to a different angle
void
rotateTo
(
double
newAngle
);
...
...
@@ -94,7 +94,7 @@ class SymbolPartShearAction : public SymbolPartMatrixAction {
SymbolPartShearAction
(
const
set
<
SymbolPartP
>&
parts
,
const
Vector2D
&
center
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Change shear by a given amount
void
move
(
const
Vector2D
&
deltaShear
);
...
...
@@ -115,7 +115,7 @@ class SymbolPartScaleAction : public SymbolPartAction {
SymbolPartScaleAction
(
const
set
<
SymbolPartP
>&
parts
,
int
scaleX
,
int
scaleY
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Change min and max coordinates
void
move
(
const
Vector2D
&
deltaMin
,
const
Vector2D
&
deltaMax
);
...
...
@@ -146,7 +146,7 @@ class CombiningModeAction : public SymbolPartListAction {
CombiningModeAction
(
const
set
<
SymbolPartP
>&
parts
,
SymbolPartCombine
mode
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
vector
<
pair
<
SymbolPartP
,
SymbolPartCombine
>
>
parts
;
///< Affected parts with new combining modes
...
...
@@ -160,7 +160,7 @@ class SymbolPartNameAction : public SymbolPartListAction {
SymbolPartNameAction
(
const
SymbolPartP
&
part
,
const
String
&
name
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
SymbolPartP
part
;
///< Affected part
...
...
@@ -175,7 +175,7 @@ class AddSymbolPartAction : public SymbolPartListAction {
AddSymbolPartAction
(
Symbol
&
symbol
,
const
SymbolPartP
&
part
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
Symbol
&
symbol
;
///< Symbol to add the part to
...
...
@@ -190,7 +190,7 @@ class RemoveSymbolPartsAction : public SymbolPartListAction {
RemoveSymbolPartsAction
(
Symbol
&
symbol
,
const
set
<
SymbolPartP
>&
parts
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
Symbol
&
symbol
;
...
...
@@ -206,7 +206,7 @@ class DuplicateSymbolPartsAction : public SymbolPartListAction {
DuplicateSymbolPartsAction
(
Symbol
&
symbol
,
const
set
<
SymbolPartP
>&
parts
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Fill a set with all the new parts
void
getParts
(
set
<
SymbolPartP
>&
parts
);
...
...
@@ -226,7 +226,7 @@ class ReorderSymbolPartsAction : public SymbolPartListAction {
ReorderSymbolPartsAction
(
Symbol
&
symbol
,
size_t
partId1
,
size_t
partId2
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
Symbol
&
symbol
;
///< Symbol to swap the parts in
...
...
src/data/action/symbol_part.cpp
View file @
5f24d667
...
...
@@ -250,7 +250,7 @@ class SinglePointRemoveAction : public Action {
SinglePointRemoveAction
(
const
SymbolPartP
&
part
,
UInt
position
);
virtual
String
getName
(
bool
to_undo
)
const
{
return
_
(
"Delete point"
);
}
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
SymbolPartP
part
;
...
...
@@ -337,7 +337,7 @@ class ControlPointRemoveAction : public Action {
ControlPointRemoveAction
(
const
SymbolPartP
&
part
,
const
set
<
ControlPointP
>&
toDelete
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
vector
<
SinglePointRemoveActionP
>
removals
;
...
...
src/data/action/symbol_part.hpp
View file @
5f24d667
...
...
@@ -32,7 +32,7 @@ class ControlPointMoveAction : public Action {
ControlPointMoveAction
(
const
set
<
ControlPointP
>&
points
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Update this action to move some more
void
move
(
const
Vector2D
&
delta
);
...
...
@@ -53,7 +53,7 @@ class HandleMoveAction : public Action {
HandleMoveAction
(
const
SelectedHandle
&
handle
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
/// Update this action to move some more
void
move
(
const
Vector2D
&
delta
);
...
...
@@ -91,7 +91,7 @@ class SegmentModeAction : public Action {
SegmentModeAction
(
const
ControlPointP
&
p1
,
const
ControlPointP
&
p2
,
SegmentMode
mode
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
protected:
ControlPointUpdate
point1
,
point2
;
...
...
@@ -105,7 +105,7 @@ class LockModeAction : public Action {
LockModeAction
(
const
ControlPointP
&
p
,
LockMode
mode
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
private:
ControlPointUpdate
point
;
///< The affected point
...
...
@@ -121,7 +121,7 @@ class CurveDragAction : public SegmentModeAction {
CurveDragAction
(
const
ControlPointP
&
point1
,
const
ControlPointP
&
point2
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
// Move the curve by this much, it is grabbed at time t
void
move
(
const
Vector2D
&
delta
,
double
t
);
...
...
@@ -136,7 +136,7 @@ class ControlPointAddAction : public Action {
ControlPointAddAction
(
const
SymbolPartP
&
part
,
UInt
insert_after
,
double
t
);
virtual
String
getName
(
bool
to_undo
)
const
;
virtual
void
perform
(
bool
to_undo
);
virtual
void
perform
(
bool
to_undo
);
inline
ControlPointP
getNewPoint
()
const
{
return
new_point
;
}
...
...
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