Files
MagicSetEditor2/src/gui/welcome_window.hpp
T
coppro cf91f9c43b Update copryright date to 2010.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1438 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-01 23:33:25 +00:00

68 lines
2.1 KiB
C++

//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2010 Twan van Laarhoven and Sean Hunt |
//| 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&);
void draw(DC& dc);
void onOpenSet (wxCommandEvent&);
void onNewSet (wxCommandEvent&);
void onOpenLast (wxCommandEvent&);
void onCheckUpdates(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 wxImage& 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