X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Ftui%2Ffirst_feature_help.doc;h=66c1ab157f81f5d5dbdac92cd212aca5e86b9cc7;hb=3958bd83bc41c4c9bddbbbba375dd187e2363044;hp=83d599db661ab04eec3df9e0f50f32d56f26ac8a;hpb=2cf862e2d6b03f09a8d7c019dc7b4cf1efd9273e;p=modules%2Fshaper.git
diff --git a/doc/tui/first_feature_help.doc b/doc/tui/first_feature_help.doc
index 83d599db6..66c1ab157 100644
--- a/doc/tui/first_feature_help.doc
+++ b/doc/tui/first_feature_help.doc
@@ -144,14 +144,14 @@ Python:
\endcode
Creation of a Qt panel and custom controls in the plugin
-Plugin allows creating of a specific property panel content and a custom widget. The specific property panel content will be shown in the application property panel. The custom widget will be shown in the Property Panel (possible among other standard and custom widgets, or just single widget per Property Panel).
+Plugin allows creating of a specific property panel content and a custom widget. The panel content will be shown instead of controls container in the application property panel. The custom widget will be shown among other standard and custom widgets in the Property Panel.
-To provide this SHAPER has a widget creator interface and a factory of the creators. Each plugin which creates panels or custom widgets should implement own creator and register it in this factory by some unique string-ID. This creator will make a new control by this name.
+To provide this SHAPER has a widget creator interface and a factory of the creators. Each plugin which creates panels or custom widgets should implement own creator and register it in this factory by some unique string-ID. This creator will be obtained by this name and create new controls.
Steps to create the Qt property panel content are the following:
- append Qt library dependencies in plugin project
- - write the custom panel content. It should be a child of a QWidget.
- - define a unique panel name. Put this name in the "property_panel_id" section of the feature. If this XML section is filled, possible XML children sections will be ignored. The following example serves to create custom panel:
+ - write the custom panel content. It should be a child of a QWidget. It is necessary to put it in the application Property Panel.
+ - define a unique panel name. Put this name in the "property_panel_id" section of the feature. If this XML section is filled, XML sections of feature attributes should not be defined, they will be ignored. The following example creates a custom panel:
\code
-@ref SamplePanelPlugin_Plugin is an example plugin to create a custom property panel.
+SamplePanelPlugin_Plugin is an example plugin to create a custom property panel.
-Steps to create the custom widget are the following:
+Steps to create a custom widget are the following:
- append Qt library dependencies in plugin project
- write the custom widget. It should be a child of a SHAPER model widget. It provides a set of standard Qt controls and methods to apply these controls content into the model and back. So, the next virtual methods should be implemented:
- provides all internal Qt widgets (to let application to listen "value changed" Qt events, etc.)
- store of the values from controls to data model by request
- fill Qt widgets with the values from data model by request
+ - store of the values from controls to data model by request
+ - fill Qt widgets with the values from data model by request
- define a unique key value for the custom widget, add a section with this key in the XML, for an example:
\code