/* 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" namespace Ui { class InputField; class ScrollArea; class FadeShadow; class PlainShadow; class RoundButton; } // namespace Ui namespace Passport { class PanelController; struct ValueMap; struct ScanInfo; class EditScans; class PanelEditIdentity : public Ui::RpWidget { public: PanelEditIdentity( QWidget *parent, not_null controller, const ValueMap &data, const ValueMap &scanData, std::vector &&files); protected: void focusInEvent(QFocusEvent *e) override; void resizeEvent(QResizeEvent *e) override; private: void setupControls( const ValueMap &data, const ValueMap &scanData, std::vector &&files); not_null setupContent( const ValueMap &data, const ValueMap &scanData, std::vector &&files); void updateControlsGeometry(); void save(); not_null _controller; object_ptr _scroll; object_ptr _topShadow; object_ptr _bottomShadow; QPointer _editScans; QPointer _firstName; QPointer _lastName; object_ptr _done; }; } // namespace Passport