Index: sources/model/MModel.h =================================================================== diff -u -r84c5373209a1a488c00917995f5553d442d159a4 -r69c098128a6df4a375d9e7277f644dfb5b6e66fa --- sources/model/MModel.h (.../MModel.h) (revision 84c5373209a1a488c00917995f5553d442d159a4) +++ sources/model/MModel.h (.../MModel.h) (revision 69c098128a6df4a375d9e7277f644dfb5b6e66fa) @@ -219,7 +219,12 @@ \details This macro connects the source object vSource to the models defined in the list for received messages. It connects source didActionReceive() signal to the this pointer of the class object onActionReceive(). - This macro should be used in the header file of the class. + The code below is implemented for each model : + \code {.cpp} + connect(&vSOURCE, SIGNAL(didActionReceive(const vTYPE &)), + this , SLOT( onActionReceive(const vTYPE &))); + \endcode + This macro should be used in the cpp file of the class. This macro should be used with its counterpart macro \ref ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS */ #define ACTION_RECEIVE_MODEL_BRIDGE_CONNECTIONS(vSOURCE) \ @@ -271,11 +276,19 @@ //===============================================================================// /*! \def ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS - \details This macro connects the source object vSource to the models defined in the list for received messages. - It connects source didActionReceive() signal to the this pointer of the class object - onActionReceive(). + \details This macro defines the signal/slot of the source object vSource to the models + listed in its definition for received messages. + The code below will be implemented for each model : + \code {.cpp} + private slots: + void onActionReceive (const vTYPE &vData) { + emit didActionReceive(vData); + } + signals: + void didActionReceive (const vTYPE &vData); + \endcode This macro should be used in the header file of the class. - This macro should be used with its counterpart macro \ref ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS + This macro should be used with its counterpart macro \ref ACTION_RECEIVE_MODEL_BRIDGE_CONNECTIONS */ #define ACTION_RECEIVE_MODEL_BRIDGE_DEFINITIONS \ \