Added --export command line flag

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@773 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-12-20 20:03:26 +00:00
parent 125dbe53af
commit 25457f8512
3 changed files with 67 additions and 19 deletions
+15 -1
View File
@@ -11,11 +11,23 @@
#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 export(const SetP& set, wxFileName& filename, const String& filename_template, FilenameConflicts conflicts);
protected:
virtual bool exportCard(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 {
class ImagesExportWindow : public CardSelectWindow, private ExportCardImages {
public:
ImagesExportWindow(Window* parent, const SetP& set);
@@ -24,6 +36,8 @@ class ImagesExportWindow : public CardSelectWindow {
void onOk(wxCommandEvent&);
virtual bool exportCard(const CardP& card) const;
wxTextCtrl* format;
wxChoice* conflicts;
};