Files
GDevelop/IDE/BuildProgressPnl.h
T
Florian 1880eb34fa Adapted to changes in GDCore. ( Notably, InitialVariablesDialog was removed and is now available in GDCore thanks to the ChooseVariableDialog class ).
Compilation is not using PCH anymore.
Now display duration of a compilation.


git-svn-id: svn://localhost@707 8062f311-0dae-4547-b526-b8ab9ac864a5
2012-05-13 15:25:21 +00:00

66 lines
1.4 KiB
C++

/** \file
* Game Develop
* 2008-2012 Florian Rival (Florian.Rival@gmail.com)
*/
#ifndef BUILDPROGRESSPNL_H
#define BUILDPROGRESSPNL_H
//(*Headers(BuildProgressPnl)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/panel.h>
#include <wx/gauge.h>
//*)
#include <wx/thread.h>
#include <wx/stopwatch.h>
class Game;
class SceneCanvas;
class BuildProgressPnl: public wxPanel
{
public:
BuildProgressPnl(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
virtual ~BuildProgressPnl();
//(*Declarations(BuildProgressPnl)
wxTextCtrl* tasksLogEdit;
wxStaticText* statusTxt;
wxGauge* progressGauge;
//*)
protected:
//(*Identifiers(BuildProgressPnl)
static const long ID_STATICTEXT1;
static const long ID_GAUGE1;
static const long ID_TEXTCTRL1;
//*)
private:
//(*Handlers(BuildProgressPnl)
void OntasksLogEditText(wxCommandEvent& event);
//*)
/**
* Add text to log. Prevent duplicates.
*/
void AppendText(wxString text);
/**
* Called thanks to Event of type CodeCompiler::refreshEventType sent ( typically ) by CodeCompiler.
*/
void OnMustRefresh(wxCommandEvent&);
wxString lastTextAdded; ///< Used to prevent duplicates
wxStopWatch compilationTimer;
bool clearOnNextTextAdding;
DECLARE_EVENT_TABLE()
};
#endif