Files
MagicSetEditor2/src/gui/welcome_window.hpp
T
coppro 3ea0a4abd7 Made it so that update window and set window can't be open simultaneously (don't explode the set by deleting the style, say).
Made update window enforce dependencies
Added update button to welcome window (need icon still)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@756 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-25 02:02:53 +00:00

68 lines
2.1 KiB
C++

//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2007 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&);
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