/
nightflash
/
MIDI2LR
Обзор
Документация
Войти
/
nightflash
/
MIDI2LR
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/application/SettingsComponent.h
51 строка
2 KB
Rory Jaffe
Minimize JuceHeader.h use
03 июл 2020, 23:17
03 июл 2020, 23:17
653af2f
Код
Авторство
О чём код?
#ifndef MIDI2LR_SETTINGSCOMPONENT_H_INCLUDED #define MIDI2LR_SETTINGSCOMPONENT_H_INCLUDED /* * This file is part of MIDI2LR. Copyright (C) 2015 by Rory Jaffe. * * MIDI2LR is free software: you can redistribute it and/or modify it under the terms of the GNU * General Public License as published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * MIDI2LR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * * You should have received a copy of the GNU General Public License along with MIDI2LR. If not, * see <http://www.gnu.org/licenses/>. * */ #include <juce_core/juce_core.h> #include <juce_graphics/juce_graphics.h> #include <juce_gui_basics/juce_gui_basics.h> #include "falco/ResizableLayout.h" class SettingsManager; class SettingsComponent final : public juce::Component, ResizableLayout { public: explicit SettingsComponent(SettingsManager& settings_manager); ~SettingsComponent() = default; // NOLINT(modernize-use-override) SettingsComponent(const SettingsComponent& other) = delete; SettingsComponent(SettingsComponent&& other) = delete; SettingsComponent& operator=(const SettingsComponent& other) = delete; SettingsComponent& operator=(SettingsComponent&& other) = delete; void Init(); private: void paint(juce::Graphics&) override; juce::GroupComponent autohide_group_ {}; juce::GroupComponent pickup_group_ {}; juce::GroupComponent profile_group_ {}; juce::Label autohide_explain_label_ {}; juce::Label pickup_label_ {"PickupLabel", ""}; juce::Label profile_location_label_ {"Profile Label"}; juce::Slider autohide_setting_; juce::TextButton profile_location_button_ {juce::translate("Choose Profile Folder")}; juce::ToggleButton pickup_enabled_ {juce::translate("Enable Pickup Mode")}; SettingsManager& settings_manager_; }; #endif