1 // 2 // "$Id: FavoritesWindow.h 386 2006-03-04 14:15:27Z mike $" 3 // 4 // FavoritesWindow widget definitions. 5 // 6 // Copyright 2005 by Michael Sweet. 7 // 8 // This program is free software; you can redistribute it and/or modify 9 // it under the terms of the GNU General Public License v2 as published 10 // by the Free Software Foundation. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 18 #ifndef _FavoritesWindow_h_ 19 # define _FavoritesWindow_h_ 20 # include <FL/Fl.H> 21 # include <FL/Fl_Double_Window.H> 22 # include <FL/Fl_Return_Button.H> 23 # include <FL/Fl_File_Browser.H> 24 # include <FL/Fl_Preferences.H> 25 26 27 class FavoritesWindow : public Fl_Double_Window 28 { 29 Fl_File_Browser browser_; 30 Fl_Button up_; 31 Fl_Button delete_; 32 Fl_Button down_; 33 Fl_Return_Button ok_; 34 Fl_Button cancel_; 35 36 static void browser_cb(Fl_File_Browser *b, FavoritesWindow *fw); 37 static void cancel_cb(Fl_Button *b, FavoritesWindow *fw); 38 static void delete_cb(Fl_Button *b, FavoritesWindow *fw); 39 static void down_cb(Fl_Button *b, FavoritesWindow *fw); 40 void load(); 41 static void ok_cb(Fl_Return_Button *b, FavoritesWindow *fw); 42 void save(); 43 static void up_cb(Fl_Button *b, FavoritesWindow *fw); 44 45 public: 46 47 FavoritesWindow(); 48 void show(); 49 }; 50 51 52 #endif // !_FavoritesWindow_h_ 53 54 // 55 // End of "$Id: FavoritesWindow.h 386 2006-03-04 14:15:27Z mike $". 56 // 57