summaryrefslogtreecommitdiffstats
path: root/examples/uml/duse-mt/src/plugins/architecturerecoverypanel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uml/duse-mt/src/plugins/architecturerecoverypanel')
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp107
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h90
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json12
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro22
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui117
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri7
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp66
-rw-r--r--examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h69
8 files changed, 0 insertions, 490 deletions
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp
deleted file mode 100644
index 457e03dd..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org>
-** 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 "architecturerecoverypanel.h"
-#include "ui_architecturerecoverypanel.h"
-
-#include <QtCore/QDebug>
-
-#include <duseinterfaces/iplugincontroller.h>
-
-namespace DuSE
-{
-
-ArchitectureRecoveryPanel::ArchitectureRecoveryPanel(QWidget *parent) :
- QDialog(parent),
- ui(new Ui::ArchitectureRecoveryPanel)
-{
- ui->setupUi(this);
-
- connect(ui->startPushButton, SIGNAL(clicked()), this, SLOT(run()));
-}
-
-ArchitectureRecoveryPanel::~ArchitectureRecoveryPanel()
-{
- delete ui;
-}
-
-void ArchitectureRecoveryPanel::loadPanel()
-{
- loadBackendPlugins();
- loadAlgorithmPlugins();
- loadNotationPlugins();
- show();
-}
-
-void ArchitectureRecoveryPanel::run()
-{
- GccXmlArchitectureRecoveryBackendPlugin *gccXmlBackend = new GccXmlArchitectureRecoveryBackendPlugin;
- AcdcArchitectureRecoveryAlgorithmPlugin *acdcAlgorithm = new AcdcArchitectureRecoveryAlgorithmPlugin;
- UmlModelingNotationPlugin *umlNotation = new UmlModelingNotationPlugin;
-
- gccXmlBackend->run();
- DependencyRelations dependencyRelations = gccXmlBackend->components().at(0)->property("components").value<DependencyRelations>();
- QString systemDirectory = gccXmlBackend->components().at(0)->property("systemDirectory").toString();
-
- acdcAlgorithm->setDependencyRelations(dependencyRelations);
- acdcAlgorithm->run();
- QList<QStringList> subgraphs = acdcAlgorithm->subgraphs();
-
- umlNotation->setClusterList(subgraphs);
- umlNotation->loadSubsystems();
- umlNotation->generateDiagram(systemDirectory);
-}
-
-void ArchitectureRecoveryPanel::loadBackendPlugins()
-{
- ui->backendComboBox->addItem("GCC-XML");
-}
-
-void ArchitectureRecoveryPanel::loadAlgorithmPlugins()
-{
- ui->algorithmComboBox->addItem("ACDC (Algorithm for Compreehension-Driven Clustering)");
-}
-
-void ArchitectureRecoveryPanel::loadNotationPlugins()
-{
- ui->notationComboBox->addItem("UML (Unified Modeling Language)");
-}
-
-}
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h
deleted file mode 100644
index 4d59cca2..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org>
-** 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 ARCHITECTURERECOVERYPANEL_H
-#define ARCHITECTURERECOVERYPANEL_H
-
-#include <QtCore/QMap>
-#include <QtWidgets/QDialog>
-
-#include <acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.h>
-#include <architecturerecoverycore/architecturerecoverycoreplugin.h>
-#include <architecturerecoverycore/iarchitecturerecoveryalgorithm.h>
-#include <architecturerecoverycore/iarchitecturerecoverybackend.h>
-#include <duseinterfaces/iplugin.h>
-#include <gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.h>
-#include <umlmodelingnotation/umlmodelingnotationplugin.h>
-
-namespace DuSE
-{
-
-namespace Ui {
- class ArchitectureRecoveryPanel;
-}
-
-class ArchitectureRecoveryPanel : public QDialog
-{
- Q_OBJECT
-
-public:
- explicit ArchitectureRecoveryPanel(QWidget *parent = 0);
- ~ArchitectureRecoveryPanel();
-
- void loadBackendPlugins();
- void loadAlgorithmPlugins();
- void loadNotationPlugins();
-
-public Q_SLOTS:
- void loadPanel();
- void run();
-
-private:
- Ui::ArchitectureRecoveryPanel *ui;
- QMap<QString, IPlugin *> backendPluginsMap;
- QMap<QString, IArchitectureRecoveryAlgorithm *> algorithmPluginsMap;
- QMap<QString, IModelingNotation *> notationPluginsMap;
- ArchitectureRecoveryCorePlugin *architectureRecoveryCore;
-};
-
-#endif // ARCHITECTURERECOVERYPANEL_H
-
-}
-
-
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json
deleted file mode 100644
index 3b9d9911..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "Category": "Architecture Recovery",
- "Vendor": "Qt Project",
- "Version": "1.0",
- "DependencyList": [
- "ArchitectureRecoveryCorePlugin",
- "GccXmlArchitectureRecoveryBackendPlugin",
- "AcdcArchitectureRecoveryAlgorithmPlugin",
- "UmlModelingNotationPlugin"
- ]
-
-}
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro
deleted file mode 100644
index f575d181..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro
+++ /dev/null
@@ -1,22 +0,0 @@
-#-------------------------------------------------
-#
-# Project created by QtCreator 2013-11-03T17:38:51
-#
-#-------------------------------------------------
-
-include(../../duse-mt-plugin.pri)
-
-QT += gui widgets modeling
-
-HEADERS += \
- architecturerecoverypanel.h \
- architecturerecoverypanelplugin.h
-
-SOURCES += \
- architecturerecoverypanel.cpp \
- architecturerecoverypanelplugin.cpp
-
-OTHER_FILES += architecturerecoverypanel.json
-
-FORMS += \
- architecturerecoverypanel.ui
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui
deleted file mode 100644
index 627a06f2..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>DuSE::ArchitectureRecoveryPanel</class>
- <widget class="QDialog" name="DuSE::ArchitectureRecoveryPanel">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>393</width>
- <height>265</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Dialog</string>
- </property>
- <widget class="QLabel" name="algorithmLabel">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>110</y>
- <width>71</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>Algoritmo:</string>
- </property>
- </widget>
- <widget class="QComboBox" name="notationComboBox">
- <property name="geometry">
- <rect>
- <x>90</x>
- <y>170</y>
- <width>291</width>
- <height>23</height>
- </rect>
- </property>
- </widget>
- <widget class="QLabel" name="notationLabel">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>170</y>
- <width>71</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>Notação:</string>
- </property>
- </widget>
- <widget class="QLabel" name="architectureProcessInformativeLabel">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>10</y>
- <width>381</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>Defina as etapas do processo de recuperação arquitetural:</string>
- </property>
- <property name="wordWrap">
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QPushButton" name="startPushButton">
- <property name="geometry">
- <rect>
- <x>279</x>
- <y>220</y>
- <width>101</width>
- <height>23</height>
- </rect>
- </property>
- <property name="text">
- <string>Iniciar</string>
- </property>
- </widget>
- <widget class="QLabel" name="backendLabel">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>50</y>
- <width>71</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>Backend:</string>
- </property>
- </widget>
- <widget class="QComboBox" name="backendComboBox">
- <property name="geometry">
- <rect>
- <x>90</x>
- <y>50</y>
- <width>291</width>
- <height>23</height>
- </rect>
- </property>
- </widget>
- <widget class="QComboBox" name="algorithmComboBox">
- <property name="geometry">
- <rect>
- <x>90</x>
- <y>110</y>
- <width>291</width>
- <height>23</height>
- </rect>
- </property>
- </widget>
- </widget>
- <resources/>
- <connections/>
-</ui>
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri
deleted file mode 100644
index 40d209d3..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri
+++ /dev/null
@@ -1,7 +0,0 @@
-DUSEMT_PLUGIN_NAME = ArchitectureRecoveryPanel
-
-DUSEMT_PLUGIN_DEPENDS += \
- architecturerecoverycore \
- gccxmlarchitecturerecoverybackend \
- acdcarchitecturerecoveryalgorithm \
- umlmodelingnotation
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp
deleted file mode 100644
index 9a8ee974..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org>
-** 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 "architecturerecoverypanelplugin.h"
-
-#include <QtCore/QDebug>
-#include <QtWidgets/QAction>
-
-#include <duseinterfaces/iuicontroller.h>
-
-namespace DuSE
-{
-
-ArchitectureRecoveryPanelPlugin::ArchitectureRecoveryPanelPlugin(QObject *parent)
- : IPlugin(parent), architectureRecoveryPanel(new ArchitectureRecoveryPanel)
-{
-}
-
-
-bool DuSE::ArchitectureRecoveryPanelPlugin::initialize()
-{
- QAction *newArchitectureRecoveryProcessAction = new QAction(QIcon(), tr("New architecture recovery process"), this);
- connect(newArchitectureRecoveryProcessAction, SIGNAL(triggered()), architectureRecoveryPanel, SLOT(loadPanel()));
- ICore::self()->uiController()->addAction(newArchitectureRecoveryProcessAction, tr("menu_File"));
-
- return true;
-}
-
-}
diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h
deleted file mode 100644
index a865f28b..00000000
--- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org>
-** 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 ARCHITECTURERECOVERYPANELPLUGIN_H
-#define ARCHITECTURERECOVERYPANELPLUGIN_H
-
-#include <duseinterfaces/iplugin.h>
-
-#include "architecturerecoverypanel.h"
-
-namespace DuSE
-{
-
-class ArchitectureRecoveryPanelPlugin : public IPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "architecturerecoverypanel.json")
-
-public:
- ArchitectureRecoveryPanelPlugin(QObject *parent = 0);
-
- virtual bool initialize();
-
- void run();
-
-private:
- ArchitectureRecoveryPanel *architectureRecoveryPanel;
-};
-
-}
-
-#endif // ARCHITECTURERECOVERYPANELPLUGIN_H