btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / debugger / user_interface / gui / utility_windows / VariableEditWindow.h
blob987c552f4d75dcf658d2f325229d5c2120602dc8
1 /*
2 * Copyright 2015, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef VARIABLE_EDIT_WINDOW_H
6 #define VARIABLE_EDIT_WINDOW_H
9 #include <Window.h>
11 #include "TableCellValueEditor.h"
14 class BButton;
15 class Value;
16 class ValueNode;
19 class VariableEditWindow : public BWindow,
20 private TableCellValueEditor::Listener {
21 public:
22 VariableEditWindow(Value* initialValue,
23 ValueNode* node,
24 TableCellValueEditor* editor,
25 BHandler* target);
27 ~VariableEditWindow();
29 static VariableEditWindow* Create(Value* initialValue,
30 ValueNode* node,
31 TableCellValueEditor* editor,
32 BHandler* closeTarget);
33 // throws
36 virtual void MessageReceived(BMessage* message);
38 virtual void Show();
39 virtual bool QuitRequested();
41 // TableCellValueEditor::Listener
42 virtual void TableCellEditBeginning();
43 virtual void TableCellEditCancelled();
44 virtual void TableCellEditEnded(Value* newValue);
46 private:
47 void _Init();
49 private:
50 BButton* fCancelButton;
51 BButton* fSaveButton;
52 BHandler* fTarget;
53 ValueNode* fNode;
54 Value* fInitialValue;
55 Value* fNewValue;
56 TableCellValueEditor* fEditor;
59 #endif // VARIABLE_EDIT_WINDOW_H