API Documentation
Loading...
Searching...
No Matches
DesignPixmapResolver.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/QTIconManager.h>
4namespace NDEVR
5{
6 class ImageData;
7 /**--------------------------------------------------------------------------------------------------
8 \brief Resolves images that are stored in NDV files or are a part of ImageFactory
9 *-----------------------------------------------------------------------------------------------**/
11 {
12 public:
13 virtual bool canPotentiallyResolve(const String& pixmap_resource) override;
14 virtual QPixmap resolve(const String& pixmap_resource, QIcon::Mode, const QSize&, Dictionary<String, QPixmap>& pixmaps) override;
15 virtual UUID id() const override;
16 static QImage Convert(const ImageData& image);
17 static ImageData Convert(const String& to_id, const QImage& qimage);
18 static void SaveToImageFactory(const String& image_id, const QImage& image);
19 };
20}
#define DESIGN_WIDGETS_API
Definition DLLInfo.h:74
Resolves images that are stored in NDV files or are a part of ImageFactory.
Definition DesignPixmapResolver.h:11
virtual UUID id() const override
virtual QPixmap resolve(const String &pixmap_resource, QIcon::Mode, const QSize &, Dictionary< String, QPixmap > &pixmaps) override
static void SaveToImageFactory(const String &image_id, const QImage &image)
virtual bool canPotentiallyResolve(const String &pixmap_resource) override
static QImage Convert(const ImageData &image)
static ImageData Convert(const String &to_id, const QImage &qimage)
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:59
Definition ImageFactory.h:120
Definition QTIconManager.h:109
The core String class for the software.
Definition String.h:47
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:62
Definition ACIColor.h:37