mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move EditCaptionBox to a separate module.
This commit is contained in:
@@ -160,54 +160,3 @@ private:
|
||||
object_ptr<Ui::InputArea> _caption = { nullptr };
|
||||
|
||||
};
|
||||
|
||||
class EditCaptionBox : public BoxContent, public RPCSender {
|
||||
public:
|
||||
EditCaptionBox(QWidget*, HistoryMedia *media, FullMsgId msgId);
|
||||
|
||||
protected:
|
||||
void prepare() override;
|
||||
void setInnerFocus() override;
|
||||
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
void resizeEvent(QResizeEvent *e) override;
|
||||
|
||||
private:
|
||||
void updateBoxSize();
|
||||
void prepareGifPreview(DocumentData *document);
|
||||
void clipCallback(Media::Clip::Notification notification);
|
||||
|
||||
void save();
|
||||
void captionResized();
|
||||
|
||||
void saveDone(const MTPUpdates &updates);
|
||||
bool saveFail(const RPCError &error);
|
||||
|
||||
int errorTopSkip() const;
|
||||
|
||||
FullMsgId _msgId;
|
||||
bool _animated = false;
|
||||
bool _photo = false;
|
||||
bool _doc = false;
|
||||
|
||||
QPixmap _thumb;
|
||||
Media::Clip::ReaderPointer _gifPreview;
|
||||
|
||||
object_ptr<Ui::InputArea> _field = { nullptr };
|
||||
|
||||
int _thumbx = 0;
|
||||
int _thumby = 0;
|
||||
int _thumbw = 0;
|
||||
int _thumbh = 0;
|
||||
Text _name;
|
||||
QString _status;
|
||||
int _statusw = 0;
|
||||
bool _isAudio = false;
|
||||
bool _isImage = false;
|
||||
|
||||
bool _previewCancelled = false;
|
||||
mtpRequestId _saveRequestId = 0;
|
||||
|
||||
QString _error;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user