/// Overloaded method. Defines how to process each node
virtual void processNode(xmlNodePtr aNode);
- /// Overloaded method. Clears attribute cache on extit from attribute's node
+ /// Overloaded method. Clears attribute cache on exit from attribute's node
virtual void cleanup(xmlNodePtr aNode);
/// Overloaded method. Defines if the given node should be parsed recursively
* \brief Identifier of the event kind.
*
* Each event ID is created in main Envent_Loop class
- * that stores correspondance between the string-name of the
+ * that stores correspondence between the string-name of the
* identifier and the pointer to the static string that is really
- * used as an identifier (this is usefull for debugging of the events
+ * used as an identifier (this is useful for debugging of the events
* with log files and in debugger).
*/
class EVENTS_EXPORT Events_ID
} else if (theAttrType == ModelAPI_AttributeIntArray::typeId()) {
anAttr = new Model_AttributeIntArray(anAttrLab);
}
- // create also GeomData attributes here because only here the OCAF strucure is known
+ // create also GeomData attributes here because only here the OCAF structure is known
else if (theAttrType == GeomData_Point::typeId()) {
anAttr = new GeomData_Point(anAttrLab);
} else if (theAttrType == GeomData_Dir::typeId()) {
//! Internal sub-document by ID
MODEL_EXPORT virtual std::shared_ptr<Model_Document> subDoc(std::string theDocID);
- ///! Returns the id of hte document
+ ///! Returns the id of the document
MODEL_EXPORT virtual const std::string& id() const
{
return myID;
//! Returns the feature by zero-based index: features in the history or not
std::shared_ptr<ModelAPI_Feature> internalFeature(const int theIndex);
- /// Creates a construction cresults
+ /// Creates a construction results
std::shared_ptr<ModelAPI_ResultConstruction> createConstruction(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates a body results
}
#endif
}
- // this event is for solver update, not here, do not react immideately
+ // this event is for solver update, not here, do not react immediately
if (!isOnlyResults && !(theMessage->eventID() == kMovedEvent))
processOperation(false);
} else if (theMessage->eventID() == kOpFinishEvent || theMessage->eventID() == kOpAbortEvent ||
void Model_Update::updateArguments(FeaturePtr theFeature) {
// perform this method also for disabled features: to make "not done" state for
- // featuers referenced to the active and modified features
+ // features referenced to the active and modified features
static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators();
/// The type of shape is taken from the current selection type
virtual void append(std::string theNamingName) = 0;
- /// Returns the number ofselection attributes in the list
+ /// Returns the number of selection attributes in the list
virtual int size() = 0;
/// The type of all elements selection
virtual void referencesToObjects(
std::list<std::pair<std::string, std::list<std::shared_ptr<ModelAPI_Object> > > >& theRefs) =0;
- /// Copies all atributes content into theTarget data
+ /// Copies all attributes content into theTarget data
virtual void copyTo(std::shared_ptr<ModelAPI_Data> theTarget) = 0;
/// Returns the invalid data pointer (to avoid working with NULL shared ptrs in swig)
return anId;
}
- /// usefull method that creates and sends the AttributeEvalMessage event
+ /// Useful method that creates and sends the AttributeEvalMessage event
MODELAPI_EXPORT static void send(AttributePtr theAttribute, const void* theSender)
{
std::shared_ptr<ModelAPI_AttributeEvalMessage> aMessage =
/// Returns the result is disabled or not.
MODELAPI_EXPORT virtual bool isDisabled() const;
- // Retuns the parameters of color definition in the resources config manager
+ // Returns the parameters of color definition in the resources config manager
virtual void colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault) {}
//! Closes all documents
virtual void closeAll() = 0;
- //! Starts a new operation (opens a tansaction)
+ //! Starts a new operation (opens a transaction)
//! \param theId of operation for history (optional)
//! \param theAttachedToNested if it is true, it means that this transaction is attached to the nested
//! where it is located and will be commited on the next commit with the nested
/**
* \ingroup GUI
- * Class which provides access to Workshop object serveces
+ * Class which provides access to Workshop object services
*/
class MODULEBASE_EXPORT ModuleBase_IWorkshop : public QObject
{
//! Returns true if the operation with id theId can be started
virtual bool canStartOperation(QString theId) = 0;
- //! Returns AIS opbject by data object
+ //! Returns AIS object by data object
virtual AISObjectPtr findPresentation(const ObjectPtr& theObject) const = 0;
//! Returns data object by AIS
virtual void setSelected(const QList<ModuleBase_ViewerPrs>& theValues) = 0;
signals:
- /// Signal selection chaged.
+ /// Signal selection changed.
void selectionChanged();
/// Signal which is emited after activation of property panel
public:
/// Constructor
/// \param theParent the parent object
- /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theData the widget configuration. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
ModuleBase_ModelWidget(QWidget* theParent, const Config_WidgetAPI* theData,
const std::string& theParentId);
/// \return the state whether the widget can accept the focus
virtual bool focusTo();
- /// The methiod called when widget is activated
+ /// The method called when widget is activated
void activate();
- /// The methiod called when widget is deactivated
+ /// The method called when widget is deactivated
virtual void deactivate() {}
/// Returns list of widget controls
void focusOutWidget(ModuleBase_ModelWidget* theWidget);
protected:
- /// Sets default value of widget. Nornaly, widget should fetch this value
+ /// Sets default value of widget. Normally, widget should fetch this value
/// from the xml. However, some widgets derived widgets could define it
void setDefaultValue(const std::string& theValue);
/// \brief Set the attribute name
/// \return True in success
virtual bool storeValueCustom() const = 0;
- /// The methiod called when widget is activated
+ /// The method called when widget is activated
virtual void activateCustom() {};
protected slots:
* <validator id="ExchangePlugin_ImportFormat" parameters="BREP:BREPImport,STEP:STEPImport" />
* </file_selector>
* \endcode
+* It can use following parameters:
+* - id - name of object attribute
+* - type - type of dialog. Possible values: open, save.
*/
class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelWidget
{
public:
/// Constructor
/// \param theParent the parent object
- /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theData the widget configuration. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
ModuleBase_WidgetFileSelector(QWidget* theParent,
const Config_WidgetAPI* theData,
aMainLay->addWidget(aTypeLabel, 0, 0);
myTypeCombo = new QComboBox(this);
- // There is no sence to paramerize list of types while we can not parametrize selection mode
+ // There is no sense to parameterize list of types while we can not parameterize selection mode
std::string aPropertyTypes = theData->getProperty("type_choice");
QString aTypesStr = aPropertyTypes.c_str();
* tooltip="Select a set of objects"
* type_choice="Vertices Edges Faces Solids" />
* \endcode
-* It uses folloing parameters:
+* It uses following parameters:
* - id - is a name of corresponded attribute
* - tooltip - a tooltip for the widget
* - type_choice - list of expected shape types.
/// Constructor
/// \param theParent the parent object
/// \param theWorkshop instance of workshop interface
- /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theData the widget configuration. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
ModuleBase_WidgetMultiSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
/**
* \ingroup GUI
-* Implements a model widget for swithch as a container widget. It can be defined in XML with "switch" keyword
+* Implements a model widget for switch as a container widget. It can be defined in XML with "switch" keyword
*/
class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContainer
{
/**
* \ingroup Modules
-* Customosation of ModuleBase_WidgetEditor in order to do not show the editor value if the mouse
+* Customization of ModuleBase_WidgetEditor in order to do not show the editor value if the mouse
* cursor is not over the OCC window
*/
class PARTSET_EXPORT PartSet_WidgetEditor : public ModuleBase_WidgetEditor
/// Constructor
/// \param theParent the parent object
/// \param theWorkshop instance of workshop interface
- /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theData the widget configuration. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent of the current attribute
PartSet_WidgetEditor(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
const Config_WidgetAPI* theData, const std::string& theParentId);
ModuleBase_IWorkshop* myWorkshop; // the current workshop
};
-#endif
\ No newline at end of file
+#endif