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
a1859062
Commit
a1859062
authored
May 14, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dummy HTML export window
parent
596e8bc8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
14 deletions
+85
-14
src/gui/html_export_window.cpp
src/gui/html_export_window.cpp
+47
-0
src/gui/html_export_window.hpp
src/gui/html_export_window.hpp
+33
-0
src/gui/new_window.cpp
src/gui/new_window.cpp
+2
-2
src/gui/set/window.cpp
src/gui/set/window.cpp
+3
-12
No files found.
src/gui/html_export_window.cpp
0 → 100644
View file @
a1859062
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
// ----------------------------------------------------------------------------- : Includes
#include <gui/html_export_window.hpp>
#include <gui/control/package_list.hpp>
#include <util/error.hpp>
// ----------------------------------------------------------------------------- : HtmlExportWindow
HtmlExportWindow
::
HtmlExportWindow
(
Window
*
parent
,
const
SetP
&
set
)
:
wxDialog
(
parent
,
wxID_ANY
,
_TITLE_
(
"export html"
),
wxDefaultPosition
,
wxDefaultSize
,
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
|
wxFULL_REPAINT_ON_RESIZE
)
{
// init controls
list
=
new
PackageList
(
this
,
wxID_ANY
);
// init sizers
wxSizer
*
s
=
new
wxBoxSizer
(
wxVERTICAL
);
s
->
Add
(
new
wxStaticText
(
this
,
wxID_ANY
,
_LABEL_
(
"html template"
)),
0
,
wxALL
,
4
);
s
->
Add
(
list
,
0
,
wxEXPAND
|
wxALL
&
~
wxTOP
,
4
);
s
->
Add
(
CreateButtonSizer
(
wxOK
|
wxCANCEL
)
,
0
,
wxEXPAND
|
wxALL
,
8
);
s
->
SetSizeHints
(
this
);
SetSizer
(
s
);
}
void
HtmlExportWindow
::
onOk
(
wxCommandEvent
&
)
{
handle_error
(
Error
(
_
(
"HTML export is not implemented yet, sorry"
)));
/*;//%%
String name = fileSelector(_("Exort to html"),_(""),_(""),_(""), {
_("HTML files (*.html)|*.html"),
wxSAVE | wxOVERWRITE_PROMPT);
}
if (!name.empty()) {
HtmlExportWindow wnd(&this, set, name);
wnd.showModal();
}
*/
// Done
EndModal
(
wxID_OK
);
}
BEGIN_EVENT_TABLE
(
HtmlExportWindow
,
wxDialog
)
EVT_BUTTON
(
wxID_OK
,
HtmlExportWindow
::
onOk
)
END_EVENT_TABLE
()
src/gui/html_export_window.hpp
0 → 100644
View file @
a1859062
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_GUI_HTML_EXPORT_WINDOW
#define HEADER_GUI_HTML_EXPORT_WINDOW
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <data/export_template.hpp>
class
PackageList
;
DECLARE_POINTER_TYPE
(
Set
);
// ----------------------------------------------------------------------------- : HtmlExportWindow
class
HtmlExportWindow
:
public
wxDialog
{
public:
HtmlExportWindow
(
Window
*
parent
,
const
SetP
&
set
);
private:
PackageList
*
list
;
///< List of templates
DECLARE_EVENT_TABLE
();
void
onOk
(
wxCommandEvent
&
);
};
// ----------------------------------------------------------------------------- : EOF
#endif
src/gui/new_window.cpp
View file @
a1859062
...
@@ -31,8 +31,8 @@ NewSetWindow::NewSetWindow(Window* parent)
...
@@ -31,8 +31,8 @@ NewSetWindow::NewSetWindow(Window* parent)
// init controls
// init controls
game_list
=
new
PackageList
(
this
,
ID_GAME_LIST
);
game_list
=
new
PackageList
(
this
,
ID_GAME_LIST
);
stylesheet_list
=
new
PackageList
(
this
,
ID_STYLESHEET_LIST
);
stylesheet_list
=
new
PackageList
(
this
,
ID_STYLESHEET_LIST
);
game_text
=
new
wxStaticText
(
this
,
ID_GAME_LIST
,
_
(
"&Game type:
"
));
game_text
=
new
wxStaticText
(
this
,
ID_GAME_LIST
,
_
LABEL_
(
"game type
"
));
stylesheet_text
=
new
wxStaticText
(
this
,
ID_STYLESHEET_LIST
,
_
(
"&Card style:
"
));
stylesheet_text
=
new
wxStaticText
(
this
,
ID_STYLESHEET_LIST
,
_
LABEL_
(
"style type
"
));
// init sizer
// init sizer
wxSizer
*
s
=
new
wxBoxSizer
(
wxVERTICAL
);
wxSizer
*
s
=
new
wxBoxSizer
(
wxVERTICAL
);
s
->
Add
(
game_text
,
0
,
wxALL
,
4
);
s
->
Add
(
game_text
,
0
,
wxALL
,
4
);
...
...
src/gui/set/window.cpp
View file @
a1859062
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <gui/preferences_window.hpp>
#include <gui/preferences_window.hpp>
#include <gui/print_window.hpp>
#include <gui/print_window.hpp>
#include <gui/images_export_window.hpp>
#include <gui/images_export_window.hpp>
#include <gui/html_export_window.hpp>
#include <gui/icon_menu.hpp>
#include <gui/icon_menu.hpp>
#include <gui/util.hpp>
#include <gui/util.hpp>
#include <util/io/package_manager.hpp>
#include <util/io/package_manager.hpp>
...
@@ -484,18 +485,8 @@ void SetWindow::onFileExportImages(wxCommandEvent&) {
...
@@ -484,18 +485,8 @@ void SetWindow::onFileExportImages(wxCommandEvent&) {
}
}
void
SetWindow
::
onFileExportHTML
(
wxCommandEvent
&
)
{
void
SetWindow
::
onFileExportHTML
(
wxCommandEvent
&
)
{
// HtmlExportWindow wnd(&this, set);
HtmlExportWindow
wnd
(
this
,
set
);
// wnd.ShowModal();
wnd
.
ShowModal
();
/*;//%%
String name = fileSelector(_("Exort to html"),_(""),_(""),_(""), {
_("HTML files (*.html)|*.html"),
wxSAVE | wxOVERWRITE_PROMPT);
}
if (!name.empty()) {
HtmlExportWindow wnd(&this, set, name);
wnd.showModal();
}
*/
}
}
void
SetWindow
::
onFileExportApprentice
(
wxCommandEvent
&
)
{
void
SetWindow
::
onFileExportApprentice
(
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