mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kdepim: adjust to recent changes
This commit is contained in:
parent
c3d54c6f71
commit
72a3d44af2
31 changed files with 89 additions and 25 deletions
|
@ -117,7 +117,12 @@ configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCu
|
||||||
############### search Boost ###############
|
############### search Boost ###############
|
||||||
|
|
||||||
find_package(Boost 1.34.0)
|
find_package(Boost 1.34.0)
|
||||||
set_package_properties(Boost PROPERTIES DESCRIPTION "Boost C++ Libraries" URL "http://www.boost.org" TYPE REQUIRED PURPOSE "Boost is required for building most KDEPIM applications")
|
set_package_properties(Boost PROPERTIES
|
||||||
|
DESCRIPTION "Boost C++ Libraries"
|
||||||
|
URL "http://www.boost.org"
|
||||||
|
TYPE REQUIRED PURPOSE
|
||||||
|
"Boost is required for building most KDEPIM applications"
|
||||||
|
)
|
||||||
|
|
||||||
# Kleopatra needs to know if the topological.hpp header exists (part of Boost_graph).
|
# Kleopatra needs to know if the topological.hpp header exists (part of Boost_graph).
|
||||||
find_path(Boost_TOPOLOGICAL_SORT_DIR NAMES boost/graph/topological_sort.hpp PATHS ${Boost_INCLUDE_DIRS})
|
find_path(Boost_TOPOLOGICAL_SORT_DIR NAMES boost/graph/topological_sort.hpp PATHS ${Boost_INCLUDE_DIRS})
|
||||||
|
@ -146,10 +151,21 @@ endif()
|
||||||
# If the KDEPIM_ONLY_KLEO option is true
|
# If the KDEPIM_ONLY_KLEO option is true
|
||||||
if(KDEPIM_ONLY_KLEO)
|
if(KDEPIM_ONLY_KLEO)
|
||||||
find_package(QGpgme)
|
find_package(QGpgme)
|
||||||
set_package_properties(QGpgme PROPERTIES DESCRIPTION "The QGpgME library" URL "http://www.kde.org" TYPE REQUIRED PURPOSE "QGpgME is required to build Kleopatra.")
|
set_package_properties(QGpgme PROPERTIES
|
||||||
|
DESCRIPTION "The QGpgME library"
|
||||||
|
URL "http://www.kde.org"
|
||||||
|
TYPE REQUIRED
|
||||||
|
PURPOSE "QGpgME is required to build Kleopatra."
|
||||||
|
)
|
||||||
|
|
||||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDEPIM_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDEPIM_DEFINITIONS})
|
||||||
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDEPIMLIBS_INCLUDE_DIRS} ${QT_QTDBUS_INCLUDE_DIR})
|
include_directories (
|
||||||
|
${CMAKE_SOURCE_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${KDE4_INCLUDES}
|
||||||
|
${KDEPIMLIBS_INCLUDE_DIRS}
|
||||||
|
${QT_QTDBUS_INCLUDE_DIR}
|
||||||
|
)
|
||||||
include(kleopatra/ConfigureChecks.cmake)
|
include(kleopatra/ConfigureChecks.cmake)
|
||||||
|
|
||||||
add_subdirectory(libkleo)
|
add_subdirectory(libkleo)
|
||||||
|
@ -162,13 +178,27 @@ else()
|
||||||
############### Find the stuff we need ###############
|
############### Find the stuff we need ###############
|
||||||
# Akonadi
|
# Akonadi
|
||||||
find_package(Akonadi 1.12.90 QUIET CONFIG)
|
find_package(Akonadi 1.12.90 QUIET CONFIG)
|
||||||
set_package_properties(Akonadi PROPERTIES DESCRIPTION "Akonadi server libraries" URL "http://pim.kde.org/akonadi" TYPE REQUIRED PURPOSE "Akonadi is required to build KDEPIM")
|
set_package_properties(Akonadi PROPERTIES
|
||||||
|
DESCRIPTION "Akonadi server libraries"
|
||||||
|
URL "http://pim.kde.org/akonadi"
|
||||||
|
TYPE REQUIRED
|
||||||
|
PURPOSE "Akonadi is required to build KDEPIM"
|
||||||
|
)
|
||||||
|
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
set_package_properties(ZLIB PROPERTIES DESCRIPTION "The Zlib compression library" URL "http://www.zlib.net" TYPE REQUIRED)
|
set_package_properties(ZLIB PROPERTIES
|
||||||
|
DESCRIPTION "The Zlib compression library"
|
||||||
|
URL "http://www.zlib.net"
|
||||||
|
TYPE REQUIRED
|
||||||
|
)
|
||||||
|
|
||||||
find_package(QGpgme)
|
find_package(QGpgme)
|
||||||
set_package_properties(QGpgme PROPERTIES DESCRIPTION "The QGpgMe library" URL "http://www.kde.org" TYPE RECOMMENDED PURPOSE "QGpgME is required to build KMail, KOrganizer and Kleopatra")
|
set_package_properties(QGpgme PROPERTIES
|
||||||
|
DESCRIPTION "The QGpgMe library"
|
||||||
|
URL "http://www.kde.org"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
PURPOSE "QGpgME is required to build KMail, KOrganizer and Kleopatra"
|
||||||
|
)
|
||||||
|
|
||||||
find_package(Grantlee 0.3.0 QUIET CONFIG)
|
find_package(Grantlee 0.3.0 QUIET CONFIG)
|
||||||
set_package_properties(Grantlee PROPERTIES
|
set_package_properties(Grantlee PROPERTIES
|
||||||
|
@ -178,28 +208,46 @@ else()
|
||||||
PURPOSE "Grantlee is requires for kmail and templating, theming for KJots, KaddressBook, KNotes and MessageViewer(KMail)."
|
PURPOSE "Grantlee is requires for kmail and templating, theming for KJots, KaddressBook, KNotes and MessageViewer(KMail)."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# FIXME: rip it off
|
||||||
find_package(Baloo 4.14.0 QUIET CONFIG)
|
find_package(Baloo 4.14.0 QUIET CONFIG)
|
||||||
set_package_properties(Baloo PROPERTIES
|
set_package_properties(Baloo PROPERTIES
|
||||||
DESCRIPTION "The Baloo libraries"
|
DESCRIPTION "The Baloo libraries"
|
||||||
URL "http://www.kde.org"
|
URL "http://www.kde.org"
|
||||||
# FIXME: rip it off
|
TYPE RECOMMENDED
|
||||||
# TYPE REQUIRED
|
|
||||||
PURPOSE "Baloo provides search capabilities in KMail and Akonadi"
|
PURPOSE "Baloo provides search capabilities in KMail and Akonadi"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Xsltproc
|
# Xsltproc
|
||||||
find_package(Xsltproc)
|
find_package(Xsltproc)
|
||||||
set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libxslt" TYPE REQUIRED PURPOSE "Required to generate D-Bus interfaces.")
|
set_package_properties(Xsltproc PROPERTIES
|
||||||
|
DESCRIPTION "XSLT processor from libxslt"
|
||||||
|
TYPE REQUIRED
|
||||||
|
PURPOSE "Required to generate D-Bus interfaces."
|
||||||
|
)
|
||||||
|
|
||||||
find_package(QJSON)
|
find_package(QJSON)
|
||||||
set_package_properties(QJSON PROPERTIES DESCRIPTION "QJSON" URL "http://qjson.sourceforge.net/" TYPE REQUIRED PURPOSE "Qt library for handling JSON data")
|
set_package_properties(QJSON PROPERTIES
|
||||||
|
DESCRIPTION "QJSON"
|
||||||
|
URL "http://qjson.sourceforge.net/"
|
||||||
|
TYPE REQUIRED
|
||||||
|
PURPOSE "Qt library for handling JSON data"
|
||||||
|
)
|
||||||
|
|
||||||
find_package(Prison QUIET CONFIG)
|
find_package(Prison QUIET CONFIG)
|
||||||
set_package_properties(Prison PROPERTIES DESCRIPTION "The Prison library" URL "http://projects.kde.org/prison" TYPE OPTIONAL PURPOSE "Needed to show mobile barcodes of your contacts")
|
set_package_properties(Prison PROPERTIES
|
||||||
|
DESCRIPTION "The Prison library"
|
||||||
|
URL "http://projects.kde.org/prison"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed to show mobile barcodes of your contacts"
|
||||||
|
)
|
||||||
|
|
||||||
# Libkgapi2
|
# Libkgapi2
|
||||||
find_package(LibKGAPI2 2.2.0 QUIET CONFIG)
|
find_package(LibKGAPI2 2.2.0 QUIET CONFIG)
|
||||||
set_package_properties(LibKGAPI2 PROPERTIES DESCRIPTION "KDE-based library for accessing various Google services" URL "https://projects.kde.org/libkgapi" TYPE OPTIONAL PURPOSE "LibKGAPI is required to build Google Drive Storage Service")
|
set_package_properties(LibKGAPI2 PROPERTIES
|
||||||
|
DESCRIPTION "KDE-based library for accessing various Google services"
|
||||||
|
URL "https://projects.kde.org/libkgapi"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "LibKGAPI is required to build Google Drive Storage Service")
|
||||||
|
|
||||||
if( LibKGAPI2_FOUND )
|
if( LibKGAPI2_FOUND )
|
||||||
add_definitions( -DKDEPIM_STORAGESERVICE_GDRIVE )
|
add_definitions( -DKDEPIM_STORAGESERVICE_GDRIVE )
|
||||||
|
@ -208,9 +256,21 @@ else()
|
||||||
|
|
||||||
############### Needed commands before building anything ###############
|
############### Needed commands before building anything ###############
|
||||||
|
|
||||||
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDEPIM_DEFINITIONS} ${AKONADI_DEFINITIONS})
|
add_definitions (
|
||||||
|
${QT_DEFINITIONS}
|
||||||
|
${KDE4_DEFINITIONS}
|
||||||
|
${KDEPIM_DEFINITIONS}
|
||||||
|
${AKONADI_DEFINITIONS}
|
||||||
|
)
|
||||||
|
|
||||||
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDEPIMLIBS_INCLUDE_DIRS} ${KDE4_INCLUDES} ${QT_QTDBUS_INCLUDE_DIR} ${Boost_INCLUDE_DIR})
|
include_directories (
|
||||||
|
${CMAKE_SOURCE_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${KDEPIMLIBS_INCLUDE_DIRS}
|
||||||
|
${KDE4_INCLUDES}
|
||||||
|
${QT_QTDBUS_INCLUDE_DIR}
|
||||||
|
${Boost_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
if(NOT KDEPIMLIBS_KRESOURCES_LIBRARY)
|
if(NOT KDEPIMLIBS_KRESOURCES_LIBRARY)
|
||||||
add_definitions( -DKDEPIM_NO_KRESOURCES )
|
add_definitions( -DKDEPIM_NO_KRESOURCES )
|
||||||
|
|
|
@ -7,8 +7,6 @@ add_definitions( -DQT_NO_CAST_TO_ASCII )
|
||||||
# Laurent install it if you want to debug it
|
# Laurent install it if you want to debug it
|
||||||
#add_subdirectory(tests)
|
#add_subdirectory(tests)
|
||||||
|
|
||||||
add_definitions(-DQT_STATICPLUGIN)
|
|
||||||
|
|
||||||
set(libcomposereditor_ng_SRCS
|
set(libcomposereditor_ng_SRCS
|
||||||
composereditor.cpp
|
composereditor.cpp
|
||||||
composerview.cpp
|
composerview.cpp
|
||||||
|
|
|
@ -109,10 +109,8 @@ void KWebSpellChecker::checkSpellingOfString(const QString& word, int* misspelli
|
||||||
QString str = finder.string().mid(start, end - start);
|
QString str = finder.string().mid(start, end - start);
|
||||||
if (isValidWord(str))
|
if (isValidWord(str))
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
qDebug() << "Word at " << start << " word = '"
|
qDebug() << "Word at " << start << " word = '"
|
||||||
<< str << "', len = " << str.length();
|
<< str << "', len = " << str.length();
|
||||||
#endif
|
|
||||||
if (m_speller->isMisspelled(str))
|
if (m_speller->isMisspelled(str))
|
||||||
{
|
{
|
||||||
*misspellingLocation = start;
|
*misspellingLocation = start;
|
||||||
|
|
1
kdepim/kmail/configuredialog/customtemplates_base.ui
Symbolic link
1
kdepim/kmail/configuredialog/customtemplates_base.ui
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../templateparser/customtemplates_base.ui
|
|
@ -4,8 +4,9 @@ add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5300)
|
||||||
|
|
||||||
add_definitions( -DQT_NO_CAST_FROM_ASCII )
|
add_definitions( -DQT_NO_CAST_FROM_ASCII )
|
||||||
add_definitions( -DQT_NO_CAST_TO_ASCII )
|
add_definitions( -DQT_NO_CAST_TO_ASCII )
|
||||||
|
if(BALOO_FOUND)
|
||||||
|
add_definitions(-DHAVE_BALOO)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_TESTING)
|
if(ENABLE_TESTING)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
#include <Akonadi/Session>
|
#include <Akonadi/Session>
|
||||||
#include <Akonadi/Job>
|
#include <Akonadi/Job>
|
||||||
|
|
||||||
|
#ifdef HAVE_BALOO
|
||||||
#include <baloo/pim/contactcompleter.h>
|
#include <baloo/pim/contactcompleter.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <KPIMUtils/Email>
|
#include <KPIMUtils/Email>
|
||||||
#include <KColorScheme>
|
#include <KColorScheme>
|
||||||
|
@ -381,6 +383,7 @@ QStringList AddresseeLineEdit::Private::cleanupBalooContact(const QStringList &l
|
||||||
|
|
||||||
void AddresseeLineEdit::Private::searchInBaloo()
|
void AddresseeLineEdit::Private::searchInBaloo()
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_BALOO
|
||||||
const QString trimmedString = m_searchString.trimmed();
|
const QString trimmedString = m_searchString.trimmed();
|
||||||
Baloo::PIM::ContactCompleter com(trimmedString, 20);
|
Baloo::PIM::ContactCompleter com(trimmedString, 20);
|
||||||
const QStringList listEmail = cleanupBalooContact(com.complete());
|
const QStringList listEmail = cleanupBalooContact(com.complete());
|
||||||
|
@ -390,6 +393,7 @@ void AddresseeLineEdit::Private::searchInBaloo()
|
||||||
doCompletion( m_lastSearchMode );
|
doCompletion( m_lastSearchMode );
|
||||||
// if ( q->hasFocus() || q->completionBox()->hasFocus() ) {
|
// if ( q->hasFocus() || q->completionBox()->hasFocus() ) {
|
||||||
//}
|
//}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddresseeLineEdit::Private::alternateColor()
|
void AddresseeLineEdit::Private::alternateColor()
|
||||||
|
|
1
kdepim/messageviewer/widgets/settings.ui
Symbolic link
1
kdepim/messageviewer/widgets/settings.ui
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../settings/settings.ui
|
|
@ -29,6 +29,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
|
||||||
|
|
||||||
#include <KFileDialog>
|
#include <KFileDialog>
|
||||||
#include <KMessageBox>
|
#include <KMessageBox>
|
||||||
|
#include <KLocale>
|
||||||
|
|
||||||
#include <QTreeWidgetItem>
|
#include <QTreeWidgetItem>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
Loading…
Add table
Reference in a new issue