First work for LibPack8 and PropertyUUID

This commit is contained in:
jriegel
2012-01-07 15:29:57 +01:00
committed by Stefan Tröger
parent 0a4336b5c4
commit a037ffa728
6 changed files with 30 additions and 4 deletions

View File

@@ -30,6 +30,9 @@
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include "Item.h"
#include "ItemAssembly.h"
#include "ItemPart.h"
extern struct PyMethodDef Assembly_methods[];
@@ -61,7 +64,9 @@ void AssemblyExport initAssembly()
// call PyType_Ready, otherwise we run into a segmentation fault, later on.
// This function is responsible for adding inherited slots from a type's base class.
//Assembly::FeatureViewPart ::init();
Assembly::Item ::init();
Assembly::ItemAssembly ::init();
Assembly::ItemPart ::init();
}
} // extern "C"

View File

@@ -1,3 +1,8 @@
if(MSVC)
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)
include_directories(
${CMAKE_SOURCE_DIR}/src

View File

@@ -39,7 +39,9 @@ PROPERTY_SOURCE(Assembly::Item, Part::Feature)
Item::Item()
{
ADD_PROPERTY(Model,(0));
ADD_PROPERTY(Id,(0));
ADD_PROPERTY(Name,(0));
ADD_PROPERTY(Description,(0));
}
short Item::mustExecute() const

View File

@@ -38,8 +38,9 @@ class AssemblyExport Item : public Part::Feature
public:
Item();
App::PropertyLinkList Model;
App::PropertyLink Tip;
App::PropertyString Id;
App::PropertyString Name ;
App::PropertyString Description ;
/** @name methods override feature */
//@{

View File

@@ -1,3 +1,9 @@
if(MSVC)
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}