From 45f8e68203449ec5d7a30f755ba9b3390fc70b8c Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 5 Feb 2021 08:44:04 +0300 Subject: [PATCH] Initialized empty files of photo editor. --- Telegram/CMakeLists.txt | 6 +++++ Telegram/SourceFiles/editor/photo_editor.cpp | 21 +++++++++++++++ Telegram/SourceFiles/editor/photo_editor.h | 27 +++++++++++++++++++ .../editor/photo_editor_content.cpp | 18 +++++++++++++ .../SourceFiles/editor/photo_editor_content.h | 24 +++++++++++++++++ .../editor/photo_editor_controls.cpp | 17 ++++++++++++ .../editor/photo_editor_controls.h | 22 +++++++++++++++ 7 files changed, 135 insertions(+) create mode 100644 Telegram/SourceFiles/editor/photo_editor.cpp create mode 100644 Telegram/SourceFiles/editor/photo_editor.h create mode 100644 Telegram/SourceFiles/editor/photo_editor_content.cpp create mode 100644 Telegram/SourceFiles/editor/photo_editor_content.h create mode 100644 Telegram/SourceFiles/editor/photo_editor_controls.cpp create mode 100644 Telegram/SourceFiles/editor/photo_editor_controls.h diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 995c39d0f..0c8dbd271 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -508,6 +508,12 @@ PRIVATE dialogs/dialogs_search_from_controllers.h dialogs/dialogs_widget.cpp dialogs/dialogs_widget.h + editor/photo_editor.cpp + editor/photo_editor.h + editor/photo_editor_content.cpp + editor/photo_editor_content.h + editor/photo_editor_controls.cpp + editor/photo_editor_controls.h export/export_manager.cpp export/export_manager.h export/view/export_view_content.cpp diff --git a/Telegram/SourceFiles/editor/photo_editor.cpp b/Telegram/SourceFiles/editor/photo_editor.cpp new file mode 100644 index 000000000..0030351ab --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor.cpp @@ -0,0 +1,21 @@ +/* +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 +*/ +#include "editor/photo_editor.h" + +#include "editor/photo_editor_content.h" +#include "editor/photo_editor_controls.h" + +namespace Editor { + +PhotoEditor::PhotoEditor( + not_null parent, + std::shared_ptr photo) +: RpWidget(parent) { +} + +} // namespace Editor diff --git a/Telegram/SourceFiles/editor/photo_editor.h b/Telegram/SourceFiles/editor/photo_editor.h new file mode 100644 index 000000000..82b186893 --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor.h @@ -0,0 +1,27 @@ +/* +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 Editor { + +class PhotoEditorContent; +class PhotoEditorControls; + +class PhotoEditor final : public Ui::RpWidget { +public: + PhotoEditor( + not_null parent, + std::shared_ptr photo); + +private: + +}; + +} // namespace Editor diff --git a/Telegram/SourceFiles/editor/photo_editor_content.cpp b/Telegram/SourceFiles/editor/photo_editor_content.cpp new file mode 100644 index 000000000..dd57403b0 --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor_content.cpp @@ -0,0 +1,18 @@ +/* +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 +*/ +#include "editor/photo_editor_content.h" + +namespace Editor { + +PhotoEditorContent::PhotoEditorContent( + not_null parent, + std::shared_ptr photo) +: RpWidget(parent) { +} + +} // namespace Editor diff --git a/Telegram/SourceFiles/editor/photo_editor_content.h b/Telegram/SourceFiles/editor/photo_editor_content.h new file mode 100644 index 000000000..80ce4678d --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor_content.h @@ -0,0 +1,24 @@ +/* +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 Editor { + +class PhotoEditorContent final : public Ui::RpWidget { +public: + PhotoEditorContent( + not_null parent, + std::shared_ptr photo); + +private: + +}; + +} // namespace Editor diff --git a/Telegram/SourceFiles/editor/photo_editor_controls.cpp b/Telegram/SourceFiles/editor/photo_editor_controls.cpp new file mode 100644 index 000000000..b82052074 --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor_controls.cpp @@ -0,0 +1,17 @@ +/* +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 +*/ +#include "editor/photo_editor_controls.h" + +namespace Editor { + +PhotoEditorControls::PhotoEditorControls( + not_null parent) +: RpWidget(parent) { +} + +} // namespace Editor diff --git a/Telegram/SourceFiles/editor/photo_editor_controls.h b/Telegram/SourceFiles/editor/photo_editor_controls.h new file mode 100644 index 000000000..2543b3466 --- /dev/null +++ b/Telegram/SourceFiles/editor/photo_editor_controls.h @@ -0,0 +1,22 @@ +/* +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 Editor { + +class PhotoEditorControls final : public Ui::RpWidget { +public: + PhotoEditorControls(not_null parent); + +private: + +}; + +} // namespace Editor