2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef VARIABLE_EDIT_WINDOW_H
6 #define VARIABLE_EDIT_WINDOW_H
11 #include "TableCellValueEditor.h"
19 class VariableEditWindow
: public BWindow
,
20 private TableCellValueEditor::Listener
{
22 VariableEditWindow(Value
* initialValue
,
24 TableCellValueEditor
* editor
,
27 ~VariableEditWindow();
29 static VariableEditWindow
* Create(Value
* initialValue
,
31 TableCellValueEditor
* editor
,
32 BHandler
* closeTarget
);
36 virtual void MessageReceived(BMessage
* message
);
39 virtual bool QuitRequested();
41 // TableCellValueEditor::Listener
42 virtual void TableCellEditBeginning();
43 virtual void TableCellEditCancelled();
44 virtual void TableCellEditEnded(Value
* newValue
);
50 BButton
* fCancelButton
;
56 TableCellValueEditor
* fEditor
;
59 #endif // VARIABLE_EDIT_WINDOW_H