Skip to content
Snippets Groups Projects
Commit 2c62a4be authored by Mirko Wächter's avatar Mirko Wächter
Browse files

Merge branch 'div_fixes' into 'master'

Add documentation on how to document gui plugins



See merge request !15
parents 658d434d 99aadadb
No related branches found
No related tags found
1 merge request!15Add documentation on how to document gui plugins
...@@ -33,6 +33,31 @@ The corresponding cpp file (MyGuiPluginWidgetController.cpp) : ...@@ -33,6 +33,31 @@ The corresponding cpp file (MyGuiPluginWidgetController.cpp) :
A CMakeLists.txt file to compile this gui plugin: A CMakeLists.txt file to compile this gui plugin:
\include CMakeLists.txt.dox \include CMakeLists.txt.dox
To add proper documentation for your gui plugin, create a doxygen page in your MyGuiPluginWidgetController.h:
\code{.unparsed}
namespace armarx
{
/**
* \page ${PACKAGENAME}-GuiPlugins-MyGuiPlugin MyGuiPlugin
* \brief The MyGuiPlugin allows you to ...
*
* \image html MyGuiPlugin.png
*
* This is a detailled description of the MyGuiPlugin
* gui plugin. It is very awesome.
*
* \see MyGuiPluginGuiPlugin
*/
...
\endcode
and add it as subpage to ${PACKAGENAME}/etc/doxygen/pages/GuiPlugins.dox:
\code
\subpage ${PACKAGENAME}-GuiPlugins-MyGuiPlugin "MyGuiPlugin"
\endcode
Images (e.g. a screenshot of the widget) go to ${PACKAGENAME}/etc/doxygen/images/.
\note All network calls (e.g. with Ice) should be in a seperate thread like armarx::RunningTask, armarx::PeriodicTask or QThread \note All network calls (e.g. with Ice) should be in a seperate thread like armarx::RunningTask, armarx::PeriodicTask or QThread
since they can take a long time to complete and block the complete GUI if executed in the qt main-event-loop. since they can take a long time to complete and block the complete GUI if executed in the qt main-event-loop.
QTimer or timerEvent(QTimerEvent) are running in the same thread as the main application loop, so they are not QTimer or timerEvent(QTimerEvent) are running in the same thread as the main application loop, so they are not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment