mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 19:16:30 +03:00
ecode: Updated icons ttf. Completed implementation of Build Output, now it will list Issues found when compiling in the Issues section inside Build. Tentative fix in LSPDocumentClient when parsing semantic highlight. Improved Features Health GUI.
77 lines
2.3 KiB
C++
77 lines
2.3 KiB
C++
#ifndef ECODE_WIDGETCOMMANDEXECUTER_HPP
|
|
#define ECODE_WIDGETCOMMANDEXECUTER_HPP
|
|
|
|
#include <eepp/ee.hpp>
|
|
|
|
namespace ecode {
|
|
|
|
class UISearchBar : public UILinearLayout, public WidgetCommandExecuter {
|
|
public:
|
|
static UISearchBar* New() { return eeNew( UISearchBar, () ); }
|
|
|
|
UISearchBar() :
|
|
UILinearLayout( "searchbar", UIOrientation::Horizontal ),
|
|
WidgetCommandExecuter( getUISceneNode()->getWindow()->getInput() ) {}
|
|
|
|
virtual Uint32 onKeyDown( const KeyEvent& event ) {
|
|
return WidgetCommandExecuter::onKeyDown( event );
|
|
}
|
|
};
|
|
|
|
class UILocateBar : public UILinearLayout, public WidgetCommandExecuter {
|
|
public:
|
|
static UILocateBar* New() { return eeNew( UILocateBar, () ); }
|
|
UILocateBar() :
|
|
UILinearLayout( "locatebar", UIOrientation::Horizontal ),
|
|
WidgetCommandExecuter( getUISceneNode()->getWindow()->getInput() ) {}
|
|
|
|
virtual Uint32 onKeyDown( const KeyEvent& event ) {
|
|
return WidgetCommandExecuter::onKeyDown( event );
|
|
}
|
|
};
|
|
|
|
class UIGlobalSearchBar : public UILinearLayout, public WidgetCommandExecuter {
|
|
public:
|
|
static UIGlobalSearchBar* New() { return eeNew( UIGlobalSearchBar, () ); }
|
|
|
|
UIGlobalSearchBar() :
|
|
UILinearLayout( "globalsearchbar", UIOrientation::Vertical ),
|
|
WidgetCommandExecuter( getUISceneNode()->getWindow()->getInput() ) {}
|
|
|
|
virtual Uint32 onKeyDown( const KeyEvent& event ) {
|
|
return WidgetCommandExecuter::onKeyDown( event );
|
|
}
|
|
};
|
|
|
|
class UIMainLayout : public UIRelativeLayout, public WidgetCommandExecuter {
|
|
public:
|
|
static UIMainLayout* New() { return eeNew( UIMainLayout, () ); }
|
|
|
|
UIMainLayout() :
|
|
UIRelativeLayout( "mainlayout" ),
|
|
WidgetCommandExecuter( getUISceneNode()->getWindow()->getInput() ) {}
|
|
|
|
virtual Uint32 onKeyDown( const KeyEvent& event ) {
|
|
return WidgetCommandExecuter::onKeyDown( event );
|
|
}
|
|
};
|
|
|
|
class UIRelativeLayoutCommandExecuter : public UIRelativeLayout, public WidgetCommandExecuter {
|
|
public:
|
|
static UIRelativeLayoutCommandExecuter* New() {
|
|
return eeNew( UIRelativeLayoutCommandExecuter, () );
|
|
}
|
|
|
|
UIRelativeLayoutCommandExecuter() :
|
|
UIRelativeLayout( "rellayce" ),
|
|
WidgetCommandExecuter( getUISceneNode()->getWindow()->getInput() ) {}
|
|
|
|
virtual Uint32 onKeyDown( const KeyEvent& event ) {
|
|
return WidgetCommandExecuter::onKeyDown( event );
|
|
}
|
|
};
|
|
|
|
} // namespace ecode
|
|
|
|
#endif // ECODE_WIDGETCOMMANDEXECUTER_HPP
|