Skip to content

Commit

Permalink
修复不会跟随系统缩放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gfdgd-xi committed Jan 26, 2025
1 parent 9837507 commit 93dee35
Show file tree
Hide file tree
Showing 9 changed files with 488 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Compiled Object files
*.slo
*.lo
*.o

# Compiled Dynamic libraries
*.so
*.dylib

# Compiled Static libraries
*.lai
*.la
*.a

build*/
*.pro.user*
*.DS_Store
#dde-control-center
*.core
*.autosave
*.user

# qm file is auto generate from .ts file
*.qm

# vim tmp file
*.swp

*.vscode
47 changes: 47 additions & 0 deletions audio/audio_adaptor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp cn.kylinos.Kmre.Audio.xml -a audio_adaptor
*
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/

#include "audio_adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
* Implementation of adaptor class AudioAdaptor
*/

AudioAdaptor::AudioAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

AudioAdaptor::~AudioAdaptor()
{
// destructor
}

void AudioAdaptor::start()
{
// handle method call cn.kylinos.Kmre.Audio.start
QMetaObject::invokeMethod(parent(), "start");
}

void AudioAdaptor::stop()
{
// handle method call cn.kylinos.Kmre.Audio.stop
QMetaObject::invokeMethod(parent(), "stop");
}

50 changes: 50 additions & 0 deletions audio/audio_adaptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp cn.kylinos.Kmre.Audio.xml -a audio_adaptor
*
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/

#ifndef AUDIO_ADAPTOR_H
#define AUDIO_ADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE

/*
* Adaptor class for interface cn.kylinos.Kmre.Audio
*/
class AudioAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "cn.kylinos.Kmre.Audio")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"cn.kylinos.Kmre.Audio\">\n"
" <method name=\"start\"/>\n"
" <method name=\"stop\"/>\n"
" </interface>\n"
"")
public:
AudioAdaptor(QObject *parent);
virtual ~AudioAdaptor();

public: // PROPERTIES
public Q_SLOTS: // METHODS
void start();
void stop();
Q_SIGNALS: // SIGNALS
};

#endif
5 changes: 3 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
kylin-kmre-manager (3.0.0.3) UNRELEASED; urgency=medium
kylin-kmre-manager (3.0.0.4) UNRELEASED; urgency=medium

* 生成的.desktop添加gxme前缀
* .desktop添加X-GXDE-KMREAPP=true、X-GXDE-KMRE-PKGNAME
* 修复不会跟随系统缩放的问题

-- gfdgd_xi <[email protected]> Sat, 18 Jan 2025 19:07:04 +0800
-- gfdgd_xi <[email protected]> Sun, 26 Jan 2025 09:03:15 +0800

kylin-kmre-manager (3.0.0.1) v101; urgency=medium

Expand Down
47 changes: 47 additions & 0 deletions filewatcher/file_watcher_adaptor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp cn.kylinos.Kmre.FileWatcher.xml -a file_watcher_adaptor
*
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/

#include "file_watcher_adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
* Implementation of adaptor class FileWatcherAdaptor
*/

FileWatcherAdaptor::FileWatcherAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

FileWatcherAdaptor::~FileWatcherAdaptor()
{
// destructor
}

void FileWatcherAdaptor::start()
{
// handle method call cn.kylinos.Kmre.FileWatcher.start
QMetaObject::invokeMethod(parent(), "start");
}

void FileWatcherAdaptor::stop()
{
// handle method call cn.kylinos.Kmre.FileWatcher.stop
QMetaObject::invokeMethod(parent(), "stop");
}

50 changes: 50 additions & 0 deletions filewatcher/file_watcher_adaptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp cn.kylinos.Kmre.FileWatcher.xml -a file_watcher_adaptor
*
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/

#ifndef FILE_WATCHER_ADAPTOR_H
#define FILE_WATCHER_ADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE

/*
* Adaptor class for interface cn.kylinos.Kmre.FileWatcher
*/
class FileWatcherAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "cn.kylinos.Kmre.FileWatcher")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"cn.kylinos.Kmre.FileWatcher\">\n"
" <method name=\"start\"/>\n"
" <method name=\"stop\"/>\n"
" </interface>\n"
"")
public:
FileWatcherAdaptor(QObject *parent);
virtual ~FileWatcherAdaptor();

public: // PROPERTIES
public Q_SLOTS: // METHODS
void start();
void stop();
Q_SIGNALS: // SIGNALS
};

#endif
131 changes: 131 additions & 0 deletions manager/dbus/kmre_manager.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp cn.kylinos.Kmre.Manager.xml -i metatypes.h -a kmre_manager
*
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/

