First work for LibPack8 and PropertyUUID
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
//@{
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user