/* PawfalYesNo Fltk Dialog * Copyleft (C) 2001 Dan Bethell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef PAWFALYESNO_H #define PAWFALYESNO_H #include #include #include #include #include #include #include #include #include #include static char * tv_xpm[] = { "30 30 4 1", " c None", ". c #000000", "+ c #6E6E6E", "@ c #FFFFFF", "..............................", "..............................", "..............................", "..............................", "..............................", ".....++++++++++++++++++++.....", ".....+++++++++@@+++++++++.....", ".....+++++++++@@+++++++++.....", ".....+++++++++@@+++++++++.....", ".....+++++++++@@+++++++++.....", ".....+++++++++@@+++++++++.....", ".....+++++++++@@+++++++++.....", ".....++++++++++++++++++++.....", ".....+++++++++@@+++++++++.....", ".....++++++++++++++++++++.....", "..............................", "..............................", "..............................", "..............................", "..............................", " .......... ", " .......... ", " .......... ", " .......... ", " .......... ", "..............................", "..............................", "..............................", "..............................", ".............................."}; class PawfalYesNo : public Fl_Window { int handle(int); void draw(); static void ok_cb(Fl_Button *, void *); static void cancel_cb(Fl_Button *, void *); public: PawfalYesNo(int, int, const char *); ~PawfalYesNo(); bool go(); bool getResult() { return result; } private: Fl_Pixmap *logo; Fl_Box *lbl; Fl_Button *yes, *no; bool keyhit; bool result; }; bool Pawfal_YesNo(const char *a,...); #endif