Commit graph

28 commits

Author SHA1 Message Date
Robin Gareus
50e96a2135
Do not allow ctrl chars in session names (2/2)
The GUI applies this to new sessions only, old sessions that
may now have illegal names can still be loaded.
2020-06-09 20:30:55 +02:00
Paul Davis
c573cc9153 use a better Gtk stock item to describe "skip renaming an unnamed session" 2020-05-18 16:04:41 -06:00
Paul Davis
ef206d8066 Save-As for unnamed sessions becomes the same as Save 2020-04-19 10:38:44 -06:00
Paul Davis
4b40243f2b fix two poorly-formed uses of Glib::DateTime 2020-03-25 10:45:00 -06:00
Paul Davis
97340a5c89 when saving an unnamed session, rename it (GUI edition)
Note that this is done at the GUI level, might need to double check if there are
other paths into a "save" that should be covered. Control surfaces use the action, but
Lua comes to mind
2020-03-24 14:10:39 -06:00
Paul Davis
5d4ad01b58 introduce the idea of an "unnamed" session (GUI edition) 2020-03-24 14:10:39 -06:00
Paul Davis
e83d1f7368 warn user about destructive/tape tracks 2020-03-17 16:31:50 -06:00
Robin Gareus
7696380cfd
Replace strftime() with Glib::DateTime() -- GUI
This is mainly for windows compatibility "%F" is not supported.
An alternative would be to s/%F/%Y-%m-%d/ to produce the ISO date.
2020-03-08 23:32:12 +01:00
Robin Gareus
003e68edd2
Display recent session-load errors in the GUI
Dumping errors to stderr only is not very useful. Particularly not
on Windows and MacOS.
Even though a user may not be able to address the issue, this
can lead to better reports vs just printing "corrupt state".
2020-02-28 07:32:17 +01:00
Robin Gareus
8710a2d943
Dialog default to cancel (#7915)
There are various ways to cancel a dialog. Only checking for
RESPONSE_CANCEL is not sufficient. e.g. Esc causes a delete-event.

 * Gtk::RESPONSE_CLOSE
 * Gtk::RESPONSE_REJECT
 * Gtk::RESPONSE_DELETE_EVENT
 * Gtk::RESPONSE_CANCEL
 * Gtk::RESPONSE_NO

Among others this fixes "Clicking session > open,
then hitting ESC opens the currently selected folder and session"
2020-02-27 23:27:42 +01:00
Robin Gareus
60a2406056
GUI Dialog to inform the user about missing files
So far this is only used for MIDI, missing audio files are
already handled by asking a user to locate them.
The same approach doesn't work for MIDI, since there cannot be
externally referenced (embedded) .mid files (since MIDI is destructive).
2020-02-18 01:29:35 +01:00
Robin Gareus
d72b44b5a4
Fix scripted/meta session templates 2020-01-30 18:09:01 +01:00
Paul Davis
cbfbe65128 disconnect from audio/MIDI setup dialog signal response when done with it 2020-01-25 10:27:46 -07:00
Nikolaus Gullotta
db03860924 Fix sessions not building according to template
AFAICT, this was broken by either 5beeca2 or 242774e
2020-01-21 09:05:22 -06:00
Robin Gareus
abc6f24d10
Stop engine for new session creation
This restores Ardour5 behavior and works around a missing "OK"
button in the engine-dialog.
2020-01-10 18:11:42 +01:00
Robin Gareus
afe52fbff5
Special case JACK, sample-rate cannot be changed for new sessions 2020-01-10 02:14:30 +01:00
Robin Gareus
242774eada
Allow to configure sample-rate of new sessions
When creating a session from the Editor (after Session > Close,
or directly via Session > New) the engine-dialog needs to be displayed
to allow configuring the sample-rate.

This also consolidates scripted session setup: meta_session_setup()
is now called from build_session(), instead of all callers.
2020-01-09 23:53:07 +01:00
Robin Gareus
2b55d6dce3
First batch of MessageDialog replacements 2019-12-14 23:44:01 +01:00
Paul Davis
ff7fe6d4d6 when loading a session into a running instance, if the SR doesn't match the engine, stop engine and show dialog 2019-12-11 14:53:00 -07:00
Paul Davis
c3d68338ad fix logic error with contents of session dialog shown after "Close" 2019-11-01 15:48:16 -06:00
Paul Davis
91fd927a80 fix appearance of SessionDialog presented after Session > New
Needed to be told "require_new" to make sure the correct display is shown
2019-10-29 18:09:55 -06:00
Paul Davis
54acf6af6a enforce singleton nature of Splash a little more rigorously, and slightly rationalize it's use 2019-10-11 14:29:55 -06:00
Paul Davis
448e4de8d9 use const argument when calling ::build_session() 2019-10-10 16:52:00 -06:00
Paul Davis
5109abcc50 changes to ARDOUR_UI to reflect new startupFSM and non-modal SessionDialog handling 2019-10-10 16:52:00 -06:00
Robin Gareus
e8981602f4
Fix builds:
i18n needs to be included last, and ui_session uses localtime_r
2019-09-26 06:09:05 +02:00
Robin Gareus
1f4b409d7e
Mixbus backports -- part one of many
Changes that are not explicitly #ifdef'ed should go to ardour-git.
2019-09-24 22:10:20 +02:00
John Emmas
4f91cd7e98 Include a header file needed for Windows VST support 2019-09-24 10:17:32 +01:00
Paul Davis
5beeca2e95 split apart ardour_ui.cc into a series of distinct source modules.
Should be a 100% no-op - no code was altered, just moved
2019-09-23 14:49:06 -06:00