diff options
author | Sandro S. Andrade <[email protected]> | 2014-10-28 11:22:22 -0300 |
---|---|---|
committer | Sandro S. Andrade <[email protected]> | 2014-10-28 15:24:07 +0100 |
commit | 63b4ed0994341b1342eeec6c543f7eb0cfe61b66 (patch) | |
tree | c6324a63ba1c25efa06da975af7062f4637be9d4 /examples/uml/duse-mt/src/libs | |
parent | 001a7e58fcaa2b8c149b8e4a223c8d5f097c0ef9 (diff) |
New DuSE-MT location: [email protected]:duse-mt/duse-mt.git
Change-Id: I4f3e65542703e39a54d20fa2c418fc61a1dca59c
Reviewed-by: Sandro S. Andrade <[email protected]>
Diffstat (limited to 'examples/uml/duse-mt/src/libs')
14 files changed, 0 insertions, 791 deletions
diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro deleted file mode 100644 index b1e06eb6..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro +++ /dev/null @@ -1,18 +0,0 @@ -include(../../duse-mt-library.pri) - -HEADERS += \ - duseinterfaces_global.h \ - icore.h\ - iuicontroller.h \ - iprojectcontroller.h \ - iplugincontroller.h \ - iplugin.h - -SOURCES += \ - icore.cpp \ - iuicontroller.cpp \ - iprojectcontroller.cpp \ - iplugincontroller.cpp \ - iplugin.cpp - -DEFINES += DUSEINTERFACES_LIBRARY diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri deleted file mode 100644 index e56115da..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_LIB_NAME = DuseInterfaces diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h deleted file mode 100644 index df69b9ae..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef DUSEINTERFACES_GLOBAL_H -#define DUSEINTERFACES_GLOBAL_H - -#include <QtCore/qglobal.h> - -#if defined(DUSEINTERFACES_LIBRARY) -# define DUSEINTERFACESSHARED_EXPORT Q_DECL_EXPORT -#else -# define DUSEINTERFACESSHARED_EXPORT Q_DECL_IMPORT -#endif - -#endif // DUSEINTERFACES_GLOBAL_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp deleted file mode 100644 index 3d62fe47..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "icore.h" - -namespace DuSE -{ - -ICore *ICore::_self = 0; - -ICore::~ICore() -{ - _self = 0; -} - -ICore *ICore::self() -{ - return _self; -} - -ICore::ICore() -{ - Q_ASSERT(_self == 0); - _self = this; -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h b/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h deleted file mode 100644 index 704dd080..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ICORE_H -#define ICORE_H - -#include "duseinterfaces_global.h" - -namespace DuSE -{ - -class IPluginController; -class IProjectController; -class IUiController; - -class DUSEINTERFACESSHARED_EXPORT ICore -{ -public: - virtual ~ICore(); - static ICore *self(); - - virtual IPluginController *pluginController() = 0; - virtual IProjectController *projectController() = 0; - virtual IUiController *uiController() = 0; - -protected: - ICore(); - static ICore *_self; -}; - -} - -#endif // ICORE_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp deleted file mode 100644 index c5514646..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iplugin.h" - -namespace DuSE -{ - -IPlugin::IPlugin(QObject *parent) : - QObject(parent) -{ -} - -IPlugin::~IPlugin() -{ -} - -QString IPlugin::name() -{ - return _name; -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h deleted file mode 100644 index 07c13739..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPLUGIN_H -#define IPLUGIN_H - -#include "duseinterfaces_global.h" - -#include "icore.h" - -#include <QtCore/QObject> -#include <QtCore/QString> - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IPlugin : public QObject -{ - Q_OBJECT - -public: - IPlugin(QObject *parent = 0); - virtual ~IPlugin(); - - virtual bool initialize() = 0; - - virtual QString name(); - -protected: - QString _name; -}; - -} - -#endif // IPLUGIN_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp deleted file mode 100644 index cf886620..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iplugincontroller.h" - -namespace DuSE -{ - -IPluginController::~IPluginController() -{ -} - -IPluginController::IPluginController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h deleted file mode 100644 index b21e009c..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPLUGINCONTROLLER_H -#define IPLUGINCONTROLLER_H - -#include "duseinterfaces_global.h" - -#include <QtCore/QObject> - -#include <QtCore/QPair> -#include <QtCore/QJsonObject> - -QT_BEGIN_NAMESPACE -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class IPlugin; - -class DUSEINTERFACESSHARED_EXPORT IPluginController : public QObject -{ - Q_OBJECT - -public: - virtual ~IPluginController(); - - virtual bool initialize() = 0; - - virtual const QHash<QString, QMetaModelPlugin *> &metamodelPlugins() const = 0; - virtual const QList<DuSE::IPlugin *> &dusemtPlugins() const = 0; - - virtual QStringList errorStrings() const = 0; - - template <class T> - QList<T *> pluginsByType() const - { - QList<T *> foundPlugins; - T *tPlugin; - const QList<IPlugin *> &plugins = dusemtPlugins(); - foreach (IPlugin *dusePlugin, plugins) - if ((tPlugin = dynamic_cast<T *>(dusePlugin))) - foundPlugins << tPlugin; - return foundPlugins; - } - -protected: - IPluginController(); -}; - -} - -#endif // IPLUGINCONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp deleted file mode 100644 index d63ec0ed..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iprojectcontroller.h" - -namespace DuSE -{ - -IProjectController::~IProjectController() -{ -} - -IProjectController::IProjectController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h deleted file mode 100644 index 5442cbca..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPROJECTCONTROLLER_H -#define IPROJECTCONTROLLER_H - -#include "duseinterfaces_global.h" - -#include <QtCore/QObject> - -#include <QtCore/QString> - -QT_BEGIN_NAMESPACE -class QWidget; - -class QModelingObject; -class QModelingElement; -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IProjectController : public QObject -{ - Q_OBJECT - -public: - virtual ~IProjectController(); - - virtual bool initialize() = 0; - - virtual QStringList errorStrings() const = 0; - virtual QString currentModelFileName() const = 0; - virtual QList<QModelingObject *> currentModelObjects() const = 0; - virtual QList<QModelingElement *> currentModelElements() const = 0; - -public Q_SLOTS: - virtual bool openModel(const QString &fileName) = 0; - virtual bool closeModel() = 0; - virtual bool saveModel() = 0; - virtual bool saveModelAs(const QString &fileName) = 0; - virtual bool createModel(const QString &modelFileName, QMetaModelPlugin *metamodelPlugin, const QString &topLevelType) = 0; - -Q_SIGNALS: - void modelOpened(QList<QModelingObject *> model); - void modelAboutToBeClosed(QList<QModelingObject *> model); - void modelClosed(); - -protected: - IProjectController(); -}; - -} - -#endif // IPROJECTCONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp deleted file mode 100644 index 4f1e075e..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iuicontroller.h" - -namespace DuSE -{ - -IUiController::~IUiController() -{ -} - -IUiController::IUiController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h deleted file mode 100644 index e9916651..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade <[email protected]> -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IUICONTROLLER_H -#define IUICONTROLLER_H - -#include "duseinterfaces_global.h" - -#include <QtCore/QObject> - -#include <QtCore/QString> - -#include <QtGui/QIcon> - -QT_BEGIN_NAMESPACE -class QModelingObject; - -class QAction; -class QWidget; -class QQuickItem; -class QMainWindow; -QT_END_NAMESPACE - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IUiController : public QObject -{ - Q_OBJECT - -public: - virtual ~IUiController(); - - virtual bool initialize() = 0; - - virtual void addDockWidget(Qt::DockWidgetArea area, QString name, QWidget *widget) = 0; - virtual void removeDockWidget(const QString &name) = 0; - - virtual void addCentralWidgetTab(QWidget *widget, const QString &label, int position = -1, const QIcon &icon = QIcon()) = 0; - virtual void removeCentralWidgetTab(const QString &name) = 0; - - virtual void addAction(QAction *action, const QString &menuTitle, const QString &toolbarName = QString()) = 0; - -Q_SIGNALS: - void currentModelingObjectChanged(QModelingObject *currentModelingObject); - void updateCurrentModelingObject(); - void addToView(QObject *selectedModelingObject, QQuickItem *parent = 0); - -protected: - IUiController(); -}; - -} - -#endif // IUICONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/libs.pro b/examples/uml/duse-mt/src/libs/libs.pro deleted file mode 100644 index 5a90806c..00000000 --- a/examples/uml/duse-mt/src/libs/libs.pro +++ /dev/null @@ -1,4 +0,0 @@ -TEMPLATE = subdirs -CONFIG += ordered - -SUBDIRS = duseinterfaces |