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