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
06d588f1
Commit
06d588f1
authored
Aug 31, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow cards to be pasted when another control is selected.
parent
ca8e4031
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
src/gui/set/cards_panel.cpp
src/gui/set/cards_panel.cpp
+18
-2
No files found.
src/gui/set/cards_panel.cpp
View file @
06d588f1
...
@@ -329,10 +329,26 @@ bool CardsPanel::wantsToHandle(const Action&, bool undone) const {
...
@@ -329,10 +329,26 @@ bool CardsPanel::wantsToHandle(const Action&, bool undone) const {
bool
CardsPanel
::
canCut
()
const
{
CUT_COPY_PASTE
(
canCut
,
return
)
}
bool
CardsPanel
::
canCut
()
const
{
CUT_COPY_PASTE
(
canCut
,
return
)
}
bool
CardsPanel
::
canCopy
()
const
{
CUT_COPY_PASTE
(
canCopy
,
return
)
}
bool
CardsPanel
::
canCopy
()
const
{
CUT_COPY_PASTE
(
canCopy
,
return
)
}
bool
CardsPanel
::
canPaste
()
const
{
CUT_COPY_PASTE
(
canPaste
,
return
)
}
void
CardsPanel
::
doCut
()
{
CUT_COPY_PASTE
(
doCut
,
return
(
void
))
}
void
CardsPanel
::
doCut
()
{
CUT_COPY_PASTE
(
doCut
,
return
(
void
))
}
void
CardsPanel
::
doCopy
()
{
CUT_COPY_PASTE
(
doCopy
,
return
(
void
))
}
void
CardsPanel
::
doCopy
()
{
CUT_COPY_PASTE
(
doCopy
,
return
(
void
))
}
void
CardsPanel
::
doPaste
()
{
CUT_COPY_PASTE
(
doPaste
,
return
(
void
))
}
// always alow pasting cards, even if something else is selected
bool
CardsPanel
::
canPaste
()
const
{
if
(
card_list
->
canPaste
())
return
true
;
int
id
=
focused_control
(
this
);
if
(
id
==
ID_EDITOR
)
return
editor
->
canPaste
();
else
if
(
id
==
ID_NOTES
)
return
notes
->
canPaste
();
else
return
false
;
}
void
CardsPanel
::
doPaste
()
{
if
(
card_list
->
canPaste
())
{
card_list
->
doPaste
();
}
else
{
int
id
=
focused_control
(
this
);
if
(
id
==
ID_EDITOR
)
editor
->
doPaste
();
else
if
(
id
==
ID_NOTES
)
notes
->
doPaste
();
}
}
// ----------------------------------------------------------------------------- : Searching
// ----------------------------------------------------------------------------- : Searching
...
...
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