mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Color management system - base classes + settings
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define PDFVIEWERSETTINGS_H
|
||||
|
||||
#include "pdfrenderer.h"
|
||||
#include "pdfcms.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -40,6 +41,9 @@ public:
|
||||
{
|
||||
Settings();
|
||||
|
||||
bool operator==(const Settings&) const = default;
|
||||
bool operator!=(const Settings&) const = default;
|
||||
|
||||
pdf::PDFRenderer::Features m_features;
|
||||
QString m_directory;
|
||||
pdf::RendererEngine m_rendererEngine;
|
||||
@@ -62,7 +66,7 @@ public:
|
||||
const Settings& getSettings() const { return m_settings; }
|
||||
void setSettings(const Settings& settings);
|
||||
|
||||
void readSettings(QSettings& settings);
|
||||
void readSettings(QSettings& settings, const pdf::PDFCMSSettings& defaultCMSSettings);
|
||||
void writeSettings(QSettings& settings);
|
||||
|
||||
QString getDirectory() const;
|
||||
@@ -94,14 +98,17 @@ public:
|
||||
int getFontCacheLimit() const { return m_settings.m_fontCacheLimit; }
|
||||
int getInstancedFontCacheLimit() const { return m_settings.m_instancedFontCacheLimit; }
|
||||
|
||||
const pdf::PDFCMSSettings& getColorManagementSystemSettings() const { return m_colorManagementSystemSettings; }
|
||||
void setColorManagementSystemSettings(const pdf::PDFCMSSettings& settings) { m_colorManagementSystemSettings = settings; }
|
||||
|
||||
signals:
|
||||
void settingsChanged();
|
||||
|
||||
private:
|
||||
Settings m_settings;
|
||||
pdf::PDFCMSSettings m_colorManagementSystemSettings;
|
||||
};
|
||||
|
||||
|
||||
} // namespace pdfviewer
|
||||
|
||||
#endif // PDFVIEWERSETTINGS_H
|
||||
|
Reference in New Issue
Block a user