| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 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 |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|