Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_05 / synfig-studio / src / gtkmm / about.h
1 /*! ========================================================================
2 ** Synfig
3 ** Template Header File
4 ** $Id: about.h,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $
5 **
6 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
7 **
8 **      This package is free software; you can redistribute it and/or
9 **      modify it under the terms of the GNU General Public License as
10 **      published by the Free Software Foundation; either version 2 of
11 **      the License, or (at your option) any later version.
12 **
13 **      This package is distributed in the hope that it will be useful,
14 **      but WITHOUT ANY WARRANTY; without even the implied warranty of
15 **      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 **      General Public License for more details.
17 **
18 ** === N O T E S ===========================================================
19 **
20 ** ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_GTKMM_ABOUT_H
25 #define __SYNFIG_GTKMM_ABOUT_H
26
27 /* === H E A D E R S ======================================================= */
28
29 //#include <gtk/gtk.h>
30 #include <gtkmm/window.h>
31 #include <gtkmm/tooltips.h>
32 #include <gtkmm/label.h>
33 #include <gtkmm/button.h>
34 #include <gtkmm/progressbar.h>
35
36 /* === M A C R O S ========================================================= */
37
38 /* === T Y P E D E F S ===================================================== */
39
40 /* === C L A S S E S & S T R U C T S ======================================= */
41
42 namespace synfig { class ProgressCallback; };
43
44 namespace studio {
45
46 class AboutProgress;
47         
48 class About : public Gtk::Window
49 {
50         friend class AboutProgress;
51         
52         AboutProgress *cb;
53         
54         Gtk::Tooltips _tooltips;
55
56         Gtk::Label *tasklabel;
57         Gtk::ProgressBar *progressbar;
58         Gtk::Button *CloseButton;
59
60         void close();
61
62         bool can_self_destruct;
63         
64 public:
65         
66         synfig::ProgressCallback *get_callback();       
67
68         void set_can_self_destruct(bool x);
69
70         About();
71         ~About();
72 };
73
74 }
75
76 /* === E N D =============================================================== */
77
78 #endif