2021-11-18 15:19:54 +00:00
|
|
|
#ifndef OPENMW_LUAUI_TEXTEDIT
|
|
|
|
#define OPENMW_LUAUI_TEXTEDIT
|
|
|
|
|
|
|
|
#include <MyGUI_EditBox.h>
|
|
|
|
|
|
|
|
#include "widget.hpp"
|
|
|
|
|
|
|
|
namespace LuaUi
|
|
|
|
{
|
2022-05-14 10:27:30 +00:00
|
|
|
class LuaTextEdit : public MyGUI::Widget, public WidgetExtension
|
2021-11-18 15:19:54 +00:00
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED(LuaTextEdit)
|
|
|
|
|
2024-01-10 21:05:33 +00:00
|
|
|
public:
|
|
|
|
bool isTextInput() override { return mEditBox->getEditStatic(); }
|
|
|
|
|
2022-02-06 20:22:38 +00:00
|
|
|
protected:
|
|
|
|
void initialize() override;
|
|
|
|
void deinitialize() override;
|
|
|
|
void updateProperties() override;
|
2022-05-14 10:27:30 +00:00
|
|
|
void updateCoord() override;
|
|
|
|
void updateChildren() override;
|
2024-03-28 19:01:50 +00:00
|
|
|
MyGUI::IntSize calculateSize() const override;
|
2022-02-06 20:22:38 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void textChange(MyGUI::EditBox*);
|
2022-05-14 10:27:30 +00:00
|
|
|
|
2022-06-06 21:52:55 +00:00
|
|
|
MyGUI::EditBox* mEditBox = nullptr;
|
2022-07-02 20:03:30 +00:00
|
|
|
bool mMultiline{ false };
|
|
|
|
bool mAutoSize{ false };
|
2021-11-18 15:19:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OPENMW_LUAUI_TEXTEDIT
|