#ifndef SPRINGLOBBY_HEADERGUARD_GRADIENTPANEL_H
#define SPRINGLOBBY_HEADERGUARD_GRADIENTPANEL_H

/////////////////////////////////////////////////////////////////////////////
// Name:        wxGradientPanel.h
// Purpose:
// Author:      Volodymir (T-Rex) Tryapichko
// Modified by:
// Created:     01/08/2008 20:25:42
// RCS-ID:
// Copyright:   Volodymir (T-Rex) Tryapichko, 2008
// Licence:
/////////////////////////////////////////////////////////////////////////////

/*!
* Includes
*/

////@begin includes
////@end includes

/*!
* Forward declarations
*/

////@begin forward declarations
class wxGradientPanel;
////@end forward declarations

/*!
* Control identifiers
*/

////@begin control identifiers
#define ID_WXGRADIENTBUTTON 10003
#define SYMBOL_WXGRADIENTBUTTON_STYLE wxSIMPLE_BORDER|wxFULL_REPAINT_ON_RESIZE
#define SYMBOL_WXGRADIENTBUTTON_IDNAME ID_WXGRADIENTBUTTON
#define SYMBOL_WXGRADIENTBUTTON_SIZE wxSize(100, 100)
#define SYMBOL_WXGRADIENTBUTTON_POSITION wxDefaultPosition
////@end control identifiers

/*!
* wxGradientPanel class declaration
*/
#include <wx/panel.h>
class wxGradientPanel: public wxPanel
{
		DECLARE_DYNAMIC_CLASS( wxGradientPanel )
		DECLARE_EVENT_TABLE()

	public:
/// Constructors
		wxGradientPanel();
		wxGradientPanel( wxWindow* parent,
		                  wxWindowID id = ID_WXGRADIENTBUTTON,
		                  const wxString & label = wxEmptyString,
		                  const wxPoint& pos = wxDefaultPosition,
		                  const wxSize& size = wxSize( 100, 100 ),
		                  long style = wxSIMPLE_BORDER );

/// Creation
		bool Create( wxWindow* parent,
		             wxWindowID id = ID_WXGRADIENTBUTTON,
		             const wxString & label = wxEmptyString,
		             const wxPoint& pos = wxDefaultPosition,
		             const wxSize& size = wxSize( 100, 100 ),
		             long style = wxSIMPLE_BORDER );

/// Destructor
		~wxGradientPanel();

/// Initialises member variables
		void Init();

/// Creates the controls and sizers
		void CreateControls();

////@begin wxGradientPanel event handler declarations

/// wxEVT_SIZE event handler for ID_WXGRADIENTBUTTON
		void OnSize( wxSizeEvent& event );

/// wxEVT_PAINT event handler for ID_WXGRADIENTBUTTON
		void OnPaint( wxPaintEvent& event );

/// wxEVT_ERASE_BACKGROUND event handler for ID_WXGRADIENTBUTTON
		void OnEraseBackground( wxEraseEvent& event );

////@end wxGradientPanel event handler declarations

////@begin wxGradientPanel member function declarations

		wxColour GetGradientTopStartColour() const {
			return m_GradientTopStartColour ;
		}
		void SetGradientTopStartColour( wxColour value ) {
			m_GradientTopStartColour = value ;
		}

		wxColour GetGradientTopEndColour() const {
			return m_GradientTopEndColour ;
		}
		void SetGradientTopEndColour( wxColour value ) {
			m_GradientTopEndColour = value ;
		}

		wxColour GetGradientBottomStartColour() const {
			return m_GradientBottomStartColour ;
		}
		void SetGradientBottomStartColour( wxColour value ) {
			m_GradientBottomStartColour = value ;
		}

		wxColour GetGradientBottomEndColour() const {
			return m_GradientBottomEndColour ;
		}
		void SetGradientBottomEndColour( wxColour value ) {
			m_GradientBottomEndColour = value ;
		}

		wxColour GetPressedColourTop() const {
			return m_PressedColourTop ;
		}
		void SetPressedColourTop( wxColour value ) {
			m_PressedColourTop = value ;
		}

		wxColour GetPressedColourBottom() const {
			return m_PressedColourBottom ;
		}
		void SetPressedColourBottom( wxColour value ) {
			m_PressedColourBottom = value ;
		}

/// Retrieves bitmap resources
		wxBitmap GetBitmapResource( const wxString& name );

/// Retrieves icon resources
		wxIcon GetIconResource( const wxString& name );
////@end wxGradientPanel member function declarations

/// Should we show tooltips?
		static bool ShowToolTips();

////@begin wxGradientPanel member variables
		wxColour m_GradientTopStartColour;
		wxColour m_GradientTopEndColour;
		wxColour m_GradientBottomStartColour;
		wxColour m_GradientBottomEndColour;
		wxColour m_PressedColourTop;
		wxColour m_PressedColourBottom;
////@end wxGradientPanel member variables
};


#endif // SPRINGLOBBY_HEADERGUARD_GRADIENTPANEL_H

