Commit d742f66c authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Project renamed to calindori

parent 10b4c60e
project(mobilecalendar)
project(calindori)
cmake_minimum_required(VERSION 2.8.12)
set(KF5_MIN_VERSION "5.18.0")
......@@ -7,7 +7,7 @@ set(QT_MIN_VERSION "5.5.0")
################# Disallow in-source build #################
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "Mobile Calendar requires an out of source build. Please create a separate build directory.")
message(FATAL_ERROR "Calindori requires an out of source build. Please create a separate build directory.")
endif()
......@@ -58,8 +58,8 @@ if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ecm_install_po_files_as_qm(po)
endif()
install(FILES org.kde.phone.mobilecalendar.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(PROGRAMS org.kde.phone.mobilecalendar.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.phone.calindori.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(PROGRAMS org.kde.phone.calindori.desktop DESTINATION ${KDE_INSTALL_APPDIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
# Mobile Calendar
# Calindori
Calendar for Plasma Mobile
......
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>org.kde.phone.mobilecalendar.desktop</id>
<id>org.kde.phone.calindori.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3+</project_license>
<name>Mobile Calendar</name>
<summary>=Mobile Calendar</summary>
<name>Calindori</name>
<summary>=Calindori</summary>
<description>
<p>
<ul>
......@@ -21,6 +21,6 @@
</screenshots>
<project_group>KDE</project_group>
<provides>
<binary>mobilecalendar</binary>
<binary>calindori</binary>
</provides>
</component>
[Desktop Entry]
Name=Mobile Calendar
Comment=Mobile Calendar
Name=Calindori
Comment=Calindori
Version=0.1
Exec=mobilecalendar
MimeType=application/x-mobilecalendar;
Icon=mobilecalendar
Exec=calindori
MimeType=application/x-calindori;
Icon=view-calendar-day
Type=Application
Terminal=false
Categories=Qt;KDE;
......@@ -3,7 +3,7 @@
"runtime": "org.kde.Platform",
"runtime-version": "5.11",
"sdk": "org.kde.Sdk",
"command": "mobilecalendar",
"command": "calindori",
"tags": ["nightly"],
"finish-args": [
"--share=ipc",
......
if (NOT STATIC_LIBRARY)
ecm_create_qm_loader(mobilecalendar_QM_LOADER mobilecalendar_qt)
ecm_create_qm_loader(calindori_QM_LOADER calindori_qt)
endif()
set(mobilecalendar_SRCS
set(calindori_SRCS
main.cpp
)
......@@ -12,9 +12,9 @@ qt5_add_resources(RESOURCES resources.qrc)
# Plugin directory
add_subdirectory(plugins)
add_executable(mobilecalendar ${mobilecalendar_SRCS} ${RESOURCES})
target_link_libraries(mobilecalendar Qt5::Core Qt5::Qml Qt5::Quick Qt5::Test Qt5::Svg KF5::ConfigCore KF5::Plasma)
add_executable(calindori ${calindori_SRCS} ${RESOURCES})
target_link_libraries(calindori Qt5::Core Qt5::Qml Qt5::Quick Qt5::Test Qt5::Svg KF5::ConfigCore KF5::Plasma)
install(TARGETS mobilecalendar ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS calindori ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES contents/ui/mobilecalendar.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
#install(FILES contents/ui/calindori.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
#! /usr/bin/env bash
$EXTRACT_TR_STRINGS `find . -name \*.qml` -o $podir/mobilecalendar_qt.pot
$EXTRACT_TR_STRINGS `find . -name \*.qml` -o $podir/calindori_qt.pot
rm -f rc.cpp
......@@ -20,7 +20,7 @@
import QtQuick 2.1
import QtQuick.Layouts 1.2
import org.kde.kirigami 2.0 as Kirigami
import org.kde.phone.mobilecalendar 0.1 as MobileCalendar
import org.kde.phone.calindori 0.1 as Calindori
Kirigami.ApplicationWindow {
id: root
......@@ -28,7 +28,7 @@ Kirigami.ApplicationWindow {
globalDrawer: Kirigami.GlobalDrawer {
id: drawer
title: "Mobile Calendar"
title: "Calindori"
contentItem.implicitWidth: Math.min (Kirigami.Units.gridUnit * 15, root.width * 0.8)
topContent: Column {
......@@ -145,13 +145,13 @@ Kirigami.ApplicationWindow {
}
}
MobileCalendar.LocalCalendar {
Calindori.LocalCalendar {
id: localCalendar
name: "personal"
}
MobileCalendar.Config {
Calindori.Config {
id: mobileCalendarConfig;
}
}
......@@ -22,7 +22,7 @@ import QtQuick 2.0
import QtQuick.Controls 2.4 as Controls2
import QtQuick.Layouts 1.11
import org.kde.kirigami 2.4 as Kirigami
import org.kde.phone.mobilecalendar 0.1 as MobileCalendar
import org.kde.phone.calindori 0.1 as Calindori
Kirigami.Page {
id: root
......
......@@ -21,7 +21,7 @@ import QtQuick 2.0
import QtQuick.Controls 2.4 as Controls2
import QtQuick.Layouts 1.11
import org.kde.kirigami 2.4 as Kirigami
import org.kde.phone.mobilecalendar 0.1 as MobileCalendar
import org.kde.phone.calindori 0.1 as Calindori
Kirigami.ScrollablePage {
id: root
......@@ -38,7 +38,7 @@ Kirigami.ScrollablePage {
Kirigami.CardsListView {
id: cardsListview
model: MobileCalendar.TodosModel {
model: Calindori.TodosModel {
id: todosModel
filterdt: todoDt
......
......@@ -27,7 +27,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
QCoreApplication::setOrganizationDomain("kde.org");
QCoreApplication::setApplicationName("mobilecalendar");
QCoreApplication::setApplicationName("calindori");
QQmlApplicationEngine engine;
......
set(qmlplugin_SRCS
qmlplugin.cpp
mobilecalendarconfig.cpp
calindoriconfig.cpp
todosmodel.cpp
localcalendar.cpp
)
add_library (mobilecalendarqmlplugin SHARED ${qmlplugin_SRCS})
add_library (calindoriqmlplugin SHARED ${qmlplugin_SRCS})
target_link_libraries (mobilecalendarqmlplugin
target_link_libraries (calindoriqmlplugin
Qt5::Core
Qt5::Qml
Qt5::Quick
......@@ -16,5 +16,5 @@ target_link_libraries (mobilecalendarqmlplugin
KF5::CalendarCore
)
install (TARGETS mobilecalendarqmlplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/phone/mobilecalendar)
install (FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/phone/mobilecalendar)
install (TARGETS calindoriqmlplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/phone/calindori)
install (FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/phone/calindori)
......@@ -16,21 +16,21 @@
*
*/
#include "mobilecalendarconfig.h"
#include "calindoriconfig.h"
#include <KConfig>
#include <KConfigGroup>
class MobileCalendarConfig::Private
class CalindoriConfig::Private
{
public:
Private()
: config("mobilecalendarrc")
: config("calindorirc")
{};
KConfig config;
};
MobileCalendarConfig::MobileCalendarConfig(QObject* parent)
CalindoriConfig::CalindoriConfig(QObject* parent)
: QObject(parent)
, d(new Private)
{
......@@ -40,18 +40,18 @@ MobileCalendarConfig::MobileCalendarConfig(QObject* parent)
}
}
MobileCalendarConfig::~MobileCalendarConfig()
CalindoriConfig::~CalindoriConfig()
{
delete d;
}
QString MobileCalendarConfig::viewMode() const
QString CalindoriConfig::viewMode() const
{
QString viewMode = d->config.group("general").readEntry("view_mode", QString());
return viewMode;
}
void MobileCalendarConfig::setviewMode(const QString & mode)
void CalindoriConfig::setviewMode(const QString & mode)
{
d->config.group("general").writeEntry("view_mode", mode);
d->config.sync();
......
......@@ -21,15 +21,15 @@
#include <QObject>
class MobileCalendarConfig : public QObject
class CalindoriConfig : public QObject
{
Q_OBJECT
Q_PROPERTY(QString viewMode READ viewMode WRITE setviewMode NOTIFY viewModeChanged)
public:
explicit MobileCalendarConfig(QObject* parent = nullptr);
~MobileCalendarConfig() override;
explicit CalindoriConfig(QObject* parent = nullptr);
~CalindoriConfig() override;
QString viewMode() const;
Q_INVOKABLE void setviewMode(const QString& mode);
......
module org.kde.phone.mobilecalendar
plugin mobilecalendarqmlplugin
module org.kde.phone.calindori
plugin calindoriqmlplugin
......@@ -18,7 +18,7 @@
#include "qmlplugin.h"
#include "mobilecalendarconfig.h"
#include "calindoriconfig.h"
#include "localcalendar.h"
#include "todosmodel.h"
#include <QQmlEngine>
......@@ -27,7 +27,7 @@
void QmlPlugins::registerTypes(const char *uri)
{
qmlRegisterType<MobileCalendarConfig>(uri, 0, 1, "Config");
qmlRegisterType<CalindoriConfig>(uri, 0, 1, "Config");
qmlRegisterType<TodosModel>(uri, 0, 1, "TodosModel");
qmlRegisterType<LocalCalendar>(uri, 0, 1, "LocalCalendar");
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment