mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 03:54:34 -04:00
1880eb34fa
Compilation is not using PCH anymore. Now display duration of a compilation. git-svn-id: svn://localhost@707 8062f311-0dae-4547-b526-b8ab9ac864a5
66 lines
1.4 KiB
C++
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
|