Ardour  9.0-pre0-582-g084a23a80d
gtk2_ardour/splash.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009 David Robillard <d@drobilla.net>
3  * Copyright (C) 2009-2013 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program 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
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #pragma once
22 
23 #include <set>
24 
25 #include <gtkmm/window.h>
26 #include <gtkmm/drawingarea.h>
27 #include <gtkmm/box.h>
28 #include <gtkmm/label.h>
29 #include <gdkmm/pixbuf.h>
30 
31 #include "pbd/signals.h"
32 
33 class ARDOUR_UI;
34 
35 class Splash : public Gtk::Window
36 {
37 public:
38  ~Splash ();
39 
40  static Splash* instance();
41  static void drop();
42  static bool exists ();
43 
44  void display ();
47 
50  void on_realize ();
52  void message (const std::string& msg);
53  void hide ();
54 
55 private:
56  Splash ();
57  static Splash* the_splash;
58 
59  Glib::RefPtr<Gdk::Pixbuf> pixbuf;
61  Glib::RefPtr<Pango::Layout> layout;
62 
63  void pop_front ();
64  std::set<Gtk::Window*> _window_stack;
65 
66  void boot_message (std::string);
68 
69  sigc::connection idle_connection;
70  volatile bool expose_done;
73 };
74 
static Splash * the_splash
void pop_front()
void pop_back_for(Gtk::Window &)
PBD::ScopedConnection msg_connection
void boot_message(std::string)
bool expose(GdkEventExpose *)
bool expose_is_the_one
bool on_button_release_event(GdkEventButton *)
This is a default handler for the signal signal_button_release_event().
std::set< Gtk::Window * > _window_stack
volatile bool expose_done
void hide()
Glib::RefPtr< Gdk::Pixbuf > pixbuf
void pop_front_for(Gtk::Window &)
static void drop()
sigc::connection idle_connection
Gtk::DrawingArea darea
void on_realize()
This is a default handler for the signal signal_realize().
void message(const std::string &msg)
bool idle_after_expose()
Glib::RefPtr< Pango::Layout > layout
static bool exists()
static Splash * instance()
bool on_map_event(GdkEventAny *)
This is a default handler for the signal signal_map_event().
void display()