Devel #56
@@ -54,7 +54,7 @@ void AdvancedViewDialog::contextMenuBooking(const QPoint &pos)
|
||||
{
|
||||
QMenu menu;
|
||||
auto createAction = menu.addAction(tr("Create booking"));
|
||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassung/zeiterfassunglib/images/refresh.png"))), tr("Refresh bookings"));
|
||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassungguilib/images/refresh.png"))), tr("Refresh bookings"));
|
||||
auto selectedAction = menu.exec(ui->bookingsView->viewport()->mapToGlobal(pos));
|
||||
if(selectedAction == createAction)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ void AdvancedViewDialog::contextMenuTimeAssignment(const QPoint &pos)
|
||||
{
|
||||
QMenu menu;
|
||||
auto createAction = menu.addAction(tr("Create time assignment"));
|
||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassung/zeiterfassunglib/images/refresh.png"))), tr("Refresh time assignments"));
|
||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassungguilib/images/refresh.png"))), tr("Refresh time assignments"));
|
||||
auto selectedAction = menu.exec(ui->timeAssignmentsView->viewport()->mapToGlobal(pos));
|
||||
if(selectedAction == createAction)
|
||||
{
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -7,10 +7,10 @@ CONFIG += shared c++14
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -2,7 +2,7 @@ TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += plugins \
|
||||
zeiterfassung \
|
||||
zeiterfassunglib
|
||||
zeiterfassungguilib
|
||||
|
||||
plugins.depends += zeiterfassunglib
|
||||
zeiterfassung.depends += zeiterfassunglib
|
||||
plugins.depends += zeiterfassungguilib
|
||||
zeiterfassung.depends += zeiterfassungguilib
|
||||
|
@@ -12,8 +12,8 @@ COMPILED_TRANSLATIONS += $$[QT_INSTALL_TRANSLATIONS]/qt_en.qm \
|
||||
$$[QT_INSTALL_TRANSLATIONS]/qtxmlpatterns_de.qm \
|
||||
$${OUT_PWD}/translations/zeiterfassung_en.qm \
|
||||
$${OUT_PWD}/translations/zeiterfassung_de.qm \
|
||||
$${OUT_PWD}/../zeiterfassunglib/translations/zeiterfassunglib_en.qm \
|
||||
$${OUT_PWD}/../zeiterfassunglib/translations/zeiterfassunglib_de.qm
|
||||
$${OUT_PWD}/../zeiterfassungguilib/translations/zeiterfassungguilib_en.qm \
|
||||
$${OUT_PWD}/../zeiterfassungguilib/translations/zeiterfassungguilib_de.qm
|
||||
|
||||
copy_compiled_translations.input = COMPILED_TRANSLATIONS
|
||||
copy_compiled_translations.output = $${DESTDIR}/translations/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
CONFIG(debug, release|debug): DEBUG_SIGN = d
|
||||
|
||||
LIBRARIES += win32/Qt.conf \
|
||||
$$OUT_PWD/../lib/zeiterfassunglib.dll \
|
||||
$$OUT_PWD/../lib/zeiterfassungguilib.dll \
|
||||
$$[QT_INSTALL_BINS]/Qt5Core$${DEBUG_SIGN}.dll \
|
||||
$$[QT_INSTALL_BINS]/Qt5Gui$${DEBUG_SIGN}.dll \
|
||||
$$[QT_INSTALL_BINS]/Qt5Network$${DEBUG_SIGN}.dll \
|
||||
|
@@ -29,7 +29,7 @@
|
||||
struct {
|
||||
QTranslator qtTranslator;
|
||||
QTranslator zeiterfassungTranslator;
|
||||
QTranslator zeiterfassunglibTranslator;
|
||||
QTranslator zeiterfassungguilibTranslator;
|
||||
} translators;
|
||||
|
||||
QVector<ZeiterfassungPlugin*> plugins;
|
||||
@@ -80,7 +80,7 @@ bool loadTranslations(QSplashScreen &splashScreen, ZeiterfassungSettings &settin
|
||||
|
||||
loadAndInstallTranslator(translators.qtTranslator, QStringLiteral("qt"));
|
||||
loadAndInstallTranslator(translators.zeiterfassungTranslator, QStringLiteral("zeiterfassung"));
|
||||
loadAndInstallTranslator(translators.zeiterfassunglibTranslator, QStringLiteral("zeiterfassunglib"));
|
||||
loadAndInstallTranslator(translators.zeiterfassungguilibTranslator, QStringLiteral("zeiterfassungguilib"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -8,10 +8,10 @@ CONFIG -= app_bundle
|
||||
|
||||
DESTDIR = $${OUT_PWD}/../bin
|
||||
|
||||
LIBS += -L$$OUT_PWD/../lib -lzeiterfassunglib
|
||||
LIBS += -L$$OUT_PWD/../lib -lzeiterfassungguilib
|
||||
|
||||
INCLUDEPATH += $$PWD/../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../zeiterfassungguilib
|
||||
DEPENDPATH += $$PWD/../zeiterfassungguilib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
|
@@ -2,12 +2,12 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "replies/getuserinforeply.h"
|
||||
|
||||
namespace Ui { class AboutMeDialog; }
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT AboutMeDialog : public QDialog
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT AboutMeDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -2,13 +2,13 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
namespace Ui {
|
||||
class AuthenticationDialog;
|
||||
}
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT AuthenticationDialog : public QDialog
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT AuthenticationDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -37,7 +37,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../resources.qrc">:/zeiterfassung/zeiterfassunglib/images/authentication.png</pixmap>
|
||||
<pixmap resource="../resources.qrc">:/zeiterfassungguilib/images/authentication.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
@@ -3,11 +3,11 @@
|
||||
#include <QDialog>
|
||||
#include <QLocale>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
namespace Ui { class LanguageSelectionDialog; }
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT LanguageSelectionDialog : public QDialog
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT LanguageSelectionDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -2,12 +2,12 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class ZeiterfassungSettings;
|
||||
namespace Ui { class SettingsDialog; }
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT SettingsDialog : public QDialog
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT SettingsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
@@ -5,7 +5,7 @@
|
||||
#include <QMainWindow>
|
||||
#include <QMap>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "replies/getuserinforeply.h"
|
||||
#include "replies/getprojectsreply.h"
|
||||
#include "replies/getpresencestatusreply.h"
|
||||
@@ -20,7 +20,7 @@ class ZeiterfassungSettings;
|
||||
class StripFactory;
|
||||
class StripsWidget;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT MainWindow : public QMainWindow
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -12,7 +12,7 @@
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/icon.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/icon.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/icon.png</normaloff>:/zeiterfassungguilib/images/icon.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QVBoxLayout" stretch="0,0">
|
||||
@@ -31,7 +31,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/previous.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/previous.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/previous.png</normaloff>:/zeiterfassungguilib/images/previous.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -45,7 +45,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/next.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/next.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/next.png</normaloff>:/zeiterfassungguilib/images/next.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -75,7 +75,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/now.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/now.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/now.png</normaloff>:/zeiterfassungguilib/images/now.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -249,7 +249,7 @@
|
||||
<action name="actionQuit">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/quit.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/quit.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/quit.png</normaloff>:/zeiterfassungguilib/images/quit.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Quit</string>
|
||||
@@ -258,7 +258,7 @@
|
||||
<action name="actionAboutMe">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/user.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/user.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/user.png</normaloff>:/zeiterfassungguilib/images/user.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>About &Me</string>
|
||||
@@ -267,7 +267,7 @@
|
||||
<action name="actionAboutzeiterfassung">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/about.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/about.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/about.png</normaloff>:/zeiterfassungguilib/images/about.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>About &zeiterfassung</string>
|
||||
@@ -281,7 +281,7 @@
|
||||
<action name="actionToday">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/today.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/today.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/today.png</normaloff>:/zeiterfassungguilib/images/today.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Today</string>
|
||||
@@ -290,7 +290,7 @@
|
||||
<action name="actionRefresh">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/refresh.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/refresh.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/refresh.png</normaloff>:/zeiterfassungguilib/images/refresh.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Refresh everything</string>
|
||||
@@ -299,7 +299,7 @@
|
||||
<action name="actionSettings">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/settings.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/settings.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/settings.png</normaloff>:/zeiterfassungguilib/images/settings.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Settings</string>
|
||||
@@ -308,7 +308,7 @@
|
||||
<action name="actionHelp">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/zeiterfassung/zeiterfassunglib/images/help.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/help.png</iconset>
|
||||
<normaloff>:/zeiterfassungguilib/images/help.png</normaloff>:/zeiterfassungguilib/images/help.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Help</string>
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT CreateBookingReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT CreateBookingReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT CreateTimeAssignmentReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT CreateTimeAssignmentReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT DeleteBookingReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT DeleteBookingReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT DeleteTimeAssignmentReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT DeleteTimeAssignmentReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,12 +5,12 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QVector>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetBookingsReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetBookingsReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,12 +4,12 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetPresenceStatusReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetPresenceStatusReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,12 +5,12 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QVector>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetProjectsReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetProjectsReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,10 +5,10 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QByteArray>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetReportReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetReportReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,12 +5,12 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QVector>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetTimeAssignmentsReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetTimeAssignmentsReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,12 +4,12 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT GetUserInfoReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT GetUserInfoReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT LoginPageReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT LoginPageReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT LoginReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT LoginReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT UpdateBookingReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT UpdateBookingReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -4,10 +4,10 @@
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "zeiterfassungreply.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT UpdateTimeAssignmentReply : public ZeiterfassungReply
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT UpdateTimeAssignmentReply : public ZeiterfassungReply
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -2,11 +2,11 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class ZeiterfassungApi;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT ZeiterfassungReply : public QObject
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT ZeiterfassungReply : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,12 +5,12 @@
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class QUiLoader;
|
||||
class QByteArray;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT StripFactory : public QObject
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT StripFactory : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include <QWidget>
|
||||
#include <QTime>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
#include "replies/getbookingsreply.h"
|
||||
#include "replies/gettimeassignmentsreply.h"
|
||||
|
||||
@@ -15,7 +15,7 @@ template <typename T> class QVector;
|
||||
|
||||
class MainWindow;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT StripsWidget : public QWidget
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT StripsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
10
zeiterfassungguilib/timeutils.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <QTime>
|
||||
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
int ZEITERFASSUNGGUILIBSHARED_EXPORT timeToSeconds(const QTime &time);
|
||||
QTime ZEITERFASSUNGGUILIBSHARED_EXPORT timeBetween(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGGUILIBSHARED_EXPORT timeAdd(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGGUILIBSHARED_EXPORT timeNormalise(const QTime &time);
|
@@ -7,7 +7,7 @@
|
||||
#include <QDate>
|
||||
#include <QTime>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class QNetworkAccessManager;
|
||||
|
||||
@@ -26,7 +26,7 @@ class GetProjectsReply;
|
||||
class GetReportReply;
|
||||
class GetPresenceStatusReply;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT ZeiterfassungApi : public QObject
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT ZeiterfassungApi : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -1,6 +1,6 @@
|
||||
QT += core network gui widgets uitools
|
||||
|
||||
TARGET = zeiterfassunglib
|
||||
TARGET = zeiterfassungguilib
|
||||
TEMPLATE = lib
|
||||
|
||||
CONFIG += c++14
|
||||
@@ -8,7 +8,7 @@ CONFIG += c++14
|
||||
DESTDIR = $${OUT_PWD}/../lib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
DEFINES += ZEITERFASSUNGLIB_LIBRARY
|
||||
DEFINES += ZEITERFASSUNGGUILIB_LIBRARY
|
||||
|
||||
SOURCES += mainwindow.cpp \
|
||||
stripfactory.cpp \
|
||||
@@ -43,7 +43,7 @@ HEADERS += cpp14polyfills.h \
|
||||
stripswidget.h \
|
||||
timeutils.h \
|
||||
zeiterfassungapi.h \
|
||||
zeiterfassunglib_global.h \
|
||||
zeiterfassungguilib_global.h \
|
||||
zeiterfassungplugin.h \
|
||||
zeiterfassungsettings.h \
|
||||
dialogs/aboutmedialog.h \
|
||||
@@ -72,10 +72,10 @@ FORMS += mainwindow.ui \
|
||||
dialogs/authenticationdialog.ui \
|
||||
dialogs/aboutmedialog.ui
|
||||
|
||||
RESOURCES += zeiterfassunglib_resources.qrc
|
||||
RESOURCES += zeiterfassungguilib_resources.qrc
|
||||
|
||||
TRANSLATIONS += translations/zeiterfassunglib_en.ts \
|
||||
translations/zeiterfassunglib_de.ts
|
||||
TRANSLATIONS += translations/zeiterfassungguilib_en.ts \
|
||||
translations/zeiterfassungguilib_de.ts
|
||||
|
||||
include(../lrelease.pri)
|
||||
|
9
zeiterfassungguilib/zeiterfassungguilib_global.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(ZEITERFASSUNGGUILIB_LIBRARY)
|
||||
# define ZEITERFASSUNGGUILIBSHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define ZEITERFASSUNGGUILIBSHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/zeiterfassung/zeiterfassunglib">
|
||||
<qresource prefix="/zeiterfassungguilib">
|
||||
<file>images/about.png</file>
|
||||
<file>images/authentication.png</file>
|
||||
<file>images/help.png</file>
|
@@ -2,12 +2,12 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class MainWindow;
|
||||
class StripsWidget;
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT ZeiterfassungPlugin : public QObject
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT ZeiterfassungPlugin : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -6,9 +6,9 @@
|
||||
#include <QStringList>
|
||||
#include <QDate>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
#include "zeiterfassungguilib_global.h"
|
||||
|
||||
class ZEITERFASSUNGLIBSHARED_EXPORT ZeiterfassungSettings : public QSettings
|
||||
class ZEITERFASSUNGGUILIBSHARED_EXPORT ZeiterfassungSettings : public QSettings
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QTime>
|
||||
|
||||
#include "zeiterfassunglib_global.h"
|
||||
|
||||
int ZEITERFASSUNGLIBSHARED_EXPORT timeToSeconds(const QTime &time);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeBetween(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeAdd(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeNormalise(const QTime &time);
|
@@ -1,9 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(ZEITERFASSUNGLIB_LIBRARY)
|
||||
# define ZEITERFASSUNGLIBSHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define ZEITERFASSUNGLIBSHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|