Commit Graph

38 Commits

Author SHA1 Message Date
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 9ea1e5bdee move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI) 2022-08-10 21:11:52 -06:00
Robin Gareus b6907cffba
LuaDialog: only hide border if scrollbar is n/a 2022-06-03 01:52:02 +02:00
Robin Gareus 64f8f6c31a
Hide the border of the Lua dialog scrollbar frame
This results in much cleaner look/feel, which was apparently the
motivation for 817fccb3e5.
2022-06-02 22:32:26 +02:00
Robin Gareus 5db59b9fd6
Update scroll-window policy of Lua dialog windows
Better version of 817fccb3e5, the visibility should not depend
on the number of items in the dialog, but its requested height
vs screen height.

The main use-case is to not show the scroll-bar if the dialog has only
a few rows. Then again if the scrollbar is visible, the dialog
should not shrink below a reasonable min. height.
2022-06-02 22:04:23 +02:00
Robin Gareus 2cef35247c
Revert "Lua Dialogs: only add a scroller if we have 16+ items in the dialog"
This reverts commit 817fccb3e5.
2022-06-02 22:04:23 +02:00
Ben Loftis 817fccb3e5 Lua Dialogs: only add a scroller if we have 16+ items in the dialog 2022-06-01 08:53:50 -05:00
Mads Kiilerich 17fafc376b
gtkmm: use ALIGN_END instead of deprecated Gtk::AlignmentEnum::ALIGN_RIGHT 2022-04-08 21:11:06 +02:00
Mads Kiilerich 2aa72891f3
gtkmm: use ALIGN_START instead of deprecated Gtk::AlignmentEnum::ALIGN_LEFT 2022-04-08 21:11:06 +02:00
Mads Kiilerich a86aa31747
gtkmm: use get_visible() instead of deprecated Gtk::Widget::is_visible() 2022-04-08 20:20:10 +02:00
Robin Gareus e4bdb99f60
Do not unconditionally show splash screen 2021-07-07 01:02:13 +02:00
Robin Gareus 8237add6d2
Keep track of splash visibility behind dialogs
This fixes various issues, esp on macOS and Windows where
the window is only hidden, not re-stacked:

* plugin scan dialog hides the splash, but
  the plugin-manager emits BootMessage
  (this worked mostly because gtk event loop didn't
  have time to catch up)

* More than one dialog can pop back/front the splash,
  e.g. scripted session-setup or error messages when
  loading recent sessions.
2021-06-23 17:55:01 +02:00
Robin Gareus 6c9b03e2a3
Lua Dialog, fill window with single widget
This is particularly helpful with a file-selector (e.g. mixer
ccreenshot Script)
2020-04-25 05:33:16 +02:00
Paul Davis f8b16e9e83 remove a few cerr outputs and change a couple to use cout, since they are not errors 2020-03-25 11:39:32 -06:00
Robin Gareus 2d680f3061
Move LuaProgressDialog into "LuaDialog" namespace
Define class in header file
Match C++ and Lua binding namespaces (for documentation)
2019-09-02 15:44:43 +02:00
Robin Gareus 7251efce83
Add Lua-Dialog support for FileChooserWidget (save file) 2019-08-12 01:37:35 +02: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 157d923cdd
ALlow Markup for LuaDialog.Message 2019-02-20 17:22:36 +01: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 77d1982d1d Add scrollbar to LuaDialog 2018-08-02 15:17:38 +02:00
Robin Gareus 5006c731c7 Lua-dialog: allow to set folder for file to load/save.
When a non-existent file-path is given, GTK falls back to show the
containing folder and automatically goes up to parent folders until
the root.

This removes the explicit file/folder check and delegates the
behavior to GTK, allowing to set a folder for a non-existent file.
2018-08-02 00:53:18 +02:00
John Emmas c79d0c1a9b NO-OP: Modify a #include (purely for consistency) 2018-06-04 10:43:19 +01:00
Nikolaus Gullotta 29aba34d1c moving singen and noisegen from mixbus repo to ardour + change singen display and add noisegen display 2018-06-01 09:55:41 -05:00
Nikolaus Gullotta 112a1ab1c4 add Gtk::ColorButton widget to LuaDialog and add ability to change multiple route colors at a time 2018-06-01 09:55:25 -05:00
Robin Gareus b6124f0189 Sort LuaDialog dropdown entries by key-name 2017-12-05 01:55:38 +01:00
Robin Gareus 91a2cf7901 Backwards compatible LuaDialog layout (+new colspan option) 2017-08-19 03:12:28 +02:00
Robin Gareus e3475f8ae8 NO-OP: whitespace & style 2017-08-19 01:39:43 +02:00
Robin Gareus a07465ceaa NO-OP: whitespace 2017-08-19 01:29:27 +02:00
Ben Loftis d7cd457bdf Templates: basic support for columns in the script dialog. 2017-08-18 16:40:14 -05:00
Robin Gareus bfee5a65d2 Fix typo in 952b8e1d74 2017-08-18 01:12:05 +02:00
Robin Gareus 952b8e1d74 Initialize an uninitialized variable 2017-08-18 00:18:59 +02:00
Robin Gareus e4cb6e1894 Lua Message dialog, push splash screen if needed. 2017-08-10 02:26:01 +02:00
Robin Gareus f6e182b937 Move Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Robin Gareus 5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Thomas Brand 63ea7b6516 NO-OP whitespace (updated GH PR #357) 2017-07-01 19:28:26 +02:00
Robin Gareus ed5761a8b4 Add a file-chooser LuaDialog Widget 2017-06-08 13:22:00 +02:00
Robin Gareus 35aa4f692a Lua Dialog refinements:
* Add Heading Widget
* Swap OK/Cancel Buttons
* Update table layout (spacing + alignment)
* Some whitespace tweaks
2017-04-25 16:45:18 +02:00
Robin Gareus f5995661d0 Lua: Action Script Dialog & MessageBox 2017-04-25 14:01:22 +02:00