blob: aacb57ee25c6043bea4fca30c53171f773ea5c88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
//
// Copyright 2006 Johannes Hofmann <Johannes.Hofmann@gmx.de>
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.
#ifndef FL_SEARCH_CHOOSER_H
#define FL_SEARCH_CHOOSER_H
#include <FL/Fl_Window.H>
#include <FL/Fl_Select_Browser.H>
#include <FL/Fl_Input.H>
class Fl_Search_Browser : public Fl_Select_Browser {
public:
Fl_Search_Browser(int X, int Y, int W, int H, const char *c):Fl_Select_Browser(X,Y,W,H,c){};
int find_prefix(const char *p);
private:
int find_prefix(const char *p, int s, int e);
};
class Fl_Search_Chooser : public Fl_Window {
private:
int visible_focus;
public:
Fl_Search_Browser *sb;
Fl_Search_Chooser(const char *title);
void close();
void add(const char *t, void *d);
void *data();
int handle(int event);
};
#endif
|