#include "kmre_manager.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
* Implementation of adaptor class ManagerAdaptor
*/

ManagerAdaptor::ManagerAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}

ManagerAdaptor::~ManagerAdaptor()
{
// destructor
}

void ManagerAdaptor::addOneRecord(const QString &path, const QString &mime_type)
{
// handle method call cn.kylinos.Kmre.Manager.addOneRecord
QMetaObject::invokeMethod(parent(), "addOneRecord", Q_ARG(QString, path), Q_ARG(QString, mime_type));
}

void ManagerAdaptor::closeApp(const QString &appName, const QString &pkgName, bool forceKill)
{
// handle method call cn.kylinos.Kmre.Manager.closeApp
QMetaObject::invokeMethod(parent(), "closeApp", Q_ARG(QString, appName), Q_ARG(QString, pkgName), Q_ARG(bool, forceKill));
}

void ManagerAdaptor::commandToGetAllFiles(int type)
{
// handle method call cn.kylinos.Kmre.Manager.commandToGetAllFiles
QMetaObject::invokeMethod(parent(), "commandToGetAllFiles", Q_ARG(int, type));
}

void ManagerAdaptor::controlApp(int id, const QString &pkgName, int event_type)
{
// handle method call cn.kylinos.Kmre.Manager.controlApp
QMetaObject::invokeMethod(parent(), "controlApp", Q_ARG(int, id), Q_ARG(QString, pkgName), Q_ARG(int, event_type));
}

bool ManagerAdaptor::filesIsEmpty()
{
// handle method call cn.kylinos.Kmre.Manager.filesIsEmpty
bool ret;
QMetaObject::invokeMethod(parent(), "filesIsEmpty", Q_RETURN_ARG(bool, ret));
return ret;
}

AndroidMetaList ManagerAdaptor::getAllFiles(const QString &uri, bool reverse)
{
// handle method call cn.kylinos.Kmre.Manager.getAllFiles
AndroidMetaList result;
QMetaObject::invokeMethod(parent(), "getAllFiles", Q_RETURN_ARG(AndroidMetaList, result), Q_ARG(QString, uri), Q_ARG(bool, reverse));
return result;
}

QString ManagerAdaptor::getCameraDevice()
{
// handle method call cn.kylinos.Kmre.Manager.getCameraDevice
QString device;
QMetaObject::invokeMethod(parent(), "getCameraDevice", Q_RETURN_ARG(QString, device));
return device;
}

QString ManagerAdaptor::getDisplayInformation()
{
// handle method call cn.kylinos.Kmre.Manager.getDisplayInformation
QString info;
QMetaObject::invokeMethod(parent(), "getDisplayInformation", Q_RETURN_ARG(QString, info));
return info;
}

QString ManagerAdaptor::getSystemProp(int event_type, const QString &value_field)
{
// handle method call cn.kylinos.Kmre.Manager.getSystemProp
QString value;
QMetaObject::invokeMethod(parent(), "getSystemProp", Q_RETURN_ARG(QString, value), Q_ARG(int, event_type), Q_ARG(QString, value_field));
return value;
}

bool ManagerAdaptor::isHostSupportDDS()
{
// handle method call cn.kylinos.Kmre.Manager.isHostSupportDDS
bool value;
QMetaObject::invokeMethod(parent(), "isHostSupportDDS", Q_RETURN_ARG(bool, value));
return value;
}

void ManagerAdaptor::quit()
{
// handle method call cn.kylinos.Kmre.Manager.quit
QMetaObject::invokeMethod(parent(), "quit");
}

void ManagerAdaptor::removeOneRecord(const QString &path, const QString &mime_type)
{
// handle method call cn.kylinos.Kmre.Manager.removeOneRecord
QMetaObject::invokeMethod(parent(), "removeOneRecord", Q_ARG(QString, path), Q_ARG(QString, mime_type));
}

void ManagerAdaptor::setCameraDevice(const QString &device)
{
// handle method call cn.kylinos.Kmre.Manager.setCameraDevice
QMetaObject::invokeMethod(parent(), "setCameraDevice", Q_ARG(QString, device));
}

void ManagerAdaptor::setSystemProp(int event_type, const QString &value_field, const QString &value)
{
// handle method call cn.kylinos.Kmre.Manager.setSystemProp
QMetaObject::invokeMethod(parent(), "setSystemProp", Q_ARG(int, event_type), Q_ARG(QString, value_field), Q_ARG(QString, value));
}

Loading

0 comments on commit 93dee35

Please sign in to comment.