Ardour  9.0-pre0-582-g084a23a80d
application.h
Go to the documentation of this file.
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 <paul@linuxaudiosystems.com>
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; either
9  * version 2.1 of the License, or (at your option) any later version.
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 Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef __GTK_APPLICATION_MM_H__
22 #define __GTK_APPLICATION_MM_H__
23 
24 #include <sigc++/signal.h>
25 
26 #include "gtkmm2ext/visibility.h"
27 #include "gtkmm2ext/gtkapplication.h" // for GtkApplicationGroup typedef
28 
29 namespace Gtk {
30  class MenuItem;
31  class MenuShell;
32 }
33 
34 namespace Glib {
35  class ustring;
36 }
37 
38 namespace Gtkmm2ext {
39 
41 {
42 public:
43  static Application* instance();
45 
46  void ready ();
47  void hide ();
48  void cleanup ();
52 
53  sigc::signal<void,bool> ActivationChanged;
54  sigc::signal<void,const Glib::ustring&> ShouldLoad;
55  sigc::signal<void> ShouldQuit;
56 
57 private:
59 
61 };
62 
63 }
64 
65 #endif /* __GTK_APPLICATION_MM_H__ */
sigc::signal< void, bool > ActivationChanged
Definition: application.h:53
static Application * instance()
static Application * _instance
Definition: application.h:60
void set_menu_bar(Gtk::MenuShell &)
void add_app_menu_item(GtkApplicationMenuGroup *, Gtk::MenuItem *)
sigc::signal< void, const Glib::ustring & > ShouldLoad
Definition: application.h:54
GtkApplicationMenuGroup * add_app_menu_group()
sigc::signal< void > ShouldQuit
Definition: application.h:55
typedefG_BEGIN_DECLS struct _GtkApplicationMenuGroup GtkApplicationMenuGroup
#define LIBGTKMM2EXT_API
Definition: ardour_ui.h:188