xref: /haiku/src/tests/add-ons/index_server/fulltext_search/SearchWindow.h (revision 922e7ba1f3228e6f28db69b0ded8f86eb32dea17)
1 /*
2  * Copyright 2009 - 2010 Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Ankur Sethi (get.me.ankur@gmail.com)
7  *		Clemens Zeidler (haiku@clemens-zeidler.de)
8  */
9 #ifndef _SEARCH_WINDOW_H
10 #define _SEARCH_WINDOW_H
11 
12 #include <Button.h>
13 #include <ListView.h>
14 #include <ScrollView.h>
15 #include <TextControl.h>
16 #include <Window.h>
17 
18 
19 class SearchWindow : public BWindow {
20 public:
21 								SearchWindow(BRect frame);
22 
23 			void				MessageReceived(BMessage *message);
24 
25 private:
26 			void				_Search();
27 			void				_LaunchFile(BMessage *message);
28 
29 			// Window controls.
30 			BButton*			fSearchButton;
31 			BTextControl*		fSearchField;
32 			BListView*			fSearchResults;
33 			BScrollView*		fScrollView;
34 } ;
35 
36 #endif /* _SEARCH_WINDOW_H_ */
37