File: DiffOpenWindow.h

package info (click to toggle)
fldiff 1.1-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 536 kB
  • ctags: 224
  • sloc: cpp: 2,977; makefile: 124
file content (52 lines) | stat: -rw-r--r-- 1,495 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// "$Id: DiffOpenWindow.h 407 2006-11-13 18:54:02Z mike $"
//
// DiffOpenWindow widget definitions.
//
// Copyright 2005-2006 by Michael Sweet.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License v2 as published
// by the Free Software Foundation.
//
// 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.
//

#ifndef _DiffOpenWindow_h_
#  define _DiffOpenWindow_h_
#  include <FL/Fl.H>
#  include <FL/Fl_Double_Window.H>
#  include <FL/Fl_Button.H>
#  include <FL/Fl_Preferences.H>
#  include "DiffChooser.h"


class DiffOpenWindow : public Fl_Double_Window
{
  DiffChooser	dc1_, dc2_;		// Choosers
  Fl_Button	compare_,		// Open/Compare button
		cancel_;		// Cancel button

  static void	compare_cb(Fl_Button *b, DiffOpenWindow *dow);
  static void	cancel_cb(Fl_Button *b, DiffOpenWindow *dow);
  static void	dc_cb(DiffChooser *dc, DiffOpenWindow *dow);

  public:

		DiffOpenWindow(const char *v1 = (const char *)0,
		               const char *v2 = (const char *)0);
  DiffChooser	*dc1() { return (&dc1_); }
  DiffChooser	*dc2() { return (&dc2_); }
  void		resize(int X, int Y, int W, int H);
  void		show();
};


#endif // !_DiffOpenWindow_h_

//
// End of "$Id: DiffOpenWindow.h 407 2006-11-13 18:54:02Z mike $".
//