mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Clean up slider-controller includes
This commit is contained in:
parent
3c524098b4
commit
dad32d8b11
9 changed files with 27 additions and 15 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
#include "gtkmm2ext/utils.h"
|
#include "gtkmm2ext/utils.h"
|
||||||
#include "gtkmm2ext/gtk_ui.h"
|
#include "gtkmm2ext/gtk_ui.h"
|
||||||
|
|
||||||
|
#include "widgets/slider_controller.h"
|
||||||
#include "widgets/tooltips.h"
|
#include "widgets/tooltips.h"
|
||||||
|
|
||||||
#include "pbd/fastlog.h"
|
#include "pbd/fastlog.h"
|
||||||
|
|
@ -315,6 +316,11 @@ GainMeterBase::set_gain_astate (AutoState as)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CairoWidget&
|
||||||
|
GainMeterBase::get_gain_slider() const {
|
||||||
|
return *gain_slider;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GainMeterBase::setup_gain_adjustment ()
|
GainMeterBase::setup_gain_adjustment ()
|
||||||
{
|
{
|
||||||
|
|
@ -676,7 +682,7 @@ void
|
||||||
GainMeterBase::update_gain_sensitive ()
|
GainMeterBase::update_gain_sensitive ()
|
||||||
{
|
{
|
||||||
bool x = !(_control->alist()->automation_state() & Play);
|
bool x = !(_control->alist()->automation_state() & Play);
|
||||||
static_cast<ArdourWidgets::SliderController*>(gain_slider)->set_sensitive (x);
|
gain_slider->set_sensitive (x);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
#include "widgets/ardour_button.h"
|
#include "widgets/ardour_button.h"
|
||||||
#include "widgets/focus_entry.h"
|
#include "widgets/focus_entry.h"
|
||||||
#include "widgets/slider_controller.h"
|
|
||||||
|
|
||||||
#include "enums.h"
|
#include "enums.h"
|
||||||
#include "level_meter.h"
|
#include "level_meter.h"
|
||||||
|
|
@ -70,6 +69,10 @@ namespace Gtk {
|
||||||
class Menu;
|
class Menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace ArdourWidgets {
|
||||||
|
class SliderController;
|
||||||
|
}
|
||||||
|
|
||||||
enum MeterPointChangeTarget {
|
enum MeterPointChangeTarget {
|
||||||
MeterPointChangeAll,
|
MeterPointChangeAll,
|
||||||
MeterPointChangeGroup,
|
MeterPointChangeGroup,
|
||||||
|
|
@ -106,7 +109,7 @@ public:
|
||||||
std::shared_ptr<PBD::Controllable> get_controllable();
|
std::shared_ptr<PBD::Controllable> get_controllable();
|
||||||
|
|
||||||
LevelMeterHBox& get_level_meter() const { return *level_meter; }
|
LevelMeterHBox& get_level_meter() const { return *level_meter; }
|
||||||
ArdourWidgets::SliderController& get_gain_slider() const { return *gain_slider; }
|
CairoWidget& get_gain_slider() const;
|
||||||
|
|
||||||
/** Emitted in the GUI thread when a button is pressed over the level meter;
|
/** Emitted in the GUI thread when a button is pressed over the level meter;
|
||||||
* return true if the event is handled.
|
* return true if the event is handled.
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,6 @@
|
||||||
#include "ardour/session_handle.h"
|
#include "ardour/session_handle.h"
|
||||||
|
|
||||||
#include "widgets/fastmeter.h"
|
#include "widgets/fastmeter.h"
|
||||||
#include "widgets/focus_entry.h"
|
|
||||||
#include "widgets/slider_controller.h"
|
|
||||||
|
|
||||||
#include "enums.h"
|
#include "enums.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@
|
||||||
#include "pbd/strsplit.h"
|
#include "pbd/strsplit.h"
|
||||||
|
|
||||||
#include "widgets/frame.h"
|
#include "widgets/frame.h"
|
||||||
|
#include "widgets/slider_controller.h"
|
||||||
|
|
||||||
#include "gui_thread.h"
|
#include "gui_thread.h"
|
||||||
#include "option_editor.h"
|
#include "option_editor.h"
|
||||||
|
|
@ -678,6 +679,11 @@ FaderOption::add_to_page (OptionEditorPage* p)
|
||||||
add_widgets_to_page (p, _label, &_box);
|
add_widgets_to_page (p, _label, &_box);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Gtk::Widget&
|
||||||
|
FaderOption::tip_widget() {
|
||||||
|
return *_db_slider;
|
||||||
|
}
|
||||||
|
|
||||||
/*--------------------------*/
|
/*--------------------------*/
|
||||||
|
|
||||||
ClockOption::ClockOption (string const & i, string const & n, sigc::slot<std::string> g, sigc::slot<bool, std::string> s)
|
ClockOption::ClockOption (string const & i, string const & n, sigc::slot<std::string> g, sigc::slot<bool, std::string> s)
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@
|
||||||
|
|
||||||
#include "pbd/configuration.h"
|
#include "pbd/configuration.h"
|
||||||
|
|
||||||
#include "widgets/slider_controller.h"
|
|
||||||
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "ardour_window.h"
|
#include "ardour_window.h"
|
||||||
#include "audio_clock.h"
|
#include "audio_clock.h"
|
||||||
|
|
@ -64,6 +62,7 @@
|
||||||
|
|
||||||
namespace ArdourWidgets {
|
namespace ArdourWidgets {
|
||||||
class Frame;
|
class Frame;
|
||||||
|
class HSliderController;
|
||||||
}
|
}
|
||||||
|
|
||||||
class OptionEditorPage;
|
class OptionEditorPage;
|
||||||
|
|
@ -601,7 +600,7 @@ public:
|
||||||
void set_state_from_config ();
|
void set_state_from_config ();
|
||||||
void add_to_page (OptionEditorPage *);
|
void add_to_page (OptionEditorPage *);
|
||||||
|
|
||||||
Gtk::Widget& tip_widget() { return *_db_slider; }
|
Gtk::Widget& tip_widget();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void db_changed ();
|
void db_changed ();
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,6 @@ namespace ARDOUR {
|
||||||
class Location;
|
class Location;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace ArdourWidgets {
|
|
||||||
class ArdourButton;
|
|
||||||
class HSliderController;
|
|
||||||
}
|
|
||||||
|
|
||||||
class TriggerPropertiesBox;
|
class TriggerPropertiesBox;
|
||||||
class RegionPropertiesBox;
|
class RegionPropertiesBox;
|
||||||
class RegionOperationsBox;
|
class RegionOperationsBox;
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,13 @@
|
||||||
#define __ardour_gtk_trigger_ui_h__
|
#define __ardour_gtk_trigger_ui_h__
|
||||||
|
|
||||||
#include "gtkmm/colorselection.h"
|
#include "gtkmm/colorselection.h"
|
||||||
|
#include "gtkmm/entry.h"
|
||||||
|
|
||||||
#include "gtkmm2ext/actions.h"
|
#include "gtkmm2ext/actions.h"
|
||||||
#include "gtkmm2ext/bindings.h"
|
#include "gtkmm2ext/bindings.h"
|
||||||
|
|
||||||
#include "ardour/triggerbox.h"
|
#include "ardour/triggerbox.h"
|
||||||
#include "widgets/ardour_button.h"
|
#include "widgets/ardour_button.h"
|
||||||
#include "widgets/slider_controller.h"
|
|
||||||
#include "widgets/frame.h"
|
#include "widgets/frame.h"
|
||||||
|
|
||||||
namespace Gtk
|
namespace Gtk
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
|
|
||||||
#include "gtkmm2ext/utils.h"
|
#include "gtkmm2ext/utils.h"
|
||||||
|
|
||||||
|
#include "widgets/slider_controller.h"
|
||||||
#include "widgets/tooltips.h"
|
#include "widgets/tooltips.h"
|
||||||
|
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
#include "widgets/ardour_button.h"
|
#include "widgets/ardour_button.h"
|
||||||
#include "widgets/ardour_dropdown.h"
|
#include "widgets/ardour_dropdown.h"
|
||||||
#include "widgets/ardour_knob.h"
|
#include "widgets/ardour_knob.h"
|
||||||
#include "widgets/slider_controller.h"
|
|
||||||
|
|
||||||
#include "ardour_window.h"
|
#include "ardour_window.h"
|
||||||
#include "pianokeyboard.h"
|
#include "pianokeyboard.h"
|
||||||
|
|
@ -39,6 +38,10 @@ namespace ARDOUR {
|
||||||
class Session;
|
class Session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace ArdourWidgets {
|
||||||
|
class VSliderController;
|
||||||
|
}
|
||||||
|
|
||||||
class VKBDControl : public PBD::Controllable
|
class VKBDControl : public PBD::Controllable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue