1*026596ddSRene Gollent /* 2*026596ddSRene Gollent * Copyright 2015, Rene Gollent, rene@gollent.com. 3*026596ddSRene Gollent * Distributed under the terms of the MIT License. 4*026596ddSRene Gollent */ 5*026596ddSRene Gollent #ifndef TABLE_CELL_INTEGER_EDITOR_H 6*026596ddSRene Gollent #define TABLE_CELL_INTEGER_EDITOR_H 7*026596ddSRene Gollent 8*026596ddSRene Gollent #include <TextControl.h> 9*026596ddSRene Gollent 10*026596ddSRene Gollent #include "IntegerFormatter.h" 11*026596ddSRene Gollent #include "TableCellTextControlEditor.h" 12*026596ddSRene Gollent 13*026596ddSRene Gollent 14*026596ddSRene Gollent class TableCellIntegerEditor : public TableCellTextControlEditor { 15*026596ddSRene Gollent public: 16*026596ddSRene Gollent TableCellIntegerEditor(::Value* initialValue, 17*026596ddSRene Gollent ValueFormatter* formatter); 18*026596ddSRene Gollent virtual ~TableCellIntegerEditor(); 19*026596ddSRene Gollent 20*026596ddSRene Gollent virtual bool ValidateInput() const; 21*026596ddSRene Gollent 22*026596ddSRene Gollent virtual status_t GetValueForInput(::Value*& _output) const; 23*026596ddSRene Gollent // returns reference 24*026596ddSRene Gollent }; 25*026596ddSRene Gollent 26*026596ddSRene Gollent #endif // TABLE_CELL_INTEGER_EDITOR_H 27