2008-01-18 22:49:52 -05:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2008 Paul Davis
|
2008-01-18 22:49:52 -05:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ardour_gtk_splash_h__
|
|
|
|
#define __ardour_gtk_splash_h__
|
|
|
|
|
|
|
|
#include <gtkmm/window.h>
|
2008-01-19 00:06:33 -05:00
|
|
|
#include <gtkmm/drawingarea.h>
|
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/label.h>
|
2008-01-18 22:49:52 -05:00
|
|
|
#include <gdkmm/pixbuf.h>
|
|
|
|
|
2009-12-19 15:26:31 -05:00
|
|
|
#include "pbd/signals.h"
|
|
|
|
|
2008-01-18 22:49:52 -05:00
|
|
|
class ARDOUR_UI;
|
|
|
|
|
|
|
|
class Splash : public Gtk::Window
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Splash ();
|
|
|
|
~Splash () {}
|
|
|
|
|
2008-02-02 12:22:04 -05:00
|
|
|
static Splash* instance() { return the_splash; }
|
|
|
|
|
|
|
|
void pop_back ();
|
|
|
|
|
2008-01-19 00:06:33 -05:00
|
|
|
bool expose (GdkEventExpose*);
|
2008-01-18 22:49:52 -05:00
|
|
|
bool on_button_release_event (GdkEventButton*);
|
2008-01-19 00:06:33 -05:00
|
|
|
void on_realize ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-01-19 00:06:33 -05:00
|
|
|
void message (const std::string& msg);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-01-18 22:49:52 -05:00
|
|
|
private:
|
2008-02-02 12:22:04 -05:00
|
|
|
static Splash* the_splash;
|
|
|
|
|
2008-01-18 22:49:52 -05:00
|
|
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
2008-01-19 00:06:33 -05:00
|
|
|
Gtk::DrawingArea darea;
|
|
|
|
Glib::RefPtr<Pango::Layout> layout;
|
2008-02-16 17:43:18 -05:00
|
|
|
|
|
|
|
void boot_message (std::string);
|
2009-12-19 15:26:31 -05:00
|
|
|
PBD::ScopedConnection msg_connection;
|
2009-10-14 12:10:01 -04:00
|
|
|
};
|
2008-01-18 22:49:52 -05:00
|
|
|
|
|
|
|
#endif /* __ardour_gtk_splash_h__ */
|