tdesktop/Telegram/SourceFiles/settings/settings_scale_widget.h

42 lines
791 B
C
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "settings/settings_block_widget.h"
namespace Ui {
class Checkbox;
2016-11-22 09:48:13 +00:00
class SettingsSlider;
} // namespace Ui
namespace Settings {
class ScaleWidget : public BlockWidget {
Q_OBJECT
public:
ScaleWidget(QWidget *parent, UserData *self);
private slots:
2016-11-22 09:48:13 +00:00
void onAutoChanged();
private:
void scaleChanged();
void createControls();
void setScale(DBIScale newScale);
2017-09-13 16:57:44 +00:00
Ui::Checkbox *_auto = nullptr;
Ui::SettingsSlider *_scale = nullptr;
2016-11-07 16:08:24 +00:00
DBIScale _newScale = dbisAuto;
2016-11-22 09:48:13 +00:00
bool _inSetScale = false;
2016-11-07 16:08:24 +00:00
};
} // namespace Settings