xref: /haiku/src/apps/webpositive/ConsoleWindow.h (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
1 /*
2  * Copyright 2014-2023 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Zhuowei Zhang
7  *		Humdinger
8  */
9 #ifndef CONSOLE_WINDOW_H
10 #define CONSOLE_WINDOW_H
11 
12 
13 #include <String.h>
14 #include <Window.h>
15 
16 
17 class BListView;
18 class BButton;
19 
20 
21 class ConsoleWindow : public BWindow {
22 public:
23 								ConsoleWindow(BRect frame);
24 	virtual	void				MessageReceived(BMessage* message);
25 	virtual	bool				QuitRequested();
26 
27 private:
28 			void				_CopyToClipboard();
29 
30 private:
31 			BListView*			fMessagesListView;
32 			BButton* 			fClearMessagesButton;
33 			BButton* 			fCopyMessagesButton;
34 			BString				fPreviousText;
35 			int32				fRepeatCounter;
36 };
37 
38 
39 #endif // CONSOLE_WINDOW_H
40