TableCell{Bool,Enumeration}Editor:
- OptionPopUp-derived editors for their respective value types.
TableCellIntegerEditor:
- TextControl-derived editor for integer values that validates inputs
based on the target integer size and type.
Not actually used yet, but together with the previous changes, these lay
the groundwork for the remaining part of #9708.
27 lines
664 B
C++
27 lines
664 B
C++
/*
|
|
* Copyright 2015, Rene Gollent, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef TABLE_CELL_INTEGER_EDITOR_H
|
|
#define TABLE_CELL_INTEGER_EDITOR_H
|
|
|
|
#include <TextControl.h>
|
|
|
|
#include "IntegerFormatter.h"
|
|
#include "TableCellTextControlEditor.h"
|
|
|
|
|
|
class TableCellIntegerEditor : public TableCellTextControlEditor {
|
|
public:
|
|
TableCellIntegerEditor(::Value* initialValue,
|
|
ValueFormatter* formatter);
|
|
virtual ~TableCellIntegerEditor();
|
|
|
|
virtual bool ValidateInput() const;
|
|
|
|
virtual status_t GetValueForInput(::Value*& _output) const;
|
|
// returns reference
|
|
};
|
|
|
|
#endif // TABLE_CELL_INTEGER_EDITOR_H
|