summaryrefslogtreecommitdiff
path: root/gtk2_ardour/template_dialog.cc
AgeCommit message (Collapse)Author
2020-04-13Fix typos in the GUI in preparation for translationsEdgar Aichinger
2020-04-05Fix #7971: Adjust paths of template archive entries exported on MacOSJohannes Mueller
... on Ardour5. On MacOS g_dir_make_tmp() does not return the canonical path. Thus, exported template archives end up with wrong entry paths. This has been fixed by e52bdc55ad for exporting templates. However, template archives that have been exported on Ardour5 are not affected by the fix. Therefor we need a workaround for the case we are importing legacy template archives from Ardour5.
2020-04-05Fix template export on MacOSRobin Gareus
By default Apple uses a private TMP folder. g_dir_make_tmp() returns `/var/folders/...` while the real absolute path is `/private/var/folders/...`. This caused a problem when the tmp-prefix is chopped off when building the archive.
2020-04-02Template descriptions no longer dirty when saved or changes discardedJohannes Mueller
2020-04-02Let the user also choose template archives from Ardour 5.xJohannes Mueller
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2019-01-02Add external drive references for most file-browsersRobin Gareus
This fixes an issue on MacOS/X to only show non-root volumes in the file-open dialog. They're just as valid for save-as, export, video files etc. In case of a 2nd internal disk, it is also a valid choice as default folder for new sessions.
2018-06-19Revert frame -> sample changes where it's a frame as in Gtk::FrameJohannes Mueller
2018-02-28Fix some GUI typos (thanks to IOhannes/debian for reporting)Robin Gareus
2017-10-18Update GUI, use filename-extensionsRobin Gareus
2017-09-22Fix issue with Template manager deleting templates on no-renameRobin Gareus
If old-name equals new-name, g_rename () will fail and cleanup will delete new-path (which is equal to old-path)
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-08-30Fix scope in 4c077010aRobin Gareus
2017-08-30Don't create empty description nodes.Robin Gareus
Other places e.g. Route::save_as_template(), Session::save_template() don't to that either.
2017-08-26Fix a compiler problem when building 'gtk2_ardour/template_dialog.cc' with MSVCJohn Emmas
When setting up the 'TemplatesImported' signal, these 2 calls appear in the c'tor for class TemplateDialog:- boost::bind (&RouteTemplateManager::init, route_tm) boost::bind (&SessionTemplateManager::init, session_tm) However - '&RouteTemplateManager::init' and '&SessionTemplateManager::init' are in fact the address of the same function. This seems to be causing a problem, either for boost::bind, or MSVC (or both). In earlier builds they were 2 separate functions. So let's put them back that way (since the current code actually crashes the compiler!!)
2017-08-24when connecting to sigc signals, use sigc methods, not boost::bindPaul Davis
2017-08-20Fix some GUI side XML node mem-leaksRobin Gareus
2017-08-20Strip trailing whitespace in template descriptionsJohannes Mueller
2017-08-20TemplateDialog: Lable the RESPONSE_OK button "Done" rather than "Ok"Johannes Mueller
Labeling it "Ok" would imply that by clicking it, descriptions would be saved without further interaction. If we did so, we would also need to add a cancel-button or handle simple closing of the dialog window appropriately.
2017-08-20TemplateDialog tweaksJohannes Mueller
* don't ask whether to save the description when renaming the template * sane behavior when a template is deleted
2017-08-20Clear and deactivate description editor widget when nothing is selectedJohannes Mueller
2017-08-20TemplateDialog: keep private things private and header files simpleJohannes Mueller
2017-08-20Ask user whether to save or discard unsaved template descriptionsJohannes Mueller
2017-08-20Remove the template description XMLNode before saving the templateJohannes Mueller
... to avoid that the new template description is concatenated to the old one.
2017-08-20Save template description at toplevel rather than in <Metadata/>Johannes Mueller
2017-08-20Make template descriptions editable in template managerJohannes Mueller
2017-08-14Session Metadata: add a Description field.Ben Loftis
* This is a multi-line text field. * If the session is a template, we might show this in the New Session dialog.
2017-07-20Rename the route in a route template when renaming the templateJohannes Mueller
2017-07-20Don't try to rename the route template state dir if it doesn't existJohannes Mueller
2017-07-15required #include for earlier gccPaul Davis
2017-07-15Force filename suffix and ask confirmation before overwriting ...Johannes Mueller
... existing files, when exporting template archives.
2017-07-15Only make the export button sensitive if there's something to exportJohannes Mueller
2017-07-15Inflate template archives rather in `.config/ardour5/` than in ...Johannes Mueller
`.config/ardour5/(templates|route_templates)`. We put as toplevel directory of the archive `templates` or `route_templates`. Then no matter if the user imports a session template or a route template archives, we always put them into the correct folder. As now the user can also import route templates while the SessionTemplateManager is visible and vice versa, we need to signal the successful import to the corresponding template manager. Therfor we introduce the signal TemplatesImported.
2017-07-12Switch to g_dir_make_tmp() to make the tmpdir.Johannes Mueller
2017-07-12First draft of import and export templatesJohannes Mueller
Don't use this now, except for testing as the archive format will change. TBD: * error handling * check template would be overwritten by import * dinstinguish between session and track templates
2017-07-12Some more error handlingJohannes Mueller
Try to undo the renaming of the template dir in case the writing of the new template file fails.
2017-07-12Remove template dirs using PBD::remove_directory()Johannes Mueller
This makes sure that all state directories of the template are erased properly.
2017-07-12Adjust template names inside template filesJohannes Mueller
This concernes: * LV2 states: LV2 states are stored in the template directories and their paths are stored int the template files using absolute paths. Therefore we have to adjust the template-dir property of every lv2 node referring to a state dir. * Names of route templates. The name of the route template is stored in the first child of the xml root node in the property `name`. This needs to be adjusted when renaming the template. By now we rely on that only lv2 states and the route template name need to be adjusted on renaming a template.
2017-07-12Also handle Route templatesJohannes Mueller
Following measures: * Split up into two classes * TemplateDialog: the general dialog * TemplateManager: A widget to rename and remove templates * Make TemplateManager abstract and derive a class for session templates and one for route templates. This is needed, as session templates and route templates are stored in a different way. Thus we need different methods to rename and remove them.
2017-07-12Some cosmeticsJohannes Mueller
2017-07-12First draft of a template management dialogJohannes Mueller
Goal is to a simple dialog that can rename and remove templates. This is helpful in order to keep the template list tidy. So far it works for session templates. Track templates tbd.