2 * Copyright 2012-2014, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef WATCH_PROMPT_WINDOW_H
6 #define WATCH_PROMPT_WINDOW_H
11 #include "ExpressionInfo.h"
12 #include "types/Types.h"
20 class UserInterfaceListener
;
23 class WatchPromptWindow
: public BWindow
, private ExpressionInfo::Listener
26 WatchPromptWindow(Architecture
* architecture
,
27 target_addr_t address
, uint32 type
,
29 UserInterfaceListener
* listener
);
33 static WatchPromptWindow
* Create(Architecture
* architecture
,
34 target_addr_t address
, uint32 type
,
36 UserInterfaceListener
* listener
);
40 virtual void MessageReceived(BMessage
* message
);
44 // ExpressionInfo::Listener
45 virtual void ExpressionEvaluated(ExpressionInfo
* info
,
46 status_t result
, ExpressionResult
* value
);
53 target_addr_t fInitialAddress
;
56 Architecture
* fArchitecture
;
57 target_addr_t fRequestedAddress
;
58 int32 fRequestedLength
;
59 BTextControl
* fAddressInput
;
60 BTextControl
* fLengthInput
;
61 ExpressionInfo
* fAddressExpressionInfo
;
62 ExpressionInfo
* fLengthExpressionInfo
;
63 BMenuField
* fTypeField
;
64 UserInterfaceListener
* fListener
;
65 BButton
* fWatchButton
;
66 BButton
* fCancelButton
;
67 SourceLanguage
* fLanguage
;
70 #endif // WATCH_PROMPT_WINDOW_H