mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
associate label more closely with VST path button. the plugin tab needs a complete layout rethink, someday
This commit is contained in:
parent
ff80d66088
commit
f3a1ac21cb
3 changed files with 11 additions and 2 deletions
|
|
@ -1569,14 +1569,14 @@ public:
|
|||
_("<b>When enabled</b> new VST plugins are searched, tested and added to the cache index on application start. When disabled new plugins will only be available after triggering a 'Scan' manually"));
|
||||
|
||||
#ifdef LXVST_SUPPORT
|
||||
t->attach (*manage (left_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1);
|
||||
t->attach (*manage (right_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1);
|
||||
b = manage (new Button (_("Edit")));
|
||||
b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_lxvst_path_clicked));
|
||||
t->attach (*b, 1, 2, n, n+1, FILL); ++n;
|
||||
#endif
|
||||
|
||||
#ifdef WINDOWS_VST_SUPPORT
|
||||
t->attach (*manage (left_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1);
|
||||
t->attach (*manage (right_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1);
|
||||
b = manage (new Button (_("Edit")));
|
||||
b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_vst_path_clicked));
|
||||
t->attach (*b, 1, 2, n, n+1, FILL); ++n;
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ namespace Gtkmm2ext {
|
|||
LIBGTKMM2EXT_API void rounded_left_half_rectangle (cairo_t* cr, double x, double y, double w, double h, double r=10);
|
||||
|
||||
LIBGTKMM2EXT_API Gtk::Label* left_aligned_label (std::string const &);
|
||||
LIBGTKMM2EXT_API Gtk::Label* right_aligned_label (std::string const &);
|
||||
|
||||
LIBGTKMM2EXT_API void set_no_tooltip_whatsoever (Gtk::Widget &);
|
||||
LIBGTKMM2EXT_API void enable_tooltips ();
|
||||
|
|
|
|||
|
|
@ -818,6 +818,14 @@ Gtkmm2ext::left_aligned_label (string const & t)
|
|||
return l;
|
||||
}
|
||||
|
||||
Gtk::Label *
|
||||
Gtkmm2ext::right_aligned_label (string const & t)
|
||||
{
|
||||
Gtk::Label* l = new Gtk::Label (t);
|
||||
l->set_alignment (1, 0.5);
|
||||
return l;
|
||||
}
|
||||
|
||||
static bool
|
||||
make_null_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>& t)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue