update drobilla's fascistic dir-locals.el to force emacs users into whitespace submis...
[ardour.git] / gtk2_ardour / startup.cc
index c3d699ec2f7f2c4ddefca4c5a0894a9df524af73..35021eea03af0806040ac3d633f99e252c645bc0 100644 (file)
@@ -108,6 +108,8 @@ Ardour will play NO role in monitoring"))
 
        bool need_audio_setup = !EngineControl::engine_running();
 
+        setup_alpha_page ();
+
        if (new_user) {
                /* "touch" the file */
                ofstream fout (been_here_before.to_string().c_str());
@@ -143,6 +145,41 @@ ArdourStartup::~ArdourStartup ()
 {
 }
 
+void
+ArdourStartup::setup_alpha_page ()
+{
+        VBox* vbox = manage (new VBox);
+        Label* label = manage (new Label);
+        label->set_markup (_("<b>Welcome to this ALPHA release of Ardour 3.0</b>\n\n\
+There are still many issues and bugs to be worked on,\n\
+as well as general workflow improvements, before this can be considered\n\
+release software. So, a few guidelines:\n\
+\n\
+1) Please do <b>NOT</b> use this software with the expectation that it is stable or reliable\n\
+   though it may be so, depending on your workflow.\n\
+2) Please see http://ardour.org/a3_features for a guide to new features.\n\
+3) <b>Please do NOT use the forums at ardour.org to report issues</b>.\n\
+4) Please <b>DO</b> use the bugtracker at http://tracker.ardour.org/ to report issues\n\
+   making sure to note the product version number as 3.0-alpha.\n\
+5) Please <b>DO</b> use the ardour-users mailing list to discuss ideas and pass on comments.\n\
+6) Please <b>DO</b> join us on IRC for real time discussions about ardour3. You\n\
+   can get there directly from Ardour via the Help->Chat menu option.\n\
+\n\
+Full information on all the above can be found on the support page at\n\
+\n\
+                http://ardour.org/support\n\
+"));
+
+        vbox->set_border_width (12);
+        vbox->pack_start (*label, false, false, 12);
+        vbox->show_all ();
+
+        append_page (*vbox);
+        set_page_type (*vbox, ASSISTANT_PAGE_CONTENT);
+        set_page_title (*vbox, _("This is an ALPHA RELEASE"));
+       set_page_complete (*vbox, true);
+}
+
 void
 ArdourStartup::set_new_only (bool yn)
 {
@@ -156,17 +193,18 @@ ArdourStartup::set_new_only (bool yn)
 }
 
 void
-ArdourStartup::set_load_template( string load_template )
+ArdourStartup::set_load_template (string load_template)
 {
-    use_template_button.set_active( false );
-    load_template_override = load_template;
+       use_template_button.set_active (false);
+       load_template_override = load_template;
 }
 
 bool
 ArdourStartup::use_session_template ()
 {
-       if (!load_template_override.empty())
+       if (!load_template_override.empty()) {
                return true;
+       }
 
        if (use_template_button.get_active()) {
                return template_chooser.get_active_row_number() > 0;
@@ -747,9 +785,9 @@ ArdourStartup::setup_new_session_page ()
                        use_session_as_template_button.show ();
                        session_template_chooser.show ();
 
-                       Gtk::FileFilter* template_filter = manage (new (Gtk::FileFilter));
-                       template_filter->add_pattern(X_("*.template"));
-                       session_template_chooser.set_filter (*template_filter);
+                       Gtk::FileFilter* session_filter = manage (new (Gtk::FileFilter));
+                       session_filter->add_pattern (X_("*.ardour"));
+                       session_template_chooser.set_filter (*session_filter);
                        session_template_chooser.set_title (_("Select template"));
 
                        vbox3->pack_start (*hbox4b, false, false);
@@ -939,7 +977,7 @@ ArdourStartup::setup_existing_session_page ()
                hbox->set_spacing (4);
                hbox->pack_start (*manage (new Label (_("Browse:"))), PACK_SHRINK);
                hbox->pack_start (existing_session_chooser);
-               session_existing_vbox.pack_start (*hbox);
+               session_existing_vbox.pack_start (*hbox, false, false);
                hbox->show_all ();
        }