/* 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 namespace Ui { class FlatButton; class ScrollArea; class CrossButton; class MultiSelect; class PlainShadow; } // namespace Ui namespace Window { namespace Theme { class Editor : public TWidget { public: Editor(QWidget*, const QString &path); static void Start(); protected: void paintEvent(QPaintEvent *e) override; void resizeEvent(QResizeEvent *e) override; void keyPressEvent(QKeyEvent *e) override; void focusInEvent(QFocusEvent *e) override; private: void closeEditor(); object_ptr _scroll; class Inner; QPointer _inner; object_ptr _close; object_ptr _select; object_ptr _leftShadow; object_ptr _topShadow; object_ptr _export; }; } // namespace Theme } // namespace Window