view src/findbar.hh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 3d4b69d3eee7
line wrap: on
line source
#ifndef __FINDBAR_HH__
#define __FINDBAR_HH__

#include <FL/Fl_Pixmap.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Check_Button.H>

 * Searchbar to find text in page.
class Findbar : public Fl_Group {
   Fl_Button *clrb;
   Fl_Button *hide_btn, *next_btn, *prev_btn;
   Fl_Check_Button *check_btn;
   Fl_Pixmap *hideImg;
   Fl_Input *i;

   static void search_cb (Fl_Widget *, void *);
   static void searchBackwards_cb (Fl_Widget *, void *);
   static void hide_cb (Fl_Widget *, void *);

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

#endif // __FINDBAR_HH__