mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
changed function name (exportCard -> includeCard), because it better describes what the function does.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1032 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -63,7 +63,7 @@ void ExportCardImages::exportImages(const SetP& set, wxFileName& fn, const Strin
|
||||
// Export
|
||||
std::set<String> used; // for CONFLICT_NUMBER_OVERWRITE
|
||||
FOR_EACH(card, set->cards) {
|
||||
if (exportCard(card)) {
|
||||
if (includeCard(card)) {
|
||||
// filename for this card
|
||||
Context& ctx = set->getContext(card);
|
||||
String filename = untag(ctx.eval(*filename_script)->toString());
|
||||
@@ -121,7 +121,7 @@ void ImagesExportWindow::onOk(wxCommandEvent&) {
|
||||
EndModal(wxID_OK);
|
||||
}
|
||||
|
||||
bool ImagesExportWindow::exportCard(const CardP& card) const {
|
||||
bool ImagesExportWindow::includeCard(const CardP& card) const {
|
||||
return isSelected(card);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@ class ExportCardImages {
|
||||
void exportImages(const SetP& set, wxFileName& filename, const String& filename_template, FilenameConflicts conflicts);
|
||||
virtual ~ExportCardImages() {}
|
||||
protected:
|
||||
virtual bool exportCard(const CardP& card) const { return true; }
|
||||
/// Should the given card be exported?
|
||||
virtual bool includeCard(const CardP& card) const { return true; }
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : ImagesExportWindow
|
||||
@@ -37,7 +38,7 @@ class ImagesExportWindow : public CardSelectWindow, private ExportCardImages {
|
||||
|
||||
void onOk(wxCommandEvent&);
|
||||
|
||||
virtual bool exportCard(const CardP& card) const;
|
||||
virtual bool includeCard(const CardP& card) const;
|
||||
|
||||
wxTextCtrl* format;
|
||||
wxChoice* conflicts;
|
||||
|
||||
Reference in New Issue
Block a user