openclonk/src/gui/C4StartupAboutDlg.h

63 lines
1.7 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
* Copyright (c) 2013, The OpenClonk Team and contributors
2009-05-08 13:28:41 +00:00
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2009-05-08 13:28:41 +00:00
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
2009-05-08 13:28:41 +00:00
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
2009-05-08 13:28:41 +00:00
*/
// About/credits screen
#ifndef INC_C4StartupAboutDlg
#define INC_C4StartupAboutDlg
#include "C4Startup.h"
// webcode show time
const int32_t C4AboutWebCodeShowTime = 25; // seconds
// startup dialog: About
class C4StartupAboutDlg : public C4StartupDlg, private C4ApplicationSec1Timer
{
public:
C4StartupAboutDlg(); // ctor
~C4StartupAboutDlg(); // dtor
2009-05-08 13:28:41 +00:00
private:
class C4KeyBinding *pKeyBack;
C4GUI::Label *pWebCodeLbl;
int32_t iWebCodeTimer;
2009-05-08 13:28:41 +00:00
protected:
virtual int32_t GetMarginTop() { return iDlgMarginY + C4GUI_FullscreenDlg_TitleHeight/2; } // less top margin
2009-05-08 13:28:41 +00:00
virtual void MouseInput(C4GUI::CMouse &rMouse, int32_t iButton, int32_t iX, int32_t iY, DWORD dwKeyParam); // input: back on any button
virtual bool OnEnter() { DoBack(); return true; }
virtual bool OnEscape() { DoBack(); return true; }
virtual void DrawElement(C4TargetFacet &cgo);
bool KeyBack() { DoBack(); return true; }
void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
#ifdef WITH_AUTOMATIC_UPDATE
void OnUpdateBtn(C4GUI::Control *btn);
#endif
2009-05-08 13:28:41 +00:00
public:
void OnSec1Timer();
2009-05-08 13:28:41 +00:00
void DoBack(); // back to main menu
2009-05-08 13:28:41 +00:00
//public:
// void RecreateDialog(bool fFade);
2009-05-08 13:28:41 +00:00
};
2009-05-08 13:28:41 +00:00
#endif // INC_C4StartupAboutDlg