36 changed files with 122 additions and 277 deletions
@ -1,9 +1,9 @@ |
|||||
#include "settingssetuploader_p.h" |
#include "settingssetuploader_p.h" |
||||
|
#include "qtmvvm_logging_p.h" |
||||
|
|
||||
#include <QtCore/QCoreApplication> |
#include <QtCore/QCoreApplication> |
||||
#include <QtCore/QDir> |
#include <QtCore/QDir> |
||||
|
|
||||
#include <QtMvvmCore/private/qtmvvm_logging_p.h> |
|
||||
using namespace QtMvvm; |
using namespace QtMvvm; |
||||
using namespace QtMvvm::SettingsElements; |
using namespace QtMvvm::SettingsElements; |
||||
|
|
@ -1,8 +1,7 @@ |
|||||
#include "settingsviewmodel.h" |
#include "settingsviewmodel.h" |
||||
#include "settingsviewmodel_p.h" |
#include "settingsviewmodel_p.h" |
||||
#include <QtMvvmCore/CoreApp> |
#include "coreapp.h" |
||||
#include <QtMvvmCore/private/qtmvvm_logging_p.h> |
#include "qtmvvm_logging_p.h" |
||||
|
|
||||
#include "settingssetuploader_p.h" |
#include "settingssetuploader_p.h" |
||||
|
|
||||
using namespace QtMvvm; |
using namespace QtMvvm; |
@ -1,7 +1,7 @@ |
|||||
#ifndef QTMVVM_SETTINGSVIEWMODEL_P_H |
#ifndef QTMVVM_SETTINGSVIEWMODEL_P_H |
||||
#define QTMVVM_SETTINGSVIEWMODEL_P_H |
#define QTMVVM_SETTINGSVIEWMODEL_P_H |
||||
|
|
||||
#include "qtmvvmsettingscore_global.h" |
#include "qtmvvmcore_global.h" |
||||
#include "settingsviewmodel.h" |
#include "settingsviewmodel.h" |
||||
|
|
||||
namespace QtMvvm { |
namespace QtMvvm { |
@ -1,40 +0,0 @@ |
|||||
TARGET = QtMvvmSettingsCore |
|
||||
|
|
||||
QT = core gui mvvmcore mvvmcore-private |
|
||||
|
|
||||
HEADERS += qtmvvmsettingscore_global.h \ |
|
||||
settingsviewmodel.h \ |
|
||||
settingssetup.h \ |
|
||||
settingssetuploader_p.h \ |
|
||||
settingsviewmodel_p.h |
|
||||
|
|
||||
SOURCES += \ |
|
||||
settingsviewmodel.cpp \ |
|
||||
settingssetuploader.cpp \ |
|
||||
qtmvvmsettingscore_global.cpp |
|
||||
|
|
||||
TRANSLATIONS += \ |
|
||||
translations/qtmvvmsettingscore_de.ts \ |
|
||||
translations/qtmvvmsettingscore_template.ts |
|
||||
|
|
||||
DISTFILES += $$TRANSLATIONS |
|
||||
|
|
||||
qpmx_ts_target.path = $$[QT_INSTALL_TRANSLATIONS] |
|
||||
qpmx_ts_target.depends += lrelease |
|
||||
|
|
||||
load(qt_module) |
|
||||
|
|
||||
win32 { |
|
||||
QMAKE_TARGET_PRODUCT = "$$TARGET" |
|
||||
QMAKE_TARGET_COMPANY = "Skycoder42" |
|
||||
QMAKE_TARGET_COPYRIGHT = "Felix Barz" |
|
||||
} else:mac { |
|
||||
QMAKE_TARGET_BUNDLE_PREFIX = "com.skycoder42." |
|
||||
} |
|
||||
|
|
||||
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.) |
|
||||
else: include($$OUT_PWD/qpmx_generated.pri) |
|
||||
|
|
||||
qpmx_ts_target.files -= $$OUT_PWD/$$QPMX_WORKINGDIR/qtmvvmsettingscore_template.qm |
|
||||
qpmx_ts_target.files += translations/qtmvvmsettingscore_template.ts |
|
||||
|
|
@ -1,14 +0,0 @@ |
|||||
{ |
|
||||
"dependencies": [], |
|
||||
"license": { |
|
||||
"file": "", |
|
||||
"name": "" |
|
||||
}, |
|
||||
"prcFile": "", |
|
||||
"priFile": "", |
|
||||
"priIncludes": [ |
|
||||
], |
|
||||
"publishers": { |
|
||||
}, |
|
||||
"source": false |
|
||||
} |
|
@ -1,24 +0,0 @@ |
|||||
#include "qtmvvmsettingscore_global.h" |
|
||||
#include <QtCore/QCoreApplication> |
|
||||
#include <QtMvvmCore/ServiceRegistry> |
|
||||
#include <QtMvvmCore/private/qtmvvm_logging_p.h> |
|
||||
|
|
||||
#include "settingssetuploader_p.h" |
|
||||
|
|
||||
using namespace QtMvvm; |
|
||||
|
|
||||
namespace { |
|
||||
|
|
||||
void qtMvvmSettingsCoreStartup() |
|
||||
{ |
|
||||
QtMvvm::registerInterfaceConverter<ISettingsSetupLoader>(); |
|
||||
try { |
|
||||
ServiceRegistry::instance()->registerInterface<ISettingsSetupLoader, SettingsSetupLoader>(true); |
|
||||
} catch(ServiceExistsException &e) { |
|
||||
logDebug() << "Unable to register default ISettingsSetupLoader with error:" << e.what(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
} |
|
||||
|
|
||||
Q_COREAPP_STARTUP_FUNCTION(qtMvvmSettingsCoreStartup) |
|
@ -1,12 +0,0 @@ |
|||||
#ifndef QTMVVMSETTINGSCORE_GLOBAL_H |
|
||||
#define QTMVVMSETTINGSCORE_GLOBAL_H |
|
||||
|
|
||||
#include <QtCore/qglobal.h> |
|
||||
|
|
||||
#if defined(QT_BUILD_MVVMSETTINGSCORE_LIB) |
|
||||
# define Q_MVVMSETTINGSCORE_EXPORT Q_DECL_EXPORT |
|
||||
#else |
|
||||
# define Q_MVVMSETTINGSCORE_EXPORT Q_DECL_IMPORT |
|
||||
#endif |
|
||||
|
|
||||
#endif // QTMVVMSETTINGSCORE_GLOBAL_H
|
|
@ -1,30 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<!DOCTYPE TS> |
|
||||
<TS version="2.1" language="de_DE"> |
|
||||
<context> |
|
||||
<name>QtMvvm::SettingsSetupLoader</name> |
|
||||
<message> |
|
||||
<location filename="../settingssetuploader.cpp" line="+244"/> |
|
||||
<source>General Settings</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
<message> |
|
||||
<location line="+8"/> |
|
||||
<source>General</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
</context> |
|
||||
<context> |
|
||||
<name>QtMvvm::SettingsViewModel</name> |
|
||||
<message> |
|
||||
<location filename="../settingsviewmodel.cpp" line="+38"/> |
|
||||
<source>Restore Defaults?</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
<message> |
|
||||
<location line="+1"/> |
|
||||
<source>All custom changes will be deleted and the defaults restored. <i>This cannot be undone!</i></source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
</context> |
|
||||
</TS> |
|
@ -1,30 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<!DOCTYPE TS> |
|
||||
<TS version="2.1"> |
|
||||
<context> |
|
||||
<name>QtMvvm::SettingsSetupLoader</name> |
|
||||
<message> |
|
||||
<location filename="../settingssetuploader.cpp" line="+244"/> |
|
||||
<source>General Settings</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
<message> |
|
||||
<location line="+8"/> |
|
||||
<source>General</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
</context> |
|
||||
<context> |
|
||||
<name>QtMvvm::SettingsViewModel</name> |
|
||||
<message> |
|
||||
<location filename="../settingsviewmodel.cpp" line="+38"/> |
|
||||
<source>Restore Defaults?</source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
<message> |
|
||||
<location line="+1"/> |
|
||||
<source>All custom changes will be deleted and the defaults restored. <i>This cannot be undone!</i></source> |
|
||||
<translation type="unfinished"></translation> |
|
||||
</message> |
|
||||
</context> |
|
||||
</TS> |
|
@ -1,42 +0,0 @@ |
|||||
TARGET = QtMvvmSettingsWidgets |
|
||||
|
|
||||
QT = core gui mvvmsettingscore mvvmwidgets mvvmcore-private |
|
||||
|
|
||||
HEADERS += qtmvvmsettingswidgets_global.h \ |
|
||||
settingsdialog.h \ |
|
||||
settingsdialog_p.h |
|
||||
|
|
||||
SOURCES += \ |
|
||||
settingsdialog.cpp |
|
||||
|
|
||||
TRANSLATIONS += \ |
|
||||
translations/qtmvvmsettingswidgets_de.ts \ |
|
||||
translations/qtmvvmsettingswidgets_template.ts |
|
||||
|
|
||||
DISTFILES += $$TRANSLATIONS |
|
||||
|
|
||||
qpmx_ts_target.path = $$[QT_INSTALL_TRANSLATIONS] |
|
||||
qpmx_ts_target.depends += lrelease |
|
||||
|
|
||||
load(qt_module) |
|
||||
|
|
||||
win32 { |
|
||||
QMAKE_TARGET_PRODUCT = "$$TARGET" |
|
||||
QMAKE_TARGET_COMPANY = "Skycoder42" |
|
||||
QMAKE_TARGET_COPYRIGHT = "Felix Barz" |
|
||||
} else:mac { |
|
||||
QMAKE_TARGET_BUNDLE_PREFIX = "com.skycoder42." |
|
||||
} |
|
||||
|
|
||||
!ReleaseBuild:!DebugBuild:!system(qpmx -d $$shell_quote($$_PRO_FILE_PWD_) --qmake-run init $$QPMX_EXTRA_OPTIONS $$shell_quote($$QMAKE_QMAKE) $$shell_quote($$OUT_PWD)): error(qpmx initialization failed. Check the compilation log for details.) |
|
||||
else: include($$OUT_PWD/qpmx_generated.pri) |
|
||||
|
|
||||
qpmx_ts_target.files -= $$OUT_PWD/$$QPMX_WORKINGDIR/qtmvvmsettingswidgets_template.qm |
|
||||
qpmx_ts_target.files += translations/qtmvvmsettingswidgets_template.ts |
|
||||
|
|
||||
FORMS += \ |
|
||||
settingsdialog.ui |
|
||||
|
|
||||
RESOURCES += \ |
|
||||
qtmvvmsettingswidgets_module.qrc |
|
||||
|
|
@ -1,14 +0,0 @@ |
|||||
{ |
|
||||
"dependencies": [], |
|
||||
"license": { |
|
||||
"file": "", |
|
||||
"name": "" |
|
||||
}, |
|
||||
"prcFile": "", |
|
||||
"priFile": "", |
|
||||
"priIncludes": [ |
|
||||
], |
|
||||
"publishers": { |
|
||||
}, |
|
||||
"source": false |
|
||||
} |
|
@ -1,12 +0,0 @@ |
|||||
#ifndef QTMVVMSETTINGSWIDGETS_GLOBAL_H |
|
||||
#define QTMVVMSETTINGSWIDGETS_GLOBAL_H |
|
||||
|
|
||||
#include <QtCore/qglobal.h> |
|
||||
|
|
||||
#if defined(QT_BUILD_MVVMSETTINGSWIDGETS_LIB) |
|
||||
# define Q_MVVMSETTINGSWIDGETS_EXPORT Q_DECL_EXPORT |
|
||||
#else |
|
||||
# define Q_MVVMSETTINGSWIDGETS_EXPORT Q_DECL_IMPORT |
|
||||
#endif |
|
||||
|
|
||||
#endif // QTMVVMSETTINGSWIDGETS_GLOBAL_H
|
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Loading…
Reference in new issue