mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
26562e03e3
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@837 0fc631ac-6414-0410-93d0-97cfa31319b6
94 lines
2.8 KiB
C++
94 lines
2.8 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
|
//| Copyright: (C) 2001 - 2008 Twan van Laarhoven and "coppro" |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
#ifndef HEADER_GUI_NEW_WINDOW
|
|
#define HEADER_GUI_NEW_WINDOW
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
|
|
class PackageList;
|
|
class Game;
|
|
DECLARE_POINTER_TYPE(Set);
|
|
DECLARE_POINTER_TYPE(StyleSheet);
|
|
|
|
// ----------------------------------------------------------------------------- : NewSetWindow
|
|
|
|
/// Show the new set window, return the new set, if any
|
|
SetP new_set_window(Window* parent);
|
|
|
|
/// "Create a new set" dialog. First select game, then matching style.
|
|
class NewSetWindow : public wxDialog {
|
|
public:
|
|
/// The newly created set, if any
|
|
SetP set;
|
|
|
|
NewSetWindow(Window* parent);
|
|
|
|
// --------------------------------------------------- : data
|
|
private:
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
// gui items
|
|
PackageList* game_list, *stylesheet_list;
|
|
|
|
// --------------------------------------------------- : events
|
|
|
|
void onGameSelect (wxCommandEvent&);
|
|
|
|
void onStyleSheetSelect (wxCommandEvent&);
|
|
void onStyleSheetActivate(wxCommandEvent&);
|
|
|
|
virtual void OnOK(wxCommandEvent&);
|
|
|
|
void onUpdateUI(wxUpdateUIEvent&);
|
|
void onIdle(wxIdleEvent&);
|
|
|
|
// we are done, close the window
|
|
void done();
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------- : SelectStyleSheetWindow
|
|
// very similair, so in the same file
|
|
|
|
/// Show the select stylesheet window, return the selected stylesheet, if any
|
|
StyleSheetP select_stylesheet(const Game& game, const String& failed_name);
|
|
|
|
/// "Create a new set" dialog. First select game, then matching style.
|
|
class SelectStyleSheetWindow : public wxDialog {
|
|
public:
|
|
/// The selected stylesheet, if any
|
|
StyleSheetP stylesheet;
|
|
|
|
SelectStyleSheetWindow(Window* parent, const Game& game, const String& failed_name);
|
|
|
|
// --------------------------------------------------- : data
|
|
private:
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
const Game& game;
|
|
|
|
// gui items
|
|
PackageList* stylesheet_list;
|
|
|
|
// --------------------------------------------------- : events
|
|
|
|
void onStyleSheetSelect (wxCommandEvent&);
|
|
void onStyleSheetActivate(wxCommandEvent&);
|
|
|
|
virtual void OnOK(wxCommandEvent&);
|
|
|
|
void onUpdateUI(wxUpdateUIEvent&);
|
|
void onIdle(wxIdleEvent&);
|
|
|
|
// we are done, close the window
|
|
void done();
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------- : EOF
|
|
#endif
|