1/*
2 * Copyright 2003-2004 Waldemar Kornewald. All rights reserved.
3 * Copyright 2017 Haiku, Inc. All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
6#ifndef _TEXT_REQUEST_DIALOG__H
7#define _TEXT_REQUEST_DIALOG__H
8
9#include <Window.h>
10
11class BInvoker;
12class BTextView;
13class BTextControl;
14class BButton;
15
16
17class TextRequestDialog : public BWindow {
18	public:
19		TextRequestDialog(const char *title, const char *information,
20			const char *request, const char *text = NULL);
21		virtual ~TextRequestDialog();
22
23		virtual void MessageReceived(BMessage *message);
24		virtual bool QuitRequested();
25
26		status_t Go(BInvoker *invoker);
27
28	private:
29		void UpdateControls();
30
31	private:
32		BTextView *fTextView;
33			// displays information text
34		BButton *fOKButton;
35		BTextControl *fTextControl;
36		BInvoker *fInvoker;
37};
38
39
40#endif
41