summaryrefslogtreecommitdiffstats
path: root/umbrello
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello')
-rw-r--r--umbrello/CMakeLists.txt19
-rw-r--r--umbrello/ConfigureChecks.cmake20
-rw-r--r--umbrello/umbrello/CMakeLists.txt86
-rw-r--r--umbrello/umbrello/clipboard/CMakeLists.txt25
-rw-r--r--umbrello/umbrello/codegenerators/CMakeLists.txt54
-rw-r--r--umbrello/umbrello/codeimport/CMakeLists.txt29
-rw-r--r--umbrello/umbrello/codeimport/kdevcppparser/CMakeLists.txt24
-rw-r--r--umbrello/umbrello/dialogs/CMakeLists.txt40
-rw-r--r--umbrello/umbrello/docgenerators/CMakeLists.txt48
-rw-r--r--umbrello/umbrello/headings/CMakeLists.txt16
-rw-r--r--umbrello/umbrello/pics/CMakeLists.txt53
-rw-r--r--umbrello/umbrello/refactoring/CMakeLists.txt24
12 files changed, 438 insertions, 0 deletions
diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt
new file mode 100644
index 00000000..5429f5a4
--- /dev/null
+++ b/umbrello/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+# generate version.h
+file( READ VERSION text )
+string( REGEX REPLACE "\n" "" text "${text}" )
+file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/version.h "#define UMBRELLO_VERSION \"${text}\"\n" )
+
+add_subdirectory( umbrello )
diff --git a/umbrello/ConfigureChecks.cmake b/umbrello/ConfigureChecks.cmake
new file mode 100644
index 00000000..2167ab98
--- /dev/null
+++ b/umbrello/ConfigureChecks.cmake
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+pkg_search_module( XML2 libxml-2.0 )
+if( NOT XML2_FOUND )
+ tde_message_fatal( "libxml-2.0 is required, but was not found on your system" )
+endif( )
+
+pkg_search_module( XSLT libxslt )
+if( NOT XSLT_FOUND )
+ tde_message_fatal( "libxslt is required, but was not found on your system" )
+endif( )
diff --git a/umbrello/umbrello/CMakeLists.txt b/umbrello/umbrello/CMakeLists.txt
new file mode 100644
index 00000000..f7c299b3
--- /dev/null
+++ b/umbrello/umbrello/CMakeLists.txt
@@ -0,0 +1,86 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( codeimport )
+add_subdirectory( dialogs )
+add_subdirectory( docgenerators )
+add_subdirectory( clipboard )
+add_subdirectory( pics )
+add_subdirectory( codegenerators )
+add_subdirectory( headings )
+add_subdirectory( refactoring )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/.. # for version.h
+ ${CMAKE_CURRENT_BINARY_DIR}/dialogs
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( )
+install( FILES x-umbrello.desktop DESTINATION ${MIME_INSTALL_DIR}/application )
+install( FILES tips umbrelloui.rc DESTINATION ${DATA_INSTALL_DIR}/umbrello )
+install( FILES umbrello.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### umbrello (executable) #####################
+
+tde_add_executable( umbrello AUTOMOC
+ SOURCES
+ activitywidget.cpp actor.cpp actorwidget.cpp aligntoolbar.cpp
+ artifact.cpp artifactwidget.cpp association.cpp associationwidget.cpp
+ assocrules.cpp attribute.cpp boxwidget.cpp classifier.cpp
+ classifiercodedocument.cpp classifierlistitem.cpp
+ classifierwidget.cpp cmdlineexportallviewsevent.cpp
+ codeaccessormethod.cpp codeblock.cpp codeblockwithcomments.cpp
+ codeclassfield.cpp codeclassfielddeclarationblock.cpp
+ codecomment.cpp codedocument.cpp codegenerationpolicy.cpp
+ codegenerator.cpp codegenobjectwithtextblocks.cpp codemethodblock.cpp
+ codeoperation.cpp codeparameter.cpp component.cpp componentwidget.cpp
+ configurable.cpp datatypewidget.cpp dialog_utils.cpp
+ docwindow.cpp entity.cpp entityattribute.cpp entitywidget.cpp
+ enum.cpp enumliteral.cpp enumwidget.cpp floatingtextwidget.cpp
+ floatingtextwidgetcontroller.cpp folder.cpp forkjoinwidget.cpp
+ kplayerslideraction.cpp hierarchicalcodeblock.cpp import_rose.cpp
+ kstartuplogo.cpp linepath.cpp linkwidget.cpp listpopupmenu.cpp
+ main.cpp messagewidget.cpp messagewidgetcontroller.cpp
+ model_utils.cpp node.cpp nodewidget.cpp notewidget.cpp
+ notewidgetcontroller.cpp objectwidget.cpp objectwidgetcontroller.cpp
+ object_factory.cpp operation.cpp optionstate.cpp ownedcodeblock.cpp
+ ownedhierarchicalcodeblock.cpp package.cpp packagewidget.cpp
+ petalnode.cpp petaltree2uml.cpp plugin.cpp pluginloader.cpp
+ seqlinewidget.cpp statewidget.cpp stereotype.cpp template.cpp
+ textblock.cpp toolbarstate.cpp toolbarstatearrow.cpp
+ toolbarstateassociation.cpp toolbarstatefactory.cpp
+ toolbarstatemessages.cpp toolbarstateother.cpp toolbarstatepool.cpp
+ uml.cpp umlattributelist.cpp umlentityattributelist.cpp
+ umlcanvasobject.cpp umlclassifierlistitemlist.cpp umldoc.cpp
+ umllistview.cpp umllistviewitem.cpp umlnamespace.cpp umlobject.cpp
+ umlobjectlist.cpp umlrole.cpp umlview.cpp umlviewcanvas.cpp
+ umlviewimageexporter.cpp umlviewimageexporterall.cpp
+ umlviewimageexportermodel.cpp umlwidget.cpp umlwidgetcontroller.cpp
+ uniqueid.cpp usecase.cpp usecasewidget.cpp widgetbase.cpp
+ widget_factory.cpp widget_utils.cpp worktoolbar.cpp
+ LINK
+ refactoring-static codeimport-static kdevcppparser-static clipboard-static
+ codegenerator-static docgenerators-static dialogs-static
+ tdeprint-shared kio-shared ${XML2_LIBRARIES} ${XSLT_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/umbrello/umbrello/clipboard/CMakeLists.txt b/umbrello/umbrello/clipboard/CMakeLists.txt
new file mode 100644
index 00000000..a2e6113f
--- /dev/null
+++ b/umbrello/umbrello/clipboard/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### clipboard (static) ########################
+
+tde_add_library( clipboard STATIC AUTOMOC
+ SOURCES
+ umldrag.cpp umlclipboard.cpp idchangelog.cpp
+)
diff --git a/umbrello/umbrello/codegenerators/CMakeLists.txt b/umbrello/umbrello/codegenerators/CMakeLists.txt
new file mode 100644
index 00000000..7d683330
--- /dev/null
+++ b/umbrello/umbrello/codegenerators/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../dialogs
+ ${CMAKE_CURRENT_SOURCE_DIR}/../dialogs
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### codegenerator (static) ####################
+
+tde_add_library( codegenerator STATIC AUTOMOC
+ SOURCES
+ codegenfactory.cpp classifierinfo.cpp javacodegenerator.cpp
+ javaantcodedocument.cpp javacodeclassfield.cpp
+ javaclassifiercodedocument.cpp javacodecomment.cpp
+ javacodedocumentation.cpp javacodeoperation.cpp
+ javacodeaccessormethod.cpp javaclassdeclarationblock.cpp
+ javacodeclassfielddeclarationblock.cpp javacodegenerationpolicy.cpp
+ javacodegenerationpolicypage.cpp javacodegenerationformbase.ui
+ cppcodegenerator.cpp cppcodedocumentation.cpp cppcodeclassfield.cpp
+ cppcodecomment.cpp cppmakecodedocument.cpp cppsourcecodedocument.cpp
+ cppsourcecodeoperation.cpp cppsourcecodeaccessormethod.cpp
+ cppsourcecodeclassfielddeclarationblock.cpp
+ cppheadercodedocument.cpp cppheaderclassdeclarationblock.cpp
+ cppheadercodeoperation.cpp cppheadercodeaccessormethod.cpp
+ cppheadercodeclassfielddeclarationblock.cpp
+ cppcodegenerationpolicy.cpp cppcodegenerationpolicypage.cpp
+ cppcodegenerationformbase.ui cppcodegenerationform.cpp
+ rubycodegenerator.cpp rubycodeclassfield.cpp
+ rubyclassifiercodedocument.cpp rubycodecomment.cpp
+ rubycodedocumentation.cpp rubycodeoperation.cpp
+ rubycodeaccessormethod.cpp rubyclassdeclarationblock.cpp
+ rubycodeclassfielddeclarationblock.cpp rubycodegenerationpolicy.cpp
+ rubycodegenerationpolicypage.cpp rubycodegenerationformbase.ui
+ simplecodegenerator.cpp adawriter.cpp aswriter.cpp cppwriter.cpp
+ csharpwriter.cpp dwriter.cpp javawriter.cpp jswriter.cpp
+ idlwriter.cpp pascalwriter.cpp perlwriter.cpp php5writer.cpp
+ phpwriter.cpp pythonwriter.cpp rubywriter.cpp sqlwriter.cpp
+ tclwriter.cpp xmlschemawriter.cpp xmlelementcodeblock.cpp
+ xmlcodecomment.cpp codegen_utils.cpp
+)
diff --git a/umbrello/umbrello/codeimport/CMakeLists.txt b/umbrello/umbrello/codeimport/CMakeLists.txt
new file mode 100644
index 00000000..d616ca60
--- /dev/null
+++ b/umbrello/umbrello/codeimport/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kdevcppparser )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### codeimport (static) ########################
+
+tde_add_library( codeimport STATIC
+ SOURCES
+ adaimport.cpp classimport.cpp cppimport.cpp idlimport.cpp
+ import_utils.cpp javaimport.cpp nativeimportbase.cpp pascalimport.cpp
+ pythonimport.cpp
+)
diff --git a/umbrello/umbrello/codeimport/kdevcppparser/CMakeLists.txt b/umbrello/umbrello/codeimport/kdevcppparser/CMakeLists.txt
new file mode 100644
index 00000000..6c16fe33
--- /dev/null
+++ b/umbrello/umbrello/codeimport/kdevcppparser/CMakeLists.txt
@@ -0,0 +1,24 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kdevcppparser (static) ####################
+
+tde_add_library( kdevcppparser STATIC
+ SOURCES
+ ast.cpp driver.cpp errors.cpp lexer.cpp lookup.cpp parser.cpp
+ tree_parser.cpp urlutil.cpp ast_utils.cpp cpptree2uml.cpp
+)
diff --git a/umbrello/umbrello/dialogs/CMakeLists.txt b/umbrello/umbrello/dialogs/CMakeLists.txt
new file mode 100644
index 00000000..fbe04fad
--- /dev/null
+++ b/umbrello/umbrello/dialogs/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### dialogs (static) ##########################
+
+tde_add_library( dialogs STATIC AUTOMOC
+ SOURCES
+ codegenerationoptionsbase.ui codegenerationpolicybase.ui
+ codegenerationwizardbase.ui codeviewerdialogbase.ui
+ codevieweroptionsbase.ui diagrampropertiespage.ui
+ exportallviewsdialogbase.ui umlrolepropertiesbase.ui
+ activitydialog.cpp activitypage.cpp assocgenpage.cpp
+ assocpage.cpp assocpropdlg.cpp assocrolepage.cpp classgenpage.cpp
+ classifierlistpage.cpp classoptionspage.cpp classpropdlg.cpp
+ classwizard.cpp codeeditor.cpp codegenerationoptionspage.cpp
+ codegenerationpolicypage.cpp codegenerationwizard.cpp
+ codeviewerdialog.cpp codevieweroptionspage.cpp
+ defaultcodegenpolicypage.cpp diagramprintpage.cpp
+ exportallviewsdialog.cpp notedialog.cpp overwritedialogue.cpp
+ pkgcontentspage.cpp parmpropdlg.cpp selectopdlg.cpp settingsdlg.cpp
+ statedialog.cpp umlattributedialog.cpp umlentityattributedialog.cpp
+ umloperationdialog.cpp umltemplatedialog.cpp umlroledialog.cpp
+ umlroleproperties.cpp umlviewdialog.cpp umlwidgetcolorpage.cpp
+)
diff --git a/umbrello/umbrello/docgenerators/CMakeLists.txt b/umbrello/umbrello/docgenerators/CMakeLists.txt
new file mode 100644
index 00000000..7ab19cf1
--- /dev/null
+++ b/umbrello/umbrello/docgenerators/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../.. # for version.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${XML2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ xmi2docbook.xsl docbook2xhtml.xsl xmi.css common.ent
+ DESTINATION ${DATA_INSTALL_DIR}/umbrello )
+
+
+##### umbodoc (executable) ######################
+
+tde_add_executable( umbodoc
+ SOURCES main.cpp
+ LINK tdecore-shared ${XML2_LIBRARIES} ${XSLT_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### docgenerators (static) ####################
+
+tde_add_library( docgenerators STATIC AUTOMOC
+ SOURCES
+ docbookgenerator.h docbookgenerator.cpp xhtmlgenerator.cpp
+)
diff --git a/umbrello/umbrello/headings/CMakeLists.txt b/umbrello/umbrello/headings/CMakeLists.txt
new file mode 100644
index 00000000..aeac6374
--- /dev/null
+++ b/umbrello/umbrello/headings/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ heading.adb heading.ads heading.as heading.cpp heading.cs heading.d
+ heading.h heading.idl heading.java heading.js heading.php heading.pm
+ heading.py heading.rb heading.sql heading.xsd
+ DESTINATION ${DATA_INSTALL_DIR}/umbrello/headings )
diff --git a/umbrello/umbrello/pics/CMakeLists.txt b/umbrello/umbrello/pics/CMakeLists.txt
new file mode 100644
index 00000000..2d350aab
--- /dev/null
+++ b/umbrello/umbrello/pics/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons(
+ umbrello_diagram_activity umbrello_diagram_class
+ umbrello_diagram_collaboration umbrello_diagram_component
+ umbrello_diagram_deployment umbrello_diagram_sequence
+ umbrello_diagram_state umbrello_diagram_usecase
+ umbrello_diagram_entityrelationship )
+
+
+install( FILES
+ actor.png aggregation.png align_left.png align_right.png
+ align_top.png align_bottom.png align_vert_middle.png
+ align_hori_middle.png align_vert_distribute.png
+ align_hori_distribute.png anchor.png andline.png arrow.png
+ association.png choice-rhomb.png choice-round.png component.png
+ composition.png containment.png CVglobal_meth.png CVglobal_var.png
+ CVimplementation_meth.png CVimplementation_signal.png
+ CVimplementation_slot.png CVimplementation_var.png CVnamespace.png
+ CVprivate_meth.png CVprivate_signal.png CVprivate_slot.png
+ CVprivate_var.png CVprotected_meth.png CVprotected_signal.png
+ CVprotected_slot.png CVprotected_var.png CVpublic_meth.png
+ CVpublic_signal.png CVpublic_slot.png CVpublic_var.png CVstruct.png
+ deep-history.png shallow-history.png dependency.png end_state.png
+ generalisation.png initial_state.png interface.png join.png
+ junction.png datatype.png enum.png message-synchronous.png
+ message-asynchronous.png note.png object.png startlogo.png
+ template.png text.png class.png uniassociation.png usecase.png
+ branch.png fork.png state-fork.png package.png subsystem.png
+ artifact.png box.png node.png entity.png relationship.png
+ cursor-actor.png cursor-andline.png cursor-choice-rhomb.png
+ cursor-choice-round.png cursor-deep-history.png cursor-join.png
+ cursor-junction.png cursor-shallow-history.png cursor-state-fork.png
+ cursor-usecase.png cursor-initial_state.png cursor-package.png
+ cursor-aggregation.png cursor-component.png cursor-containment.png
+ cursor-interface.png cursor-datatype.png cursor-enum.png
+ cursor-text.png cursor-anchor.png cursor-composition.png
+ cursor-message-asynchronous.png cursor-class.png cursor-artifact.png
+ cursor-dependency.png cursor-message-synchronous.png
+ cursor-uniassociation.png cursor-association.png cursor-end_state.png
+ cursor-node.png cursor-box.png cursor-fork.png cursor-note.png
+ cursor-branch.png cursor-generalisation.png cursor-object.png
+ cursor-entity.png cursor-relationship.png
+ DESTINATION ${DATA_INSTALL_DIR}/umbrello/pics )
diff --git a/umbrello/umbrello/refactoring/CMakeLists.txt b/umbrello/umbrello/refactoring/CMakeLists.txt
new file mode 100644
index 00000000..fd204592
--- /dev/null
+++ b/umbrello/umbrello/refactoring/CMakeLists.txt
@@ -0,0 +1,24 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### refactoring (static) ######################
+
+tde_add_library( refactoring STATIC AUTOMOC
+ SOURCES refactoringassistant.cpp
+)