#include "externaltoolspage.hpp" #include "util/layoutcreator.hpp" #include #define STREAMLINK_QUALITY "Choose", "Source", "High", "Medium", "Low", "Audio only" namespace chatterino { namespace widgets { namespace settingspages { ExternalToolsPage::ExternalToolsPage() : SettingsPage("External tools", "") { singletons::SettingManager &settings = singletons::SettingManager::getInstance(); util::LayoutCreator layoutCreator(this); auto layout = layoutCreator.setLayoutType(); { auto group = layout.emplace("Streamlink"); auto groupLayout = group.setLayoutType(); groupLayout->addRow("Streamlink path:", this->createLineEdit(settings.streamlinkPath)); groupLayout->addRow("Prefered quality:", this->createComboBox({STREAMLINK_QUALITY}, settings.preferredQuality)); groupLayout->addRow("Additional options:", this->createLineEdit(settings.streamlinkOpts)); } layout->addStretch(1); } } // namespace settingspages } // namespace widgets } // namespace chatterino