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