Commit graph

180 commits

Author SHA1 Message Date
Robin Gareus
19fc6e831b
Fix missing calls to SessionHandlePtr::session_going_away()
Explicit calls to set_session(0) will disconnect the
callback to session_going_away(). So don't do that.
2024-11-10 23:27:36 +01:00
Robin Gareus
74c4ca3e52
Reduce reliance on boost - the hard part
the rest from `tools/convert_boost.sh`.

* replace boost::function, boost::bind with std::function and std::bind.

This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
2024-10-19 03:47:21 +02:00
Robin Gareus
dad32d8b11
Clean up slider-controller includes 2024-05-14 23:41:51 +02:00
Paul Davis
fc86629daf sometimes concision with variable naming is of no help 2024-04-25 13:07:00 -06:00
Robin Gareus
6016c9624e Manage OptionEditor labels
Because those Widgets are added to managed frames (for search highlight)
the labels inside also need to be managed and not destroyed with the
Option (which happens first).

This fixes various GTK warnings at exit
```
gtk_widget_unparent: assertion 'GTK_IS_WIDGET (widget)' failed
```
2023-05-31 21:36:24 +02:00
Paul Davis
b35518e212 switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
Paul Davis
1333f39621 searchable prefs: fix behavior after find failure 2023-02-01 18:10:56 -07:00
Paul Davis
625c099fd0 remove debug output 2023-01-27 15:13:27 -07:00
Paul Davis
26c09e6de3 continued work on use of Metadata in various Configuration objects (GUI edition) 2023-01-27 15:13:27 -07:00
Paul Davis
220c319bf0 make preferences search case-insensitive 2023-01-23 09:25:40 -07:00
Paul Davis
0923d898d2 remove preference highlighting on focus out 2023-01-23 09:13:15 -07:00
Paul Davis
15434456d5 architecture and implementation for preferences searching
Metadata is only defined for a single region at this point, (much)
more to come.
2023-01-22 17:41:43 -07:00
Mads Kiilerich
728e463d01 AudioClock: make last_when public and use it instead of current_time
Having current_time as a public alias of the private last_when did not
add any clarity to the abstraction of last_time. A small step, but still
room for improvement.
2022-11-17 18:04:08 +01:00
Robin Gareus
1b7b3543e8
Remove thin abstraction, directly call get_pixel_size 2022-09-20 03:33:08 +02:00
Paul Davis
52f713b591 option editor: allow EntryOption to have a list of valid chars (not just invalid) 2022-04-16 18:02:11 -06:00
Mads Kiilerich
1390743d52
gtkmm: use remove_all() instead of deprecated Gtk::ComboBoxText::clear_items() 2022-04-08 21:11:06 +02:00
Mads Kiilerich
09c6e68ae8
gtkmm: use append() instead of deprecated Gtk::ComboBoxText::append_text() 2022-04-08 21:10:56 +02:00
Robin Gareus
34c8307a38
Fix DirectoryOption set filename
This properly updates the display if the preference changes.
Even with FILE_CHOOSER_ACTION_SELECT_FOLDER the API is
is get/set_filename -- set_current_folder() sets the parent folder.
2022-02-01 15:47:54 +01:00
Paul Davis
9d69fa3820 another day or two's work on timeline type conversion 2021-08-13 12:51:29 -06:00
Paul Davis
3f1e4ceaaa remove unused argument to OptionEditorContainer constructor 2021-04-26 10:48:53 -06:00
Robin Gareus
49f5df69a1
Reduce Prefs Dialog min-width
* Shorten long labels
  Those increase the x-offset for the data table column on the right.
