| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
#ifndef _DiffOpenWindow_h_ |
| 19 |
# define _DiffOpenWindow_h_ |
| 20 |
# include <FL/Fl.H> |
| 21 |
# include <FL/Fl_Double_Window.H> |
| 22 |
# include <FL/Fl_Button.H> |
| 23 |
# include <FL/Fl_Preferences.H> |
| 24 |
# include "DiffChooser.h" |
| 25 |
|
| 26 |
|
| 27 |
class DiffOpenWindow : public Fl_Double_Window |
| 28 |
{ |
| 29 |
DiffChooser dc1_, dc2_; |
| 30 |
Fl_Button compare_, |
| 31 |
cancel_; |
| 32 |
|
| 33 |
static void compare_cb(Fl_Button *b, DiffOpenWindow *dow); |
| 34 |
static void cancel_cb(Fl_Button *b, DiffOpenWindow *dow); |
| 35 |
static void dc_cb(DiffChooser *dc, DiffOpenWindow *dow); |
| 36 |
|
| 37 |
public: |
| 38 |
|
| 39 |
DiffOpenWindow(const char *v1 = (const char *)0, |
| 40 |
const char *v2 = (const char *)0); |
| 41 |
DiffChooser *dc1() { return (&dc1_); } |
| 42 |
DiffChooser *dc2() { return (&dc2_); } |
| 43 |
void resize(int X, int Y, int W, int H); |
| 44 |
void show(); |
| 45 |
}; |
| 46 |
|
| 47 |
|
| 48 |
#endif |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|