mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
23 lines
640 B
C++
23 lines
640 B
C++
#ifndef CALCULATION_EXPRESSION_FIELD_H
|
|
#define CALCULATION_EXPRESSION_FIELD_H
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Calculation {
|
|
|
|
class ExpressionField : public ::ExpressionField {
|
|
public:
|
|
ExpressionField(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandler, TextFieldDelegate * textFieldDelegate, LayoutFieldDelegate * layoutFieldDelegate) :
|
|
::ExpressionField(parentResponder, inputEventHandler, textFieldDelegate, layoutFieldDelegate) {
|
|
setLayoutInsertionCursorEvent(Ion::Events::Up);
|
|
}
|
|
protected:
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
private:
|
|
bool fieldHasOnlyAMinus() const;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|