8#include <QStandardPaths>
13#include <kpluginfactory.h>
24 std::make_pair(
"X-Krita-PlatformId", QGuiApplication::platformName()),
25 "Krita/PlatformPlugin");
37 if (m_outputColorInfoInterface->isReady()) {
48 future.then([
this] (
const QString &report) {
63 return "KritaColorManagementInformation.txt";
68 return i18nc(
"Caption of the dialog with color management information for bug reports",
"Krita Color Management Information: please paste this information to the bug report");
91 s <<
"Main Window" << Qt::endl;
92 s <<
"===" << Qt::endl;
95 KisMainWindow *mainWindow = qobject_cast<KisMainWindow*>(parent());
97 s <<
"Native window handle:" << mainWindow->windowHandle() << Qt::endl;
108 s <<
"Document:" << doc->objectName() <<
"path:" << doc->localFilePath() << Qt::endl;
109 s <<
"===" << Qt::endl;
112 s <<
"Native window handle:" << canvas->
canvasWidget()->windowHandle() << Qt::endl;
116 canvas->canvasWidget()->windowHandle() == mainWindow->windowHandle()) {
118 s <<
"WARNING: the canvas shares the surface with the main window on a platform with managed surface color space!";
122 s.noquote().nospace() << canvas->colorManagementReport();
125 Q_FOREACH (QScreen *screen, qApp->screens()) {
127 s <<
"Screen:" << screen->name() << screen->manufacturer() << screen->model();
128 if (screen == mainWindow->screen()) {
132 s <<
"===" << Qt::endl;
135 std::optional<KisSurfaceColorimetry::SurfaceDescription> desc;
142 s.noquote().nospace() << desc->makeTextReport();
145 s <<
"<no information available>";
151 s <<
"Color management plugin report" << Qt::endl;
152 s <<
"===" << Qt::endl;
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QString replacementWarningText() override
DlgColorManagementInfo(QWidget *parent=0)
QScopedPointer< KisOutputColorInfoInterface > m_outputColorInfoInterface
QString originalFileName() override
QString infoText(QSettings &kritarc) override
QScopedPointer< KisSurfaceColorManagementInfo > m_surfaceColorManagementInfo
QString m_surfaceManagementReport
QString defaultNewFileName() override
~DlgColorManagementInfo() override
QString captionText() override
KisAbstractCanvasWidget * canvasWidget
KisViewManager * viewManager
void sigOutputDescriptionChanged(QScreen *screen, const KisSurfaceColorimetry::SurfaceDescription &desc)
void sigReadyChanged(bool isReady)
KisDocument * document() const
KisCanvas2 * canvasBase() const
Return the canvas base class.
static KoPluginLoader * instance()
KPluginFactory * loadSinglePlugin(const std::vector< std::pair< QString, QString > > &predicates, const QString &serviceType)