87{
88 try {
89 juce::Component::setSize(kSettingsWidth, kSettingsHeight);
90
91
94
95 pickup_label_.setText(juce::translate(
"Disabling the pickup mode may be better for "
96 "touchscreen interfaces and may solve issues with "
97 "Lightroom not picking up fast fader/knob movements"),
98 juce::NotificationType::dontSendNotification);
101
103 juce::NotificationType::dontSendNotification);
105#if __cpp_lib_bind_front >= 202'306L
106 pickup_enabled_.onClick = std::bind_front<&SettingsComponent::PickupClicked>(
this);
107#else
109#endif
110
111
114
116 25);
117#if __cpp_lib_bind_front >= 202'306L
119#else
121#endif
122
124 juce::NotificationType::dontSendNotification);
126 30);
127
128
131
133 "select 0 for disabling autohide"),
134 juce::NotificationType::dontSendNotification);
137 50);
138
141 juce::NotificationType::dontSendNotification);
143#if __cpp_lib_bind_front >= 202'306L
144 autohide_setting_.onValueChange = std::bind_front<&SettingsComponent::AutohideChanged>(
this);
145#else
147#endif
148
149
150 activateLayout();
151 }
152 catch (const std::exception& e) {
154 throw;
155 }
156}
juce::GroupComponent profile_group_
Definition SettingsComponent.h:45
juce::Label profile_location_label_
Definition SettingsComponent.h:48
void AutohideChanged()
Definition SettingsComponent.cpp:78
juce::Label autohide_explain_label_
Definition SettingsComponent.h:46
juce::GroupComponent pickup_group_
Definition SettingsComponent.h:44
juce::ToggleButton pickup_enabled_
Definition SettingsComponent.h:51
juce::Label pickup_label_
Definition SettingsComponent.h:47
void PickupClicked()
Definition SettingsComponent.cpp:55
juce::TextButton profile_location_button_
Definition SettingsComponent.h:50
juce::GroupComponent autohide_group_
Definition SettingsComponent.h:43
void ProfileClicked()
Definition SettingsComponent.cpp:63
void AddComponent(juce::Component &component, int x, int y, int width, int height)
Definition SettingsComponent.cpp:47
bool GetPickupEnabled() const noexcept
Definition SettingsManager.h:52
juce::String GetProfileDirectory() const noexcept
Definition SettingsManager.h:57
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept