Skip to content

Commit

Permalink
Issue #9: initial implementation of ProjectFactory class
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Jan 6, 2019
1 parent fcce0cc commit f00a9db
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 2 deletions.
2 changes: 2 additions & 0 deletions FilesList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ set(MODELS_SRC
set(PROJECT ${ROOT}/Project)
set(PROJECT_HEADERS
${PROJECT}/Project.h
${PROJECT}/ProjectFactory.hpp
${PROJECT}/ProjectTypes.hpp)
set(PROJECT_SRC
${PROJECT}/ProjectFactory.cpp
${PROJECT}/Project.cpp)

set(REL ${ROOT}/Relationship)
Expand Down
30 changes: 30 additions & 0 deletions ProjectFactory.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*****************************************************************************
**
** Copyright (C) 2019 Fanaskov Vitaly (vt4a2h@gmail.com)
**
** Created 6/1/2019.
**
** This file is part of Q-UML (UML tool for Qt).
**
** Q-UML 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 3 of the License, or
** (at your option) any later version.
**
** Q-UML 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 Q-UML. If not, see <http://www.gnu.org/licenses/>.
**
*****************************************************************************/
#include "ProjectFactory.hpp"

namespace Projects {

ProjectFactory::~ProjectFactory() = default;
ProjectFactory::ProjectFactory() = default;

} // namespace Projects
40 changes: 40 additions & 0 deletions ProjectFactory.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*****************************************************************************
**
** Copyright (C) 2019 Fanaskov Vitaly (vt4a2h@gmail.com)
**
** Created 6/1/2019.
**
** This file is part of Q-UML (UML tool for Qt).
**
** Q-UML 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 3 of the License, or
** (at your option) any later version.
**
** Q-UML 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 Q-UML. If not, see <http://www.gnu.org/licenses/>.
**
*****************************************************************************/
#pragma once

#include "QtHelpers.h"

namespace Projects {

class ProjectFactory
{
public:
SINGLETON(ProjectFactory)

~ProjectFactory();

private:
ProjectFactory();
};

} // namespace Projects
11 changes: 9 additions & 2 deletions uml-tool.pro
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ SOURCES += \
Translation/signaturemaker.cpp \
Utility/helpfunctions.cpp \
main.cpp \
templates.cpp
templates.cpp \
ProjectFactory.cpp

HEADERS += \
Application/Application.h \
Expand Down Expand Up @@ -211,7 +212,8 @@ HEADERS += \
Translation/translator_types.hpp \
Utility/helpfunctions.h \
enums.h \
types.h
types.h \
ProjectFactory.hpp

INCLUDEPATH *= $$PWD/boost-di/include $$PWD/range-v3/include

Expand Down Expand Up @@ -241,3 +243,8 @@ DISTFILES += \
CMakeLists.txt \
FilesList.cmake \
Tests/TestFiles.cmake

# TODO: generate qt.conf wit correct path to plugins:
# [Paths]
# Plugins = path-to-plugins
# $$[QT_INSTALL_PLUGINS]

0 comments on commit f00a9db

Please sign in to comment.