-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add some interfaces about personalization
add some interfaces about personalization Log:
- Loading branch information
wangfei
committed
Oct 15, 2024
1 parent
8cf037d
commit 6ca3502
Showing
28 changed files
with
1,054 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#ifndef DPLATFORMINTERFACE_H | ||
#define DPLATFORMINTERFACE_H | ||
|
||
#include <QObject> | ||
#include <QVariant> | ||
|
||
#include "dtkgui_global.h" | ||
#include <dobject.h> | ||
|
||
DGUI_BEGIN_NAMESPACE | ||
|
||
class DPlatformInterfacePrivate; | ||
class DPlatformInterface : public QObject, public DCORE_NAMESPACE::DObject | ||
{ | ||
Q_OBJECT | ||
D_DECLARE_PRIVATE(DPlatformInterface) | ||
public: | ||
explicit DPlatformInterface(QObject *parent); | ||
virtual ~DPlatformInterface(); | ||
|
||
virtual int windowRadius() const; | ||
virtual void setWindowRadius(int windowRadius); | ||
virtual QByteArray fontName() const; | ||
virtual void setFontName(const QByteArray &fontName); | ||
virtual QByteArray monoFontName() const; | ||
virtual void setMonoFontName(const QByteArray &monoFontName); | ||
virtual QByteArray iconThemeName() const; | ||
virtual void setIconThemeName(const QByteArray &iconThemeName); | ||
virtual QByteArray cursorThemeName() const; | ||
virtual void setCursorThemeName(const QByteArray &cursorThemeName); | ||
protected: | ||
DPlatformInterface(DPlatformInterfacePrivate &dd, QObject *parent); | ||
}; | ||
|
||
DGUI_END_NAMESPACE | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#ifndef DXCBPLATFORMINTERFACE_H | ||
#define DXCBPLATFORMINTERFACE_H | ||
|
||
#include "dplatforminterface.h" | ||
|
||
DGUI_BEGIN_NAMESPACE | ||
|
||
class DXCBPlatformInterfacePrivate; | ||
class DXCBPlatformInterface : public DPlatformInterface | ||
{ | ||
Q_OBJECT | ||
D_DECLARE_PRIVATE(DXCBPlatformInterface) | ||
public: | ||
explicit DXCBPlatformInterface(quint32 window, QObject *parent); | ||
|
||
int windowRadius() const override; | ||
void setWindowRadius(int windowRadius) override; | ||
|
||
QByteArray fontName() const override; | ||
void setFontName(const QByteArray &fontName) override; | ||
|
||
QByteArray monoFontName() const override; | ||
void setMonoFontName(const QByteArray &monoFontName) override; | ||
|
||
QByteArray iconThemeName() const override; | ||
void setIconThemeName(const QByteArray &iconThemeName) override; | ||
|
||
QByteArray cursorThemeName() const override; | ||
void setCursorThemeName(const QByteArray &cursorThemeName) override; | ||
}; | ||
|
||
DGUI_END_NAMESPACE | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.