1*edf74e6cSRene Gollent /* 2*edf74e6cSRene Gollent * Copyright 2014, Rene Gollent, rene@gollent.com. 3*edf74e6cSRene Gollent * Distributed under the terms of the MIT License. 4*edf74e6cSRene Gollent */ 5*edf74e6cSRene Gollent #ifndef EXPRESSION_PROMPT_WINDOW_H 6*edf74e6cSRene Gollent #define EXPRESSION_PROMPT_WINDOW_H 7*edf74e6cSRene Gollent 8*edf74e6cSRene Gollent 9*edf74e6cSRene Gollent #include <Window.h> 10*edf74e6cSRene Gollent 11*edf74e6cSRene Gollent 12*edf74e6cSRene Gollent class BButton; 13*edf74e6cSRene Gollent class BTextControl; 14*edf74e6cSRene Gollent 15*edf74e6cSRene Gollent 16*edf74e6cSRene Gollent class ExpressionPromptWindow : public BWindow 17*edf74e6cSRene Gollent { 18*edf74e6cSRene Gollent public: 19*edf74e6cSRene Gollent ExpressionPromptWindow(BHandler* addTarget, 20d6a334faSRene Gollent BHandler* closeTarget); 21*edf74e6cSRene Gollent 22*edf74e6cSRene Gollent ~ExpressionPromptWindow(); 23*edf74e6cSRene Gollent 24*edf74e6cSRene Gollent static ExpressionPromptWindow* Create(BHandler* addTarget, 25d6a334faSRene Gollent BHandler* closeTarget); 26*edf74e6cSRene Gollent // throws 27*edf74e6cSRene Gollent 28*edf74e6cSRene Gollent 29*edf74e6cSRene Gollent virtual void MessageReceived(BMessage* message); 30*edf74e6cSRene Gollent 31*edf74e6cSRene Gollent virtual void Show(); 32*edf74e6cSRene Gollent virtual bool QuitRequested(); 33*edf74e6cSRene Gollent 34*edf74e6cSRene Gollent private: 35*edf74e6cSRene Gollent void _Init(); 36*edf74e6cSRene Gollent 37*edf74e6cSRene Gollent private: 38*edf74e6cSRene Gollent BTextControl* fExpressionInput; 39*edf74e6cSRene Gollent BButton* fCancelButton; 40*edf74e6cSRene Gollent BButton* fAddButton; 41*edf74e6cSRene Gollent BHandler* fAddTarget; 42*edf74e6cSRene Gollent BHandler* fCloseTarget; 43*edf74e6cSRene Gollent }; 44*edf74e6cSRene Gollent 45*edf74e6cSRene Gollent #endif // EXPRESSION_PROMPT_WINDOW_H 46