mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-13 04:42:12 +03:00
64 lines
1.6 KiB
C++
64 lines
1.6 KiB
C++
#ifndef ECODE_STATUSAPPOUTPUTCONTROLLER_HPP
|
|
#define ECODE_STATUSAPPOUTPUTCONTROLLER_HPP
|
|
|
|
#include "projectbuild.hpp"
|
|
#include "statusbuildoutputcontroller.hpp"
|
|
#include "uistatusbar.hpp"
|
|
#include <eepp/system/luapattern.hpp>
|
|
#include <eepp/ui/tools/uicodeeditorsplitter.hpp>
|
|
#include <eepp/ui/uicodeeditor.hpp>
|
|
#include <eepp/ui/uirelativelayout.hpp>
|
|
#include <eepp/ui/uiscenenode.hpp>
|
|
#include <eepp/ui/uisplitter.hpp>
|
|
#include <eepp/ui/uitableview.hpp>
|
|
|
|
using namespace EE;
|
|
using namespace EE::UI;
|
|
using namespace EE::UI::Tools;
|
|
|
|
namespace ecode {
|
|
|
|
class StatusAppOutputController : public StatusBarElement {
|
|
public:
|
|
StatusAppOutputController( UISplitter* mainSplitter, UISceneNode* uiSceneNode,
|
|
PluginContextProvider* pluginContext );
|
|
|
|
virtual ~StatusAppOutputController() {};
|
|
|
|
void initNewOutput( const ProjectBuildOutputParser& outputParser, bool fromBuildPanel = true );
|
|
|
|
void run( const ProjectBuildCommand& runData, const ProjectBuildOutputParser& outputParser );
|
|
|
|
void insertBuffer( const std::string& buffer );
|
|
|
|
UIWidget* getWidget();
|
|
|
|
UIWidget* createWidget();
|
|
|
|
UICodeEditor* getContainer();
|
|
|
|
UIPushButton* getRunButton();
|
|
|
|
UIPushButton* getBuildAndRunButton();
|
|
|
|
void updateRunButton();
|
|
|
|
protected:
|
|
UILinearLayout* mContainer{ nullptr };
|
|
UICodeEditor* mAppOutput{ nullptr };
|
|
std::vector<PatternHolder> mPatternHolder;
|
|
UIPushButton* mClearButton{ nullptr };
|
|
UIPushButton* mRunButton{ nullptr };
|
|
UIPushButton* mStopButton{ nullptr };
|
|
UIPushButton* mFindButton{ nullptr };
|
|
UIPushButton* mConfigureButton{ nullptr };
|
|
|
|
bool mScrollLocked{ true };
|
|
|
|
void createContainer();
|
|
};
|
|
|
|
} // namespace ecode
|
|
|
|
#endif // ECODE_StatusAppOutputController_HPP
|