mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
added WelcomeWindow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@47 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
//+----------------------------------------------------------------------------+
|
||||
//| 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_WELCOME_WINDOW
|
||||
#define HEADER_GUI_WELCOME_WINDOW
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <gui/about_window.hpp> // for HoverButton
|
||||
|
||||
DECLARE_POINTER_TYPE(Set);
|
||||
|
||||
// ----------------------------------------------------------------------------- : WelcomeWindow
|
||||
|
||||
/// Welcome window, first window you see at startup
|
||||
/** Shows the following choices for the user:
|
||||
* - new set
|
||||
* - open set
|
||||
* - open last opened set
|
||||
* in the future also:
|
||||
* - new game, new style?
|
||||
*/
|
||||
class WelcomeWindow : public Frame {
|
||||
public:
|
||||
WelcomeWindow();
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
// MSE logos
|
||||
Bitmap logo, logo2;
|
||||
|
||||
void onPaint(wxPaintEvent& e);
|
||||
void draw(DC& dc);
|
||||
|
||||
void onOpenSet (wxCommandEvent&);
|
||||
void onNewSet (wxCommandEvent&);
|
||||
void onOpenLast(wxCommandEvent&);
|
||||
// void onIdle (wxIdleEvent& ev);
|
||||
|
||||
/// Close the welcome window, and show the given set
|
||||
void close(const SetP& set);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Hover button with label
|
||||
|
||||
/// An extended hover button, not only has base images, but also has two labels
|
||||
class HoverButtonExt : public HoverButton {
|
||||
public:
|
||||
HoverButtonExt(Window* parent, int id, const String& icon_name, const String& label, const String& sub_label);
|
||||
|
||||
private:
|
||||
Bitmap icon;
|
||||
String label, sub_label;
|
||||
wxFont font_large, font_small;
|
||||
|
||||
protected:
|
||||
virtual void draw(DC& dc);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
Reference in New Issue
Block a user