summaryrefslogtreecommitdiff
path: root/src/findbar.hh
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-22 18:31:16 +0200
committerjcid <devnull@localhost>2008-05-22 18:31:16 +0200
commit5bebce82075f689f7cf0d749ecd2498bd4c52ff7 (patch)
tree13ccae2711aa8dbd7d8bc97eb4d51290575e23fb /src/findbar.hh
parent9d97108cd3fe3a35bfcfabdf0839ab8d089dc483 (diff)
- Replaced the findtext dialog with an in-window widget!
Diffstat (limited to 'src/findbar.hh')
-rw-r--r--src/findbar.hh38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/findbar.hh b/src/findbar.hh
new file mode 100644
index 00000000..096025e5
--- /dev/null
+++ b/src/findbar.hh
@@ -0,0 +1,38 @@
+#ifndef __FINDBAR_HH__
+#define __FINDBAR_HH__
+
+//#include <fltk/Window.h>
+#include <fltk/Widget.h>
+#include <fltk/HighlightButton.h>
+#include <fltk/Button.h>
+#include <fltk/Input.h>
+#include <fltk/Group.h>
+#include <fltk/CheckButton.h>
+#include <fltk/ReturnButton.h>
+
+// simple declaration to avoid circular include
+class UI;
+
+using namespace fltk;
+
+/*
+ * Searchbar to find text in page.
+ */
+class Findbar : public Group {
+ HighlightButton *findb;
+ Button *clrb;
+ HighlightButton *hidebutton;
+
+public:
+ /* the callback functions need those */
+ UI *ui;
+ Input *i;
+ CheckButton *cb;
+
+ Findbar(int width, int height, UI *ui);
+ int handle(int event);
+ void show();
+ void hide();
+};
+
+#endif // __FINDBAR_HH__