view src/findbar.hh @ 2048:5060d415a85a

clickable menu items (even those introducing submenus) MUST have callbacks I clicked on the "Panel size" item itself instead of any of the options in its submenu, and: Segfault!
author corvid <>
date Thu, 26 May 2011 02:51:18 +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__