NO-OP whitespace
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / application.h
1 /* GTK+ Integration with platform-specific application-wide features
2  * such as the OS X menubar and application delegate concepts.
3  *
4  * Copyright (C) 2009 Paul Davis
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; version 2.1
9  * of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GTK_APPLICATION_MM_H__
23 #define __GTK_APPLICATION_MM_H__
24
25 #include <sigc++/signal.h>
26
27 #include "gtkmm2ext/visibility.h"
28 #include "gtkmm2ext/gtkapplication.h" // for GtkApplicationGroup typedef
29
30 namespace Gtk {
31         class MenuItem;
32         class MenuShell;
33 }
34
35 namespace Glib {
36         class ustring;
37 }
38
39 namespace Gtkmm2ext {
40
41 class LIBGTKMM2EXT_API Application
42 {
43 public:
44     static Application* instance();
45     ~Application ();
46
47     void                     ready ();
48     void                     hide ();
49     void                     cleanup ();
50     void                     set_menu_bar (Gtk::MenuShell&);
51     GtkApplicationMenuGroup* add_app_menu_group ();
52     void                     add_app_menu_item (GtkApplicationMenuGroup*, Gtk::MenuItem*);
53
54     sigc::signal<void,bool>                 ActivationChanged;
55     sigc::signal<void,const Glib::ustring&> ShouldLoad;
56     sigc::signal<void>                      ShouldQuit;
57
58 private:
59     Application ();
60
61     static Application* _instance;
62 };
63
64 }
65
66 #endif /* __GTK_APPLICATION_MM_H__ */