view src/findbar.hh @ 1494:9225a90ad7dd

make Doctree a non-virtual class Doctree now is a proper class with it's own implementation. StyleEngine no longer needs to provide the Doctree interface itself. This hopefully make the code easier to understand and should also be a bit faster as no virtual methods are involved.
author Johannes Hofmann <>
date Thu, 07 Jan 2010 16:23:05 +0100
parents 4704ad910042
children 5dcb4241383f
line wrap: on
line source
#ifndef __FINDBAR_HH__
#define __FINDBAR_HH__

#include <fltk/xpmImage.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>

 * Searchbar to find text in page.
class Findbar : public fltk::Group {
   fltk::Button *clrb;
   fltk::HighlightButton *hide_btn, *next_btn, *prev_btn;
   fltk::CheckButton *check_btn;
   fltk::xpmImage *hideImg;
   fltk::Input *i;

   static void search_cb (fltk::Widget *, void *);
   static void searchBackwards_cb (fltk::Widget *, void *);
   static void search_cb2 (fltk::Widget *, void *);
   static void hide_cb (fltk::Widget *, void *);

   Findbar(int width, int height);
   int handle(int event);
   void show();
   void hide();

#endif // __FINDBAR_HH__