Remove mobile/ for now, never been completed

parent 8c1375f0
......@@ -74,13 +74,6 @@ set( OKTETA_BUILD_INTERNAL_EXAMPLES NOT OMIT_INTERNAL_EXAMPLES )
set( KASTEN_BUILD_INTERNAL_TEMPLATES NOT OMIT_INTERNAL_TEMPLATES )
set( OKTETA_BUILD_INTERNAL_TEMPLATES NOT OMIT_INTERNAL_TEMPLATES )
# mobile needs
option(OKTETA_MOBILE_UI "Build UI for mobile devices instead of for desktops" FALSE)
if (OKTETA_MOBILE_UI)
find_package(Qt5Quick REQUIRED)
add_definitions( -DOKTETA_MOBILE_UI )
endif (OKTETA_MOBILE_UI)
add_definitions(
-DQT_USE_QSTRINGBUILDER
-DQT_NO_CAST_TO_ASCII
......@@ -122,9 +115,4 @@ add_subdirectory( mimetypes )
add_subdirectory( parts )
add_subdirectory( program )
# program for mobile
if (Qt5Quick_FOUND AND OKTETA_MOBILE_UI)
macro_optional_add_subdirectory(mobile)
endif ()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
project( oktetamobile )
add_subdirectory( kasten )
add_subdirectory( program )
project( mobilekasten )
add_subdirectory( gui )
add_subdirectory( controllers )
project( mobilekastencontrollers )
set( KASTEN_REL_DIR ../../../libs/kasten )
include_directories(
${KASTEN_REL_DIR}/core
${KASTEN_REL_DIR}/core/document
${KASTEN_REL_DIR}/core/io
${KASTEN_REL_DIR}/core/system
${KASTEN_REL_DIR}/gui
${KASTEN_REL_DIR}/gui/controller
# ../core
# ../core/entity
# ../core/document
# ../core/io
# ../core/io/filesystem
# ../core/system
../gui
# ../gui/view
# ../gui/io
# ../gui/system
../gui/shell
../gui/controller
)
set( synchronizecontroller_SRCS
# io/synchronize/synchronizecontroller.cpp
)
set( setremotecontroller_SRCS
# io/setremote/setremotecontroller.cpp
)
set( creatorcontroller_SRCS
# documentsystem/creator/createdialog.cpp
# documentsystem/creator/creatorcontroller.cpp
)
set( loadercontroller_SRCS
documentsystem/loader/loaderactioncontroller.cpp
)
set( modifiedbarcontroller_SRCS
# document/modified/modifiedbarcontroller.cpp
)
set( readonlycontroller_SRCS
# document/readonly/readonlycontroller.cpp
)
set( versioncontroller_SRCS
# view/version/versioncontroller.cpp
)
set( zoomcontroller_SRCS
# view/zoom/zoomcontroller.cpp
)
set( selectcontroller_SRCS
# view/select/selectcontroller.cpp
)
set( clipboardcontroller_SRCS
# io/clipboard/clipboardcontroller.cpp
)
set( insertcontroller_SRCS
# io/insert/insertdialog.cpp
# io/insert/insertcontroller.cpp
)
set( copyascontroller_SRCS
# io/copyas/copyasdialog.cpp
# io/copyas/copyascontroller.cpp
)
set( exportcontroller_SRCS
# io/export/exportdialog.cpp
# io/export/exportcontroller.cpp
)
set( toollistmenucontroller_SRCS
shellwindow/toollistmenu/toollistmenucontroller.cpp
)
set( fullscreencontroller_SRCS
# shellwindow/fullscreen/fullscreencontroller.cpp
)
set( mobilekastencontroller_LIB_SRCS
${setremotecontroller_SRCS}
${versioncontroller_SRCS}
${modifiedbarcontroller_SRCS}
${readonlycontroller_SRCS}
${toollistmenucontroller_SRCS}
${fullscreencontroller_SRCS}
${zoomcontroller_SRCS}
${creatorcontroller_SRCS}
${loadercontroller_SRCS}
${synchronizecontroller_SRCS}
${selectcontroller_SRCS}
${clipboardcontroller_SRCS}
${insertcontroller_SRCS}
${copyascontroller_SRCS}
${exportcontroller_SRCS}
)
set( mobilekastencontrollers_LIB_HDRS
mobilekastencontrollers_export.h
# document/modified/modifiedbarcontroller.h
# document/readonly/readonlycontroller.h
# document/versionview/versionviewtool.h
# documentsystem/close/closecontroller.h
# documentsystem/creator/creatorcontroller.h
# documentsystem/loader/loadercontroller.h
# io/export/exportcontroller.h
# io/insert/insertcontroller.h
# io/setremote/setremotecontroller.h
# io/copyas/copyascontroller.h
# io/clipboard/clipboardcontroller.h
# io/synchronize/synchronizecontroller.h
# view/select/selectcontroller.h
# view/zoom/zoomcontroller.h
# view/zoom/zoombarcontroller.h
# view/version/versioncontroller.h
)
kde4_add_library( kasten2mobilecontrollers SHARED ${mobilekastencontroller_LIB_SRCS} )
target_link_libraries( kasten2mobilecontrollers
kasten2mobilegui
kasten2controllers
kasten2gui
kasten2core
)
set_target_properties( kasten2mobilecontrollers PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install( TARGETS kasten2mobilecontrollers ${INSTALL_TARGETS_DEFAULT_ARGS} )
# install( FILES ${mobilekastencontrollers_LIB_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/kasten COMPONENT Devel )
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "loaderactioncontroller.h"
// Kasten core
#include <documentsyncmanager.h>
// KF5
#include <KLocalizedString>
#include <KFileDialog>
// Qt
#include <QMenuBar>
namespace Kasten2
{
static const char AllFileNamesFilter[] = "*"; // krazy:exclude=doublequote_chars
LoaderActionController::LoaderActionController( DocumentSyncManager* syncManager, QMenuBar* menuBar )
: mSyncManager( syncManager )
{
menuBar->addAction( i18n("Open"), this, SLOT(load()) );
}
void LoaderActionController::setTargetModel( AbstractModel* model )
{
Q_UNUSED( model )
}
void LoaderActionController::load()
{
static const QString allFileNamesFilter = QStringLiteral(AllFileNamesFilter);
const QList<QUrl> urls =
KFileDialog::getOpenUrls( QString()/*mWorkingUrl.url()*/, allFileNamesFilter, /*mWidget*/0 );
foreach( const QUrl& url, urls )
mSyncManager->load( url );
}
LoaderActionController::~LoaderActionController()
{
}
}
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOADERACTIONCONTROLLER_H
#define LOADERACTIONCONTROLLER_H
// lib
#include "mobilekastencontrollers_export.h"
// Kasten gui
#include <abstractactioncontroller.h>
class QMenuBar;
namespace Kasten2
{
class DocumentSyncManager;
class MOBILEKASTENCONTROLLERS_EXPORT LoaderActionController : public AbstractActionController
{
Q_OBJECT
public:
explicit LoaderActionController( DocumentSyncManager* syncManager, QMenuBar* menuBar );
virtual ~LoaderActionController();
public: // AbstractController API
virtual void setTargetModel( AbstractModel* model );
public Q_SLOTS:
void load();
protected:
DocumentSyncManager* mSyncManager;
};
}
#endif
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MOBILEKASTENCONTROLLERS_EXPORT_H
#define MOBILEKASTENCONTROLLERS_EXPORT_H
// KF5
#include <kdemacros.h>
#ifndef MOBILEKASTENCONTROLLERS_EXPORT
// building the library?
# if defined(MAKE_MOBILEKASTENCONTROLLERS_LIB)
# define MOBILEKASTENCONTROLLERS_EXPORT KDE_EXPORT
// using the library
# else
# define MOBILEKASTENCONTROLLERS_EXPORT KDE_IMPORT
# endif
#endif
# ifndef MOBILEKASTENCONTROLLER_EXPORT_DEPRECATED
# define MOBILEKASTENCONTROLLER_EXPORT_DEPRECATED KDE_DEPRECATED MOBILEKASTENCONTROLLERS_EXPORT
# endif
#endif
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "toollistmenucontroller.h"
// lib
// #include <widgetsdockable.h>
// #include <toolviewdockwidget.h>
// Qt
#include <QAction>
namespace Kasten2
{
ToolListMenuController::ToolListMenuController( /*If::WidgetsDockable* widgetsDockable,
KXMLGUIClient* guiClient*/ )
// : mWidgetsDockable( widgetsDockable ), mGuiClient( guiClient )
{
// TODO: for now this is only called on start, so first create all tools/views before this controller
// updateActions();
}
void ToolListMenuController::setTargetModel( AbstractModel* model )
{
Q_UNUSED(model)
}
#if 0
void ToolListMenuController::updateActions()
{
mGuiClient->unplugActionList( ToolListActionListId );
qDeleteAll( mToolActionList );
mToolActionList.clear();
const QList<ToolViewDockWidget*> dockWidgets = mWidgetsDockable->dockWidgets();
foreach( const ToolViewDockWidget* dockWidget, dockWidgets )
{
QAction *action = dockWidget->toggleViewAction();
action->setText( dockWidget->windowTitle() );
// action->setText( mToolView->title() );
mToolActionList.append( action );
}
mGuiClient->plugActionList( ToolListActionListId, mToolActionList );
}
#endif
}
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TOOLLISTMENUCONTROLLER_H
#define TOOLLISTMENUCONTROLLER_H
// lib
#include "mobilekastencontrollers_export.h"
// Kasten gui
#include <abstractactioncontroller.h>
// Qt
#include <QtCore/QList>
class QAction;
class KXMLGUIClient;
namespace Kasten2
{
class ViewManager;
namespace If {
// class WidgetsDockable;
}
class MOBILEKASTENCONTROLLERS_EXPORT ToolListMenuController : public AbstractActionController
{
Q_OBJECT
public:
ToolListMenuController( /*If::ToolViewShowable* actionAable, KXMLGUIClient* guiClient*/ );
public: // AbstractController API
virtual void setTargetModel( AbstractModel* model );
private:
void updateActions();
protected:
// If::WidgetsDockable* mWidgetsDockable;
// KXMLGUIClient* mGuiClient;
// QList<QAction*> mToolActionList;
};
}
#endif
set( KASTEN_REL_DIR ../../../libs/kasten )
include_directories(
${KASTEN_REL_DIR}/gui
${KASTEN_REL_DIR}/gui/controller
${KASTEN_REL_DIR}/gui/view
${KASTEN_REL_DIR}/core
${KASTEN_REL_DIR}/core/system
${KASTEN_REL_DIR}/core/io
${KASTEN_REL_DIR}/core/document
# view
# io
# system
shell
# controller
)
set( mobilekastengui_shell_SRCS
shell/mobileshellwindow.cpp
)
set( mobilekastengui_shell_HDRS
shell/mobileshellwindow.h
)
set( mobilekastengui_controller_SRCS
controller/abstractactioncontroller.cpp
)
set( mobilekastengui_controller_HDRS
controller/abstractactioncontroller.h
)
set( mobilekastengui_LIB_SRCS
${mobilekastengui_shell_SRCS}
${mobilekastengui_controller_SRCS}
)
set( mobilekastengui_LIB_HDRS
mobilekastengui_export.h
${mobilekastengui_shell_HDRS}
${mobilekastengui_controller_HDRS}
)
kde4_add_library( kasten2mobilegui SHARED ${mobilekastengui_LIB_SRCS} )
target_link_libraries( kasten2mobilegui
kasten2gui
kasten2core
)
set_target_properties( kasten2mobilegui PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install( TARGETS kasten2mobilegui ${INSTALL_TARGETS_DEFAULT_ARGS} )
# install( FILES ${mobilekastengui_LIB_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/kasten COMPONENT Devel )
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "abstractactioncontroller.h"
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ABSTRACTACTIONCONTROLLER_H
#define ABSTRACTACTIONCONTROLLER_H
// lib
#include "mobilekastengui_export.h"
// Kasten
#include <abstractcontroller.h>
namespace Kasten2
{
class MOBILEKASTENGUI_EXPORT AbstractActionController : public AbstractController
{
Q_OBJECT
public: // API to be implemented
};
}
#endif
<
/*
This file is part of the Kasten Framework, made within the KDE community.
Copyright 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its