diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-04 23:06:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-04 23:06:18 +0000 |
commit | 922e79c94ad0fa6407bbc87e3a862c5c8eea2ee7 (patch) | |
tree | be38d0384f8590dfcc191636ddaefd9b6bcf7fd4 /gtk2_ardour/ardour_ui.cc | |
parent | 3bea6df989b5ce59df9a9982370ed4e97173b0df (diff) |
new startup assistant/wizard; unfinished; can potentially interfere with your normal session startup. no comments other than aesthetics, please (which are not ideal at present); a few fixes to waf-based scripts
git-svn-id: svn://localhost/ardour2/branches/3.0@4729 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 4c5284849b..0c44a7829e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -94,6 +94,7 @@ typedef uint64_t microseconds_t; #include "session_metadata_dialog.h" #include "gain_meter.h" #include "route_time_axis.h" +#include "startup.h" #include "i18n.h" @@ -176,11 +177,7 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[]) about = 0; splash = 0; - - if (ARDOUR_COMMAND_LINE::session_name.length()) { - /* only show this if we're not going to post the new session dialog */ - show_splash (); - } + _startup = 0; if (theArdourUI == 0) { theArdourUI = this; @@ -280,6 +277,17 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[]) platform_setup (); } +void +ARDOUR_UI::run_startup () +{ + if (_startup == 0) { + _startup = new ArdourStartup (); + } + + _startup->present (); + main().run(); +} + int ARDOUR_UI::create_engine () { @@ -1652,13 +1660,6 @@ ARDOUR_UI::map_transport_state () } void -ARDOUR_UI::GlobalClickBox::printer (char buf[32], Adjustment &adj, void *arg) -{ - snprintf (buf, sizeof(buf), "%s", ((GlobalClickBox *) arg)->strings[ - (int) adj.get_value()].c_str()); -} - -void ARDOUR_UI::engine_stopped () { ENSURE_GUI_THREAD (mem_fun(*this, &ARDOUR_UI::engine_stopped)); @@ -2225,8 +2226,8 @@ ARDOUR_UI::end_loading_messages () void ARDOUR_UI::loading_message (const std::string& msg) { - show_splash (); - splash->message (msg); + // show_splash (); + // splash->message (msg); flush_pending (); } |