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
c4a752a3
Commit
c4a752a3
authored
Aug 07, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow selected card from random pack to be exported
parent
e5001c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/gui/set/random_pack_panel.cpp
src/gui/set/random_pack_panel.cpp
+5
-0
src/gui/set/random_pack_panel.hpp
src/gui/set/random_pack_panel.hpp
+1
-0
No files found.
src/gui/set/random_pack_panel.cpp
View file @
c4a752a3
...
...
@@ -316,10 +316,15 @@ void RandomPackPanel::generate() {
// ----------------------------------------------------------------------------- : Selection
CardP
RandomPackPanel
::
selectedCard
()
const
{
return
card_list
->
getCard
();
}
void
RandomPackPanel
::
selectCard
(
const
CardP
&
card
)
{
preview
->
setCard
(
card
);
}
// ----------------------------------------------------------------------------- : Clipboard
bool
RandomPackPanel
::
canCopy
()
const
{
return
card_list
->
canCopy
();
}
...
...
src/gui/set/random_pack_panel.hpp
View file @
c4a752a3
...
...
@@ -36,6 +36,7 @@ class RandomPackPanel : public SetWindowPanel {
virtual
void
onCommand
(
int
id
);
// --------------------------------------------------- : Selection
virtual
CardP
selectedCard
()
const
;
virtual
void
selectCard
(
const
CardP
&
card
);
// --------------------------------------------------- : Clipboard
...
...
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