mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Implemented NewSetWindow, added events to GalleryList
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@48 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
//+----------------------------------------------------------------------------+
|
||||
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
||||
//| Copyright: (C) 2001 - 2006 Twan van Laarhoven |
|
||||
//| 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;
|
||||
DECLARE_POINTER_TYPE(Set);
|
||||
|
||||
// ----------------------------------------------------------------------------- : 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;
|
||||
wxStaticText* game_text, *stylesheet_text;
|
||||
Window* ok_button;
|
||||
|
||||
// --------------------------------------------------- : enabling stuff
|
||||
|
||||
void enableStyle(bool e);
|
||||
void enableOk (bool e);
|
||||
|
||||
// --------------------------------------------------- : events
|
||||
|
||||
void onGameSelect (wxCommandEvent&);
|
||||
// void onGameDeselect(wxCommandEvent&);
|
||||
|
||||
void onStyleSheetSelect (wxCommandEvent&);
|
||||
// void onStyleSheetDeselect(wxCommandEvent&);
|
||||
void onStyleSheetActivate(wxCommandEvent&);
|
||||
|
||||
virtual void OnOK(wxCommandEvent&);
|
||||
|
||||
// we are done, close the window
|
||||
void done();
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
Reference in New Issue
Block a user