* Shorten some long ComboBox texts
* Reduce min. slider controller width
* Tag some long labels and dropdowns that are currently the bottleneck
2021-02-24 21:37:16 +01:00
Robin Gareus
7a0263295b
Allow to add notes to buttons in the prefs dialog 2020-11-24 00:31:57 +01:00
Robin Gareus
4050ca5633
Update GPL boilerplate and (C)
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-08-03 15:53:15 +02:00
Paul Davis
5eba2c92ed width of sliders in the option editor is now a fixed text-relative width 2019-06-06 18:32:13 -06:00
Paul Davis
2a38833fca RcActionButton is now always its natural width 2019-06-06 18:32:13 -06:00
Paul Davis
c2200e74ab change OptionEditComponent to avoid ever expanding the RHS widget horizontally 2019-06-06 18:32:13 -06:00
Robin Gareus
6f01598297
Add external drive references for most file-browsers
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.
2019-01-02 17:37:36 +01:00
Robin Gareus
2dc3c8b365
Better version of 9ccc56e162, implicit signal disconnect 2018-12-08 23:39:50 +01:00
Robin Gareus
9ccc56e162
Fix CheckOption crash on session-reload
The ToggleAction has a lifetime of the UI, independent of the
CheckOption widget. The CheckOption needs to unsubscribe from the
signal_toggled() signal when it is deleted.

Also a CheckOption without a Action makes no sense. require _action
to be give at instantiation time.
2018-12-08 21:18:54 +01:00
Robin Gareus
474d68c051
NO-OP: whitespace and some guaranteed assertion removal 2018-12-08 20:36:03 +01:00
Ben Loftis
65bda27d42 Tweaks to Mixer and Monitor keybindings:
Add Mixer-specific view keybindings for list, vca, mon.  (thanks to: the_CLA)
Move monitor keybindings (mute, dim, mono) to be globally-accessible.

Implement new mixer-specific actions to show/hide monitor,vcas,mixbuses (the_CLA)
Move monitor funcs (mute,dim,mono) to globally-accessible actions.
Make a new Monitor group insted of using Transport group.
Allow use-monitor-section to be controlled by both menu and session-options dialog.
2018-12-07 12:57:26 -06:00
Paul Davis
db385c2e3c new transport slave/master implementation, gui edition 2018-09-18 19:06:04 -04:00
Paul Davis
30b087ab3d globally change all use of "frame" to refer to audio into "sample".
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-09-18 12:39:17 -04:00
Robin Gareus
f6e182b937 Move Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Robin Gareus
c1f47ae031 Prefs treeview borders 2016-12-30 18:44:33 +01:00
Robin Gareus
e122506c91 re-fine preferences dialog part ten of 27 (probably) 2016-12-30 18:29:15 +01:00
Robin Gareus
1d431bf6c4 Left align notes in Preferences. 2016-12-30 02:33:27 +01:00
Robin Gareus
f114a20aa9 Shrink some spinners 2016-12-30 00:12:25 +01:00
Robin Gareus
1d97a0fb3e Consolidate Preferences/OptionEditor 2016-12-29 23:06:15 +01:00
Robin Gareus
5860911eb2 Further preference-dialog re-layout work in progress.. 2016-12-28 22:19:37 +01:00
Robin Gareus
f2e00dfe07 Prefs Dialog: consistent headings, spacing, reduce width,.. 2016-12-28 22:19:37 +01:00
Robin Gareus
0869aa0f6c Add Locale config preferences and rearrange UI prefs 2016-12-28 13:38:49 +01:00
Robin Gareus
719250ab56 remove debug output 2016-12-20 12:34:40 +01:00
Robin Gareus
61c7af141d Clarify "frames" (video, timecode) vs "samples" (audio) 2016-12-08 12:45:44 +01:00
Paul Davis
b7e8d6f131 NOOP: whitespace 2016-08-29 06:38:48 -04:00
Paul Davis
95e3f7663e improved (more general) fix for preferences window visibility 2016-08-29 06:38:34 -04:00
Julien "_FrnchFrgg_" RIVAUD
c71cc6fe5b When showing a prefs pane, select the row in the tree
When programmatically showing a pane, instead of directly asking the
preferences notebook to show the pane, search for the asked path in the
panes tree, and select it. Since OptionEditor listens to selection
changes in its TreeView, the correct pane will be shown, with the added
benefit that the corresponding section in the tree will be highlighted
so that the user knows which pane is currently shown.
2016-07-26 08:02:40 +02:00
Julien "_FrnchFrgg_" RIVAUD
37dc4bd8a7 Factor out and simplify the search by components in options tree 2016-07-26 08:02:40 +02:00
Paul Davis
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Paul Davis
b40fe18775 fix up inheritance heirarchy and constructors so that the Session Properties dialog IS-A ArdourWindow
... and is thus subject to Ctrl-w to close it
2016-06-07 09:05:50 -04:00