2010-07-25 21:55:08 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009-2016 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2010-07-25 21:55:08 -04:00
|
|
|
|
2009-03-04 18:06:18 -05:00
|
|
|
#ifndef __gtk2_ardour_startup_h__
|
|
|
|
#define __gtk2_ardour_startup_h__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <gtkmm/assistant.h>
|
|
|
|
#include <gtkmm/label.h>
|
2013-09-20 16:05:54 -04:00
|
|
|
#include <gtkmm/expander.h>
|
2009-03-04 18:06:18 -05:00
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/radiobutton.h>
|
|
|
|
#include <gtkmm/filechooserbutton.h>
|
2019-10-06 14:56:34 -04:00
|
|
|
#include <gtkmm/comboboxtext.h>
|
2009-04-20 14:41:46 -04:00
|
|
|
|
2009-10-30 11:30:22 -04:00
|
|
|
#include "ardour/utils.h"
|
|
|
|
|
2009-04-20 14:41:46 -04:00
|
|
|
class EngineControl;
|
2009-03-04 18:06:18 -05:00
|
|
|
|
2019-10-08 23:29:47 -04:00
|
|
|
class NewUserWizard : public Gtk::Assistant
|
2017-07-01 15:11:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2019-10-08 23:29:47 -04:00
|
|
|
NewUserWizard ();
|
|
|
|
~NewUserWizard ();
|
2009-03-04 18:06:18 -05:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
static bool required ();
|
2009-10-19 14:12:20 -04:00
|
|
|
|
2019-10-08 13:39:16 -04:00
|
|
|
/* It's not a dialog so we have to fake this to make it behave like a
|
|
|
|
* dialog. This allows the StartupFSM to treat everything similarly.
|
|
|
|
*/
|
|
|
|
|
|
|
|
sigc::signal1<void,int>& signal_response() { return _signal_response; }
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2021-08-13 21:15:14 -04:00
|
|
|
protected:
|
|
|
|
void on_show ();
|
|
|
|
void on_unmap ();
|
|
|
|
void pop_splash ();
|
|
|
|
void push_splash ();
|
|
|
|
|
|
|
|
bool _splash_pushed;
|
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2009-04-20 14:41:46 -04:00
|
|
|
bool config_modified;
|
2009-04-21 21:35:31 -04:00
|
|
|
bool new_user;
|
2009-03-04 18:06:18 -05:00
|
|
|
|
|
|
|
void on_apply ();
|
|
|
|
void on_cancel ();
|
2009-12-01 08:23:27 -05:00
|
|
|
bool on_delete_event (GdkEventAny*);
|
2009-03-04 18:06:18 -05:00
|
|
|
|
|
|
|
Glib::RefPtr<Gdk::Pixbuf> icon_pixbuf;
|
|
|
|
|
2016-06-05 15:48:01 -04:00
|
|
|
void setup_prerelease_page ();
|
2009-03-04 18:06:18 -05:00
|
|
|
void setup_new_user_page ();
|
|
|
|
Glib::RefPtr<Gdk::Pixbuf> splash_pixbuf;
|
|
|
|
|
|
|
|
void setup_first_time_config_page ();
|
|
|
|
|
2019-10-06 14:56:34 -04:00
|
|
|
/* Welcome */
|
|
|
|
Gtk::ComboBoxText ui_font_scale;
|
|
|
|
void rescale_ui ();
|
|
|
|
void guess_default_ui_scale ();
|
|
|
|
|
2009-03-04 18:06:18 -05:00
|
|
|
/* first page */
|
2009-04-20 14:41:46 -04:00
|
|
|
Gtk::FileChooserButton* default_dir_chooser;
|
|
|
|
void default_dir_changed();
|
2009-03-04 18:06:18 -05:00
|
|
|
void setup_first_page ();
|
2013-09-23 14:41:52 -04:00
|
|
|
Gtk::FileChooserButton new_folder_chooser;
|
2009-03-04 18:06:18 -05:00
|
|
|
|
|
|
|
/* final page */
|
|
|
|
void setup_final_page ();
|
2022-06-30 19:18:15 -04:00
|
|
|
void move_along_now ();
|
2009-03-04 18:06:18 -05:00
|
|
|
|
|
|
|
/* always there */
|
|
|
|
Glib::RefPtr<Pango::Layout> layout;
|
|
|
|
|
2019-10-08 13:39:16 -04:00
|
|
|
|
|
|
|
sigc::signal1<void,int> _signal_response;
|
2009-03-04 18:06:18 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __gtk2_ardour_startup_h__ */
|