Started work on drag dropping URL images

This commit is contained in:
Yousef Khadadeh 2025-10-09 16:16:39 +03:00
parent f972fd5024
commit 32a654b731
5 changed files with 75 additions and 1 deletions

View file

@ -15,6 +15,7 @@
#include "DrawingProgramSelection.hpp"
#include "../CollabList.hpp"
#include "DrawingProgramToolBase.hpp"
#include <Helpers/FileDownloader.hpp>
class World;
@ -120,6 +121,15 @@ class DrawingProgram {
std::unique_ptr<DrawingProgramToolBase> drawTool;
uint32_t nextID = 0;
struct DroppedDownloadingFile {
CollabListType::ObjectInfoPtr comp;
Vector2f windowSizeWhenDropped;
std::shared_ptr<FileDownloader::DownloadData> downData;
};
std::vector<DroppedDownloadingFile> droppedDownloadingFiles;
void update_downloading_dropped_files();
friend class EyeDropperTool;
friend class RectDrawTool;