1/* 2 * Copyright 2012, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef WATCH_PROMPT_WINDOW_H 6#define WATCH_PROMPT_WINDOW_H 7 8 9#include <Window.h> 10 11#include "types/Types.h" 12 13 14class Architecture; 15class BTextControl; 16class Watchpoint; 17class BMenuField; 18class UserInterfaceListener; 19 20 21class WatchPromptWindow : public BWindow 22{ 23public: 24 WatchPromptWindow(Architecture* architecture, 25 target_addr_t address, uint32 type, 26 int32 length, 27 UserInterfaceListener* listener); 28 29 ~WatchPromptWindow(); 30 31 static WatchPromptWindow* Create(Architecture* architecture, 32 target_addr_t address, uint32 type, 33 int32 length, 34 UserInterfaceListener* listener); 35 // throws 36 37 38 virtual void MessageReceived(BMessage* message); 39 40 virtual void Show(); 41 42private: 43 void _Init(); 44 45 46private: 47 target_addr_t fInitialAddress; 48 uint32 fInitialType; 49 int32 fInitialLength; 50 Architecture* fArchitecture; 51 BTextControl* fAddressInput; 52 BTextControl* fLengthInput; 53 BMenuField* fTypeField; 54 UserInterfaceListener* fListener; 55 BButton* fWatchButton; 56 BButton* fCancelButton; 57}; 58 59#endif // WATCH_PROMPT_WINDOW_H 60