1 // 2 // "$Id: DiffOpenWindow.h 407 2006-11-13 18:54:02Z mike $" 3 // 4 // DiffOpenWindow widget definitions. 5 // 6 // Copyright 2005-2006 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 _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_; // Choosers 30 Fl_Button compare_, // Open/Compare button 31 cancel_; // Cancel button 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); dc1()41 DiffChooser *dc1() { return (&dc1_); } dc2()42 DiffChooser *dc2() { return (&dc2_); } 43 void resize(int X, int Y, int W, int H); 44 void show(); 45 }; 46 47 48 #endif // !_DiffOpenWindow_h_ 49 50 // 51 // End of "$Id: DiffOpenWindow.h 407 2006-11-13 18:54:02Z mike $". 52 // 53