[Uml-devel] branches/work/soc-umbrello/umbrello
Andi Fischer
andi.fischer at hispeed.ch
Fri Apr 6 07:53:27 UTC 2012
SVN commit 1288448 by fischer:
Differences to trunk reduced.
M +32 -2 CMakeLists.txt
A cmake (directory)
A cmake/revision.h.in
M +5 -6 umlscene.cpp
M +1 -1 umlscene.h
--- branches/work/soc-umbrello/umbrello/CMakeLists.txt #1288447:1288448
@@ -3,6 +3,35 @@
add_definitions(-DQT3_SUPPORT_WARNINGS)
+#### get subversion revision number ###
+
+MESSAGE(STATUS "\n")
+UNSET(SVN_FILE CACHE)
+find_file(SVN_FILE .svn ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+if(SVN_FILE)
+ MESSAGE(STATUS "SVN used: ${SVN_FILE}.")
+ find_package(Subversion)
+ if(Subversion_FOUND)
+ # extract working copy information for SOURCE_DIR into MY_XXX variables
+ Subversion_WC_INFO(${CMAKE_CURRENT_SOURCE_DIR} MY)
+ set(SUBVERSION_REVISION ${MY_WC_LAST_CHANGED_REV})
+ MESSAGE(STATUS "SVN Revision: ${MY_WC_LAST_CHANGED_REV}")
+ else(Subversion_FOUND)
+ set(SUBVERSION_REVISION 0)
+ MESSAGE(STATUS "SVN Revision: 0 - no package Subversion available!")
+ endif(Subversion_FOUND)
+else(SVN_FILE)
+ MESSAGE(STATUS "SVN not used.")
+ set(SUBVERSION_REVISION 0)
+ MESSAGE(STATUS "SVN Revision: 0 - not yet implemented!")
+endif(SVN_FILE)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/revision.h.in ${CMAKE_CURRENT_BINARY_DIR}/revision.temp)
+execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
+ ${CMAKE_CURRENT_BINARY_DIR}/revision.temp ${CMAKE_CURRENT_BINARY_DIR}/revision.h)
+file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/revision.temp)
+
+########### set variables #############
+
# Some definitions for experimental code or debugging
#add_definitions(-DWANT_LVTOOLTIP) # umllistiew
#add_definitions(-DXMI_FLAT_PACKAGES) # umlobject
@@ -438,8 +467,8 @@
umlobject.cpp
umlobjectlist.cpp
umlrole.cpp
+ umlscene.cpp
umlview.cpp
- umlscene.cpp
umlviewimageexporter.cpp
umlviewimageexporterall.cpp
umlviewimageexportermodel.cpp
@@ -488,7 +517,8 @@
install( DIRECTORY
layouts
- DESTINATION ${DATA_INSTALL_DIR}/umbrello )
+ DESTINATION ${DATA_INSTALL_DIR}/umbrello
+ PATTERN .svn EXCLUDE )
kde4_install_icons( ${ICON_INSTALL_DIR} )
--- branches/work/soc-umbrello/umbrello/umlscene.cpp #1288447:1288448
@@ -149,7 +149,7 @@
}
/**
- * Destructor
+ * Destructor.
*/
UMLScene::~UMLScene()
{
@@ -374,11 +374,11 @@
*
* @param color grid dot color
*/
-void UMLScene::setGridDotColor(const QColor& gridColor)
+void UMLScene::setGridDotColor(const QColor& color)
{
- m_layoutGrid->setGridDotColor(gridColor);
- m_layoutGrid->setGridCrossColor(gridColor);
- m_layoutGrid->setTextColor(gridColor);
+ m_layoutGrid->setGridDotColor(color);
+ m_layoutGrid->setGridCrossColor(color);
+ m_layoutGrid->setTextColor(color);
}
/**
@@ -3268,7 +3268,6 @@
}
break;
-
case ListPopupMenu::mt_End_Activity:
{
ActivityWidget* activity = new ActivityWidget(ActivityWidget::End);
--- branches/work/soc-umbrello/umbrello/umlscene.h #1288447:1288448
@@ -126,7 +126,7 @@
void setTextColor(const QColor& color);
const QColor& gridDotColor() const;
- void setGridDotColor(const QColor &gridColor);
+ void setGridDotColor(const QColor& color);
bool snapToGrid() const;
void setSnapToGrid(bool bSnap);
More information about the umbrello-devel
mailing list