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
8731c101
Commit
8731c101
authored
Jun 24, 2007
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compatibility check - export is still a reserved word.
parent
eca74a16
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
src/data/settings.cpp
src/data/settings.cpp
+2
-2
src/data/settings.hpp
src/data/settings.hpp
+1
-1
src/gui/control/native_look_editor.cpp
src/gui/control/native_look_editor.cpp
+3
-3
src/gui/control/native_look_editor.hpp
src/gui/control/native_look_editor.hpp
+1
-1
src/gui/html_export_window.cpp
src/gui/html_export_window.cpp
+3
-3
src/util/delayed_index_maps.hpp
src/util/delayed_index_maps.hpp
+1
-1
src/util/index_map.hpp
src/util/index_map.hpp
+1
-1
No files found.
src/data/settings.cpp
View file @
8731c101
...
...
@@ -149,8 +149,8 @@ StyleSheetSettings& Settings::stylesheetSettingsFor(const StyleSheet& stylesheet
return
*
ss
;
}
IndexMap
<
FieldP
,
ValueP
>&
Settings
::
exportOptionsFor
(
const
ExportTemplate
&
export
)
{
return
export_options
.
get
(
export
.
name
(),
export
.
option_fields
);
IndexMap
<
FieldP
,
ValueP
>&
Settings
::
exportOptionsFor
(
const
ExportTemplate
&
export
_template
)
{
return
export_options
.
get
(
export
_template
.
name
(),
export_template
.
option_fields
);
}
/// Retrieve the directory to use for settings and other data files
...
...
src/data/settings.hpp
View file @
8731c101
...
...
@@ -142,7 +142,7 @@ class Settings {
public:
/// Get the options for an export template
IndexMap
<
FieldP
,
ValueP
>&
exportOptionsFor
(
const
ExportTemplate
&
export
);
IndexMap
<
FieldP
,
ValueP
>&
exportOptionsFor
(
const
ExportTemplate
&
export
_template
);
// --------------------------------------------------- : Special game stuff
String
apprentice_location
;
...
...
src/gui/control/native_look_editor.cpp
View file @
8731c101
...
...
@@ -213,8 +213,8 @@ ExportOptionsEditor::ExportOptionsEditor(Window* parent, int id, long style)
:
NativeLookEditor
(
parent
,
id
,
style
)
{}
void
ExportOptionsEditor
::
showExport
(
const
ExportTemplateP
&
export
)
{
setStyles
(
set
->
stylesheet
,
export
->
option_style
);
setData
(
settings
.
exportOptionsFor
(
*
export
));
void
ExportOptionsEditor
::
showExport
(
const
ExportTemplateP
&
export
_template
)
{
setStyles
(
set
->
stylesheet
,
export
_template
->
option_style
);
setData
(
settings
.
exportOptionsFor
(
*
export
_template
));
}
src/gui/control/native_look_editor.hpp
View file @
8731c101
...
...
@@ -85,7 +85,7 @@ class ExportOptionsEditor : public NativeLookEditor {
ExportOptionsEditor
(
Window
*
parent
,
int
id
,
long
style
=
0
);
/// Show the options for given export template
void
showExport
(
const
ExportTemplateP
&
export
);
void
showExport
(
const
ExportTemplateP
&
export
_template
);
};
// ----------------------------------------------------------------------------- : EOF
...
...
src/gui/html_export_window.cpp
View file @
8731c101
...
...
@@ -62,10 +62,10 @@ void HtmlExportWindow::onOk(wxCommandEvent&) {
void
HtmlExportWindow
::
onTemplateSelect
(
wxCommandEvent
&
)
{
wxBusyCursor
wait
;
ExportTemplateP
export
=
list
->
getSelection
<
ExportTemplate
>
();
ExportTemplateP
export
_template
=
list
->
getSelection
<
ExportTemplate
>
();
handle_pending_errors
();
options
->
showExport
(
export
);
settings
.
gameSettingsFor
(
*
set
->
game
).
default_export
=
export
->
name
();
options
->
showExport
(
export
_template
);
settings
.
gameSettingsFor
(
*
set
->
game
).
default_export
=
export
_template
->
name
();
UpdateWindowUI
(
wxUPDATE_UI_RECURSE
);
}
...
...
src/util/delayed_index_maps.hpp
View file @
8731c101
...
...
@@ -60,7 +60,7 @@ void GetMember::handle(const DelayedIndexMapsData<Key,Value>& d) {
handle
(
d
.
read_data
);
}
template
<
typename
Key
,
typename
Value
>
void
GetDefaultMember
::
handle
(
const
DelayedIndexMapsData
<
Key
,
Value
>&
)
{
void
GetDefaultMember
::
handle
(
const
DelayedIndexMapsData
<
Key
,
Value
>&
d
)
{
handle
(
d
.
read_data
);
}
...
...
src/util/index_map.hpp
View file @
8731c101
...
...
@@ -134,7 +134,7 @@ inline void swap(IndexMap<Key,Value>& a, IndexMap<Key,Value>& b) {
/* Invariant: read_data is initialized <=> unread_data.empty()
*/
template
<
typename
Key
,
typename
Value
>
struct
DelayedIndexMapsData
:
public
IntrusivePtrBase
<
DelayedIndexMapsData
>
{
struct
DelayedIndexMapsData
:
public
IntrusivePtrBase
<
DelayedIndexMapsData
<
Key
,
Value
>
>
{
String
unread_data
;
IndexMap
<
Key
,
Value
>
read_data
;
};
...
...
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