Ardour  9.0-pre0-427-gd2a3450e2f
new_user_wizard.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
4  * Copyright (C) 2009-2016 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #ifndef __gtk2_ardour_startup_h__
23 #define __gtk2_ardour_startup_h__
24 
25 #include <string>
26 
27 #include <gtkmm/assistant.h>
28 #include <gtkmm/label.h>
29 #include <gtkmm/expander.h>
30 #include <gtkmm/box.h>
31 #include <gtkmm/radiobutton.h>
33 #include <gtkmm/comboboxtext.h>
34 
35 #include "ardour/utils.h"
36 
37 class EngineControl;
38 
40 {
41 public:
44 
45  static bool required ();
46 
47  /* It's not a dialog so we have to fake this to make it behave like a
48  * dialog. This allows the StartupFSM to treat everything similarly.
49  */
50 
51  sigc::signal1<void,int>& signal_response() { return _signal_response; }
52 
53 protected:
54  void on_show ();
55  void on_unmap ();
56  void pop_splash ();
57  void push_splash ();
58 
60 
61 private:
63  bool new_user;
64 
65  void on_apply ();
66  void on_cancel ();
68 
69  Glib::RefPtr<Gdk::Pixbuf> icon_pixbuf;
70 
73  Glib::RefPtr<Gdk::Pixbuf> splash_pixbuf;
74 
76 
77  /* Welcome */
79  void rescale_ui ();
80 
81  /* first page */
86 
87  /* final page */
89  void move_along_now ();
90 
91  /* always there */
92  Glib::RefPtr<Pango::Layout> layout;
93 
94 
95  sigc::signal1<void,int> _signal_response;
96 };
97 
98 #endif /* __gtk2_ardour_startup_h__ */
Glib::RefPtr< Pango::Layout > layout
void on_show()
This is a default handler for the signal signal_show().
void default_dir_changed()
void push_splash()
bool on_delete_event(GdkEventAny *)
This is a default handler for the signal signal_delete_event().
sigc::signal1< void, int > _signal_response
void on_apply()
This is a default handler for the signal signal_apply().
void setup_final_page()
Gtk::ComboBoxText ui_font_scale
void rescale_ui()
void move_along_now()
void setup_first_time_config_page()
void setup_new_user_page()
sigc::signal1< void, int > & signal_response()
void on_unmap()
This is a default handler for the signal signal_unmap().
Glib::RefPtr< Gdk::Pixbuf > splash_pixbuf
void setup_first_page()
static bool required()
Gtk::FileChooserButton new_folder_chooser
Glib::RefPtr< Gdk::Pixbuf > icon_pixbuf
Gtk::FileChooserButton * default_dir_chooser
void setup_prerelease_page()
void on_cancel()
This is a default handler for the signal signal_cancel().
void pop_splash()