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
43d47e10
Commit
43d47e10
authored
Apr 19, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented apprentice export
parent
d302d206
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
800 additions
and
4 deletions
+800
-4
data/en.mse-locale/locale
data/en.mse-locale/locale
+9
-1
src/data/card.hpp
src/data/card.hpp
+10
-0
src/data/format/apprentice.cpp
src/data/format/apprentice.cpp
+777
-1
src/data/format/formats.hpp
src/data/format/formats.hpp
+3
-0
src/gui/set/window.cpp
src/gui/set/window.cpp
+1
-2
No files found.
data/en.mse-locale/locale
View file @
43d47e10
...
...
@@ -47,7 +47,7 @@ menu:
add
keyword
:
&
Add
Keyword
Ctrl
++
remove
keyword
:
&
Remove
Select
Keyword
Del
format
:
&
F
ormat
format
:
F
&
ormat
bold
:
&
Bold
Ctrl
+
B
italic
:
&
Italic
Ctrl
+
I
symbols
:
&
Symbols
Ctrl
+
M
...
...
@@ -161,6 +161,9 @@ help:
(
When
off
,
the
cards
are
exported
and
copied
at
100
%
size
and
normal
rotation
)
#
apprentice
export
set
code
:
A
set
code
is
a
two
character
code
that
is
used
by
Apprentice
to
refer
to
a
set
.
#
Symbol
editor
new
symbol
:
Create
a
new
symbol
open
symbol
:
Open
a
symbol
...
...
@@ -366,6 +369,10 @@ label:
cards
to
export
:
Cards
to
export
filename
is
ignored
:
(
filename
is
ignored
)
#
apprentice
export
set
code
:
Set
&
Code
:
apprentice
export
cancled
:
Export
to
Apprentice
is
cancled
#
Image
slicer
original
:
Original
:
result
:
Result
:
...
...
@@ -443,6 +450,7 @@ title:
print
preview
:
Print
Preview
#
export
export
images
:
Export
Images
export
cancled
:
Export
Cancled
##############################################################
Action
(
undo
/
redo
)
names
action
:
...
...
src/data/card.hpp
View file @
43d47e10
...
...
@@ -55,6 +55,16 @@ class Card {
}
throw
InternalError
(
_
(
"Expected a card field with name '"
)
+
name
+
_
(
"'"
));
}
template
<
typename
T
>
const
T
&
value
(
const
String
&
name
)
const
{
for
(
IndexMap
<
FieldP
,
ValueP
>::
const_iterator
it
=
data
.
begin
()
;
it
!=
data
.
end
()
;
++
it
)
{
if
((
*
it
)
->
fieldP
->
name
==
name
)
{
const
T
*
ret
=
dynamic_cast
<
const
T
*>
(
it
->
get
());
if
(
!
ret
)
throw
InternalError
(
_
(
"Card field with name '"
)
+
name
+
_
(
"' doesn't have the right type"
));
return
*
ret
;
}
}
throw
InternalError
(
_
(
"Expected a card field with name '"
)
+
name
+
_
(
"'"
));
}
DECLARE_REFLECTION
();
};
...
...
src/data/format/apprentice.cpp
View file @
43d47e10
This diff is collapsed.
Click to expand it.
src/data/format/formats.hpp
View file @
43d47e10
...
...
@@ -94,5 +94,8 @@ Bitmap export_bitmap(const SetP& set, const CardP& card);
/// Export a set to Magic Workstation format
void
export_mws
(
Window
*
parent
,
const
SetP
&
set
);
/// Export a set to Apprentice
void
export_apprentice
(
Window
*
parent
,
const
SetP
&
set
);
// ----------------------------------------------------------------------------- : EOF
#endif
src/gui/set/window.cpp
View file @
43d47e10
...
...
@@ -458,8 +458,7 @@ void SetWindow::onFileExportHTML(wxCommandEvent&) {
}
void
SetWindow
::
onFileExportApprentice
(
wxCommandEvent
&
)
{
// ApprenticeExportWindow wnd(&this, set);
// wnd.ShowModal();
export_apprentice
(
this
,
set
);
}
void
SetWindow
::
onFileExportMWS
(
wxCommandEvent
&
)
{
...
...
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