mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
67 lines
1.5 KiB
C++
67 lines
1.5 KiB
C++
/*
|
|
* GDevelop IDE
|
|
* Copyright 2008-2015 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
|
|
* This project is released under the GNU General Public License.
|
|
*/
|
|
|
|
#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
|
|
|