Changeset 194 in pacpusframework for trunk/src/_NewComponent
- Timestamp:
- Oct 24, 2013, 3:59:43 PM (11 years ago)
- Location:
- trunk/src/_NewComponent
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/_NewComponent/CMakeLists.txt.in
r190 r194 7 7 create_export(EXPORT_HDR ${PROJECT_NAME}) 8 8 pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME}) 9 10 ################################################################################11 # Qt12 set(QT_USE_QTXML true)13 set(QT_USE_QTNETWORK true)14 include(${QT_USE_FILE})15 16 add_definitions(17 ${QT_DEFINITIONS}18 )19 9 20 10 ################################################################################ … … 46 36 set(MOC_FILES 47 37 ${PLUGIN_HDR} 48 #@PACPUS_COMPONENT_NAME@.h38 @PACPUS_COMPONENT_NAME@.h 49 39 ) 50 40 -
trunk/src/_NewComponent/NewComponent.cpp.in
r193 r194 40 40 void @PACPUS_COMPONENT_NAME@::addInputs() 41 41 { 42 // must inherit from QObject to use addInput 42 43 //addInput<InputType, @PACPUS_COMPONENT_NAME@>("input-name", &@PACPUS_COMPONENT_NAME@::processInput); 43 44 } … … 45 46 void @PACPUS_COMPONENT_NAME@::addOutputs() 46 47 { 48 // must inherit from QObject to use addOutput 47 49 //addOutput<OutputType, @PACPUS_COMPONENT_NAME@>("output-name"); 48 50 } -
trunk/src/_NewComponent/NewComponent.h.in
r193 r194 16 16 #define @PACPUS_COMPONENT_NAME_CAPS@_H 17 17 18 #include "@PACPUS_COMPONENT_NAME@Config.h" 19 18 20 #include <Pacpus/kernel/ComponentBase.h> 19 //#include <QObject>20 21 21 #include "@PACPUS_COMPONENT_NAME@Config.h"22 #include <QObject> 22 23 23 24 namespace pacpus { 24 25 25 26 class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@ 26 // : public QObject 27 // , public ComponentBase // must be after QObject 28 : public ComponentBase 27 : public QObject 28 , public ComponentBase // must be after QObject 29 29 { 30 //Q_OBJECT30 Q_OBJECT 31 31 32 32 public:
Note:
See TracChangeset
for help on using the changeset viewer.