Files
GDevelop/IDE/BuildProgressPnl.h
2016-01-14 19:46:56 +01:00

67 lines
1.5 KiB
C++

/*
* GDevelop IDE
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
* This project is released under the GNU General Public License version 3.
*/
#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>
namespace gd { class Project; }
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