Commit Graph

110 Commits

Author SHA1 Message Date
Robin Gareus dad32d8b11
Clean up slider-controller includes 2024-05-14 23:41:51 +02: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 26c09e6de3 continued work on use of Metadata in various Configuration objects (GUI edition) 2023-01-27 15:13:27 -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
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 3f1e4ceaaa remove unused argument to OptionEditorContainer constructor 2021-04-26 10:48:53 -06:00
Robin Gareus 6a7cc2a3e9
Work around over-sized ComboBoxes in the Prefs. dialog 2021-02-24 21:37:16 +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
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
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
Robin Gareus eb1e423b75 Remove <gtkmm.h> include from header files. 2017-07-17 21:06:04 +02:00
Robin Gareus f6e182b937 Move Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02: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
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 af9a9a9efd a better solution to the inheritance issue fixed in the previous commit 2016-06-07 09:22:57 -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
Paul Davis 0d849c1498 change OptionEditor to use a left-hand-side treeview to navigate the notebook 2016-03-06 18:27:23 -05:00
Paul Davis e268a9d2aa fix inheritance/class design to get both SessionOptionEditor and RCOptionEditor to work correctly 2016-02-22 15:31:25 -05:00
Paul Davis 02c8d6d648 the basics of tabbed 2016-02-22 15:31:21 -05:00
Robin Gareus bb7c857a69 add rc-config widget to display text-config/paths (read only) 2015-12-12 20:39:38 +01:00
Robin Gareus 9b0619bd80 add Action-Button for rc-config dialog 2015-12-08 21:52:50 +01:00
André Nusser d6219416e6 Let Entry of FaderOption react on ENTER and allow only numerical input.
This enables setting click gain and solo gain in the preferences using
the text field. -- fixes #6668
2015-11-04 23:23:12 +01:00
Robin Gareus 22b07e0233 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
Robin Gareus 7005529886 fix some gtk filechooser issues 2015-05-05 18:35:58 +02:00
John Emmas e243d328a4 Fix a couple of issues when displaying the 'Preferences' dialog on Windows:-
1) When changing the 'Default folder for new sessions' we weren't responding to the appropriate signal (so the change wasn't getting saved in our user's 'config' file). We now respond to the 'selection-changed' signal.

2) If the above path happened to contain a tilde character we weren't interpreting it to mean the user's home folder. I've copied across a function called 'poor_mans_glob()' which Ardour uses elsewhere for dealing with this situation in other file dialogs.

Once we confirm that issue #2 is now working for all platforms, I'd suggest moving 'poor_mans_glob()' into libpbd. At the moment we have at least 3 definitions of it (all identical) scattered around in various places.
2015-03-09 15:57:15 +00:00
David Robillard 408090adce Add MIDI readahead to options editor. 2015-03-05 18:48:33 -05:00
Paul Davis d854c5d93c move ARDOUR::Configuration and ARDOUR::ConfigVariable into libpbd 2014-12-22 19:48:30 -05:00
Paul Davis f6e88ead01 move theme manager into preferences window 2014-12-15 12:32:41 -05:00
Robin Gareus 538a569d0b add a special bool option that prevents redrawing 2014-09-02 16:16:36 +02:00
Robin Gareus 37a656b7b8 add a generic Option Editor Component for stateless widgets 2014-06-29 16:11:46 +02:00
Robin Gareus 7658183a84 accept text-entry-change w/o enter and add filter_text option 2014-06-26 19:13:15 +02:00
Paul Davis a2404382e9 expose Gtk::HScale member of OptionEditor::HSliderOption 2014-06-25 12:11:43 -04:00
John Emmas d614dc1e18 Deliberately specify 'Gtk::manage' where necessary (avoids creating ambiguities when we #include this header file elsewhere) 2013-09-26 11:47:17 +01:00
John Emmas a88f38cf10 'gtk2_ardour (msvc)' - Some changes needed before anything at all will compile
For the most part, the compilation problems are caused by lines such as:-

      WM::Proxy<ThemeManager> theme_manager;

Before MSVC will compile the above it needs to know that the specified object type contains an appropriate (i.e. publicly available) default c'tor. Therefore the corresponding header file needs to get #included, rather than just declaring that type to be a class (whilst all classes have a default c'tor, it needn't necessarily be public). The remaining changes are mostly minor.

This commit should be tested ASAP to make sure it doesn't upset the other compilers.
2013-09-26 10:58:07 +01:00
Robin Gareus b84e1a50a3 fix HSlider Option 2013-07-10 15:27:11 +02:00
Robin Gareus 8427faf1fb proper peak-indicator threshold config widget 2013-07-10 15:27:11 +02:00
Paul Davis af21d80650 allow markup to be used in BoolOption items in an option editor
git-svn-id: svn://localhost/ardour2/branches/3.0@13976 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-23 18:34:55 +00:00
Paul Davis b1029a3caf goodbye pixmaps and pixbufs (no longer) used by Gtkmm2ext::PixFader
git-svn-id: svn://localhost/ardour2/branches/3.0@13827 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-10 15:25:11 +00:00
Robin Gareus e1581242ca implement TC offset for slave&generator.
Many related changes that require atomic update, mostly
because ClockOption slots changed:

  * change offset config format to std:string (backwards compat - reads 0)
  * make Timecode offset independent from fps
  * sample_to_timecode() handle negative sample-num
  * audio-clock fix entry and edit of negative numbers
  * option editor:
    - remove old global internal offset
    - add slave & generator TC entry
    - still needs UI cleanup, tooltops, maybe sep. tab..
  * LTC & MTC slave& generator:
    - cache offset
    - subscribe to parameter changes

git-svn-id: svn://localhost/ardour2/branches/3.0@13485 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-13 20:29:28 +00:00
Paul Davis b8b8384a26 add support for using - as prefix keys to enter a negative value in an audio clock. so far only used for session timecode offset option clock
git-svn-id: svn://localhost/ardour2/branches/3.0@13443 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-11 22:20:40 +00:00