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>
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.
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.
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.
21 #ifndef __ardour_gtk_splash_h__
22 #define __ardour_gtk_splash_h__
24 #include <gtkmm/window.h>
25 #include <gtkmm/drawingarea.h>
26 #include <gtkmm/box.h>
27 #include <gtkmm/label.h>
28 #include <gdkmm/pixbuf.h>
30 #include "pbd/signals.h"
34 class Splash : public Gtk::Window
40 static Splash* instance() { return the_splash; }
43 void pop_back_for (Gtk::Window&);
46 bool expose (GdkEventExpose*);
47 bool on_button_release_event (GdkEventButton*);
49 bool on_map_event (GdkEventAny*);
50 void message (const std::string& msg);
54 static Splash* the_splash;
56 Glib::RefPtr<Gdk::Pixbuf> pixbuf;
57 Gtk::DrawingArea darea;
58 Glib::RefPtr<Pango::Layout> layout;
60 void boot_message (std::string);
61 PBD::ScopedConnection msg_connection;
63 sigc::connection idle_connection;
64 volatile bool expose_done;
65 bool expose_is_the_one;
66 bool idle_after_expose ();
69 #endif /* __ardour_gtk_splash_h__ */