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
6d4762e1
Commit
6d4762e1
authored
Dec 07, 2010
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
parent
7d3dba99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/data/format/apprentice.cpp
src/data/format/apprentice.cpp
+1
-1
src/data/format/mws.cpp
src/data/format/mws.cpp
+1
-1
No files found.
src/data/format/apprentice.cpp
View file @
6d4762e1
...
@@ -656,7 +656,7 @@ ApprenticeExportWindow::ApprenticeExportWindow(Window* parent, const SetP& set)
...
@@ -656,7 +656,7 @@ ApprenticeExportWindow::ApprenticeExportWindow(Window* parent, const SetP& set)
void
ApprenticeExportWindow
::
onApprenticeBrowse
(
wxCommandEvent
&
ev
)
{
void
ApprenticeExportWindow
::
onApprenticeBrowse
(
wxCommandEvent
&
ev
)
{
// browse for appr.exe
// browse for appr.exe
// same as in DirsPreferencesPage
// same as in DirsPreferencesPage
wxFileDialog
dlg
(
this
,
_TITLE_
(
"locate apprentice"
),
apprentice
->
GetValue
(),
_
(
""
),
_LABEL_
(
"apprentice exe"
)
+
_
(
"|appr.exe"
),
wxOPEN
);
wxFileDialog
dlg
(
this
,
_TITLE_
(
"locate apprentice"
),
apprentice
->
GetValue
(),
_
(
""
),
_LABEL_
(
"apprentice exe"
)
+
_
(
"|appr.exe"
),
wx
FD_
OPEN
);
if
(
dlg
.
ShowModal
()
==
wxID_OK
)
{
if
(
dlg
.
ShowModal
()
==
wxID_OK
)
{
wxFileName
fn
(
dlg
.
GetPath
());
wxFileName
fn
(
dlg
.
GetPath
());
apprentice
->
SetValue
(
fn
.
GetPath
());
apprentice
->
SetValue
(
fn
.
GetPath
());
...
...
src/data/format/mws.cpp
View file @
6d4762e1
...
@@ -63,7 +63,7 @@ void export_mws(Window* parent, const SetP& set) {
...
@@ -63,7 +63,7 @@ void export_mws(Window* parent, const SetP& set) {
// Select filename
// Select filename
String
name
=
wxFileSelector
(
_
(
"Export to file"
),
settings
.
default_export_dir
,
_
(
""
),
_
(
""
),
String
name
=
wxFileSelector
(
_
(
"Export to file"
),
settings
.
default_export_dir
,
_
(
""
),
_
(
""
),
_
(
"Text files (*.txt)|*.txt|All Files|*"
),
_
(
"Text files (*.txt)|*.txt|All Files|*"
),
wx
SAVE
|
wx
OVERWRITE_PROMPT
,
parent
);
wx
FD_SAVE
|
wxFD_
OVERWRITE_PROMPT
,
parent
);
if
(
name
.
empty
())
return
;
if
(
name
.
empty
())
return
;
settings
.
default_export_dir
=
wxPathOnly
(
name
);
settings
.
default_export_dir
=
wxPathOnly
(
name
);
wxBusyCursor
busy
;
wxBusyCursor
busy
;
...
...
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