mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Moved clean_filename to file_utils.cpp where it belongs;
Split up images exporting, and moved it to data/formats/image git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1085 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -12,24 +12,11 @@
|
||||
#include <util/prec.hpp>
|
||||
#include <gui/card_select_window.hpp>
|
||||
#include <data/settings.hpp>
|
||||
class wxFileName;
|
||||
|
||||
// ----------------------------------------------------------------------------- : ImagesExportWindow
|
||||
|
||||
/// Export the cards in a set
|
||||
class ExportCardImages {
|
||||
public:
|
||||
void exportImages(const SetP& set, wxFileName& filename, const String& filename_template, FilenameConflicts conflicts);
|
||||
virtual ~ExportCardImages() {}
|
||||
protected:
|
||||
/// Should the given card be exported?
|
||||
virtual bool includeCard(const CardP& card) const { return true; }
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : ImagesExportWindow
|
||||
|
||||
/// A window for selecting a subset of the cards from a set to export to images
|
||||
class ImagesExportWindow : public CardSelectWindow, private ExportCardImages {
|
||||
class ImagesExportWindow : public CardSelectWindow {
|
||||
public:
|
||||
ImagesExportWindow(Window* parent, const SetP& set);
|
||||
|
||||
@@ -38,8 +25,6 @@ class ImagesExportWindow : public CardSelectWindow, private ExportCardImages {
|
||||
|
||||
void onOk(wxCommandEvent&);
|
||||
|
||||
virtual bool includeCard(const CardP& card) const;
|
||||
|
||||
wxTextCtrl* format;
|
||||
wxChoice* conflicts;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user