Files
haiku-beta6/src/apps/debugger/user_interface/gui/value/TableCellIntegerEditor.h
T
Rene Gollent 026596dd1d Debugger: Add table cell editors for various value types.
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.
2015-06-13 16:57:19 -04:00

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