mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Generated packs can now be selected for printing.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1107 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+26
-12
@@ -329,16 +329,6 @@ void SetWindow::updateTitle() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SetWindow::onCardSelect(CardSelectEvent& ev) {
|
||||
FOR_EACH(p, panels) {
|
||||
p->selectCard(ev.card);
|
||||
}
|
||||
}
|
||||
void SetWindow::onCardActivate(CardSelectEvent& ev) {
|
||||
selectPanel(ID_WINDOW_CARDS);
|
||||
}
|
||||
|
||||
void SetWindow::fixMinWindowSize() {
|
||||
current_panel->SetMinSize(current_panel->GetSizer()->GetMinSize());
|
||||
Layout();
|
||||
@@ -360,6 +350,26 @@ void SetWindow::onSizeChange(wxCommandEvent&) {
|
||||
fixMinWindowSize();
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : Cards
|
||||
|
||||
void SetWindow::onCardSelect(CardSelectEvent& ev) {
|
||||
FOR_EACH(p, panels) {
|
||||
p->selectCard(ev.getCard());
|
||||
}
|
||||
}
|
||||
void SetWindow::onCardActivate(CardSelectEvent& ev) {
|
||||
selectPanel(ID_WINDOW_CARDS);
|
||||
}
|
||||
|
||||
void SetWindow::selectionChoices(ExportCardSelectionChoices& out) {
|
||||
out.push_back(new_intrusive1<ExportCardSelectionChoice>(*set)); // entire set
|
||||
FOR_EACH(p, panels) {
|
||||
p->selectionChoices(out);
|
||||
}
|
||||
out.push_back(new_intrusive<ExportCardSelectionChoice>()); // custom
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Window events - close
|
||||
|
||||
void SetWindow::onClose(wxCloseEvent& ev) {
|
||||
@@ -594,11 +604,15 @@ void SetWindow::onFileCheckUpdates(wxCommandEvent&) {
|
||||
}
|
||||
|
||||
void SetWindow::onFilePrint(wxCommandEvent&) {
|
||||
print_set(this, set);
|
||||
ExportCardSelectionChoices choices;
|
||||
selectionChoices(choices);
|
||||
print_set(this, set, choices);
|
||||
}
|
||||
|
||||
void SetWindow::onFilePrintPreview(wxCommandEvent&) {
|
||||
print_preview(this, set);
|
||||
ExportCardSelectionChoices choices;
|
||||
selectionChoices(choices);
|
||||
print_preview(this, set, choices);
|
||||
}
|
||||
|
||||
void SetWindow::onFileReload(wxCommandEvent&) {
|
||||
|
||||
Reference in New Issue
Block a user