/* 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 "ui/rp_widget.h" #include "base/object_ptr.h" namespace Ui { class BoxContentDivider; class ScrollArea; class FadeShadow; class RoundButton; class FlatLabel; class UserpicButton; } // namespace Ui namespace Passport::Ui { using namespace ::Ui; class FormRow; } // namespace Passport::Ui namespace Passport { class PanelController; class PanelForm : public Ui::RpWidget { public: PanelForm( QWidget *parent, not_null controller); protected: void resizeEvent(QResizeEvent *e) override; private: using Row = Ui::FormRow; void setupControls(); not_null setupContent(); void updateControlsGeometry(); not_null _controller; object_ptr _scroll; object_ptr _topShadow; object_ptr _bottomShadow; object_ptr _submit; QPointer _userpic; QPointer _about1; QPointer _about2; std::vector> _rows; }; } // namespace Passport