Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
This file is part of the KDE libraries
Copyright
(C) 2000 Reginald Stadlbauer ([email protected])
(C) 1997 Stephan Kulow ([email protected])
(C) 1997-2000 Sven Radej ([email protected])
(C) 1997-2000 Matthias Ettrich ([email protected])
(C) 1999 Chris Schlaeger ([email protected])
(C) 2002 Joseph Wenninger ([email protected])
(C) 2005-2006 Hamish Rodda ([email protected])
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef KMAINWINDOW_P_H
#define KMAINWINDOW_P_H
#include <kconfiggroup.h>
#include <QPointer>
#include <QEventLoopLocker>
#define K_D(Class) Class##Private * const d = k_func()
class QObject;
class QSessionManager;
class QTimer;
class KisKHelpMenu;
class KisKMainWindow;
class KisKMainWindowPrivate
{
public:
virtual ~KisKMainWindowPrivate() = default;
bool autoSaveSettings: 1;
bool settingsDirty: 1;
bool autoSaveWindowSize: 1;
bool sizeApplied: 1;
KConfigGroup autoSaveGroup;
QTimer *settingsTimer;
QTimer *sizeTimer;
QRect defaultWindowSize;
KisKHelpMenu *helpMenu;
KisKMainWindow *q;
QPointer<QObject> dockResizeListener;
QString dbusName;
bool letDirtySettings;
QEventLoopLocker locker;
// This slot will be called when the style KCM changes settings that need
// to be set on the already running applications.
void _k_slotSettingsChanged(int category);
void _k_slotSaveAutoSaveSize();
void init(KisKMainWindow *_q);
void polish(KisKMainWindow *q);
enum CallCompression {
NoCompressCalls = 0,
CompressCalls
};
void setSettingsDirty(CallCompression callCompression = CompressCalls);
void setSizeDirty();
};
class KMWSessionManager : public QObject
{
Q_OBJECT
public:
KMWSessionManager();
~KMWSessionManager() override;
private Q_SLOTS:
bool saveState(QSessionManager &);
};
#endif