SHAPER  9.15.0
XGUI_SketchConstraintsBrowser Class Reference

Object browser window object. More...

Inheritance diagram for XGUI_SketchConstraintsBrowser:
Inheritance graph

Public Slots

void onEditItem ()
 Called on Edit command request. More...
 
void onDeactivateItems ()
 Change state of constraints. More...
 

Signals

void selectionChanged ()
 Emitted when selection is changed. More...
 
void contextMenuRequested (QContextMenuEvent *theEvent)
 Emitted on context menu request. More...
 
void sizeChanged ()
 An signal emitted on resize of the Object Browser. More...
 
void editValues ()
 
void deleteConstraints ()
 
void deactivate (bool, std::vector< FeaturePtr >)
 

Public Member Functions

XGUI_ConstraintsViewTreegetViewTree ()
 
bool IsInEditMode ()
 
bool UpdateTree (const std::vector< std::pair< FeaturePtr, std::vector< AttributePtr >>> &theList)
 
void CloseEditor ()
 
 XGUI_SketchConstraintsBrowser (QWidget *theParent, XGUI_Workshop *theWorkshop)
 Constructor. More...
 
virtual void processEvent (const std::shared_ptr< Events_Message > &theMessage)
 Event Listener method. More...
 
QObjectPtrList selectedObjects (QModelIndexList *theIndexes=0) const
 Returns list of currently selected constraints and geometries. More...
 
QObjectPtrList selectedConstraints (QModelIndexList *theIndexes=0) const
 Returns list of currently selected constraints in browser. More...
 
void setObjectsSelected (const QObjectPtrList &theObjects)
 Set selected list of objects. More...
 
QModelIndexList selectedIndexes () const
 Returns currently selected indexes. More...
 
void initialize (ModuleBase_ITreeNode *theRoot)
 Initialize the Object browser. More...
 
XGUI_Workshopworkshop () const
 Returns current workshop. More...
 
void onSelectionChanged ()
 
virtual EVENTS_EXPORT bool groupMessages ()
 Listener that needs mostly grouped messages received returns true in this method. More...
 

Protected Member Functions

void resizeEvent (QResizeEvent *theEvent)
 redefinition of a virtual method More...
 
void groupWhileFlush (const std::shared_ptr< Events_Message > &theMessage)
 Allows to group messages while they are flushed (for flush for groupMessages=true listeners) More...
 
EVENTS_EXPORT void flushGrouped (const Events_ID &theID)
 Sends myGroups on flush finish. More...
 

Detailed Description

Object browser window object.

Represents data tree of current data structure

Constructor & Destructor Documentation

◆ XGUI_SketchConstraintsBrowser()

XGUI_SketchConstraintsBrowser::XGUI_SketchConstraintsBrowser ( QWidget theParent,
XGUI_Workshop theWorkshop 
)

Constructor.

Parameters
theParenta parent widget

Member Function Documentation

◆ processEvent()

void XGUI_SketchConstraintsBrowser::processEvent ( const std::shared_ptr< Events_Message > &  theMessage)
virtual

Event Listener method.

Parameters
theMessagean event message

Implements Events_Listener.

◆ selectedObjects()

QObjectPtrList XGUI_SketchConstraintsBrowser::selectedObjects ( QModelIndexList *  theIndexes = 0) const

Returns list of currently selected constraints and geometries.

Parameters
theIndexes- output list of corresponded indexes (can be NULL)

◆ selectedConstraints()

QObjectPtrList XGUI_SketchConstraintsBrowser::selectedConstraints ( QModelIndexList *  theIndexes = 0) const

Returns list of currently selected constraints in browser.

Parameters
theIndexes- output list of corresponded indexes (can be NULL)

◆ setObjectsSelected()

void XGUI_SketchConstraintsBrowser::setObjectsSelected ( const QObjectPtrList &  theObjects)

Set selected list of objects.

Parameters
theObjectslist of objects to select

◆ selectedIndexes()

QModelIndexList XGUI_SketchConstraintsBrowser::selectedIndexes ( ) const
inline

Returns currently selected indexes.

◆ initialize()

void XGUI_SketchConstraintsBrowser::initialize ( ModuleBase_ITreeNode theRoot)

Initialize the Object browser.

◆ workshop()

XGUI_Workshop* XGUI_SketchConstraintsBrowser::workshop ( ) const
inline

Returns current workshop.

◆ onEditItem

void XGUI_SketchConstraintsBrowser::onEditItem ( )
slot

Called on Edit command request.

◆ onDeactivateItems

void XGUI_SketchConstraintsBrowser::onDeactivateItems ( )
slot

Change state of constraints.

◆ selectionChanged

void XGUI_SketchConstraintsBrowser::selectionChanged ( )
signal

Emitted when selection is changed.

◆ contextMenuRequested

void XGUI_SketchConstraintsBrowser::contextMenuRequested ( QContextMenuEvent *  theEvent)
signal

Emitted on context menu request.

◆ sizeChanged

void XGUI_SketchConstraintsBrowser::sizeChanged ( )
signal

An signal emitted on resize of the Object Browser.

◆ resizeEvent()

void XGUI_SketchConstraintsBrowser::resizeEvent ( QResizeEvent *  theEvent)
protected

redefinition of a virtual method

◆ groupMessages()

virtual EVENTS_EXPORT bool Events_Listener::groupMessages ( )
inlinevirtualinherited

Listener that needs mostly grouped messages received returns true in this method.

In this case during the message is flushed, all the new messages are grouped, not sended immideately and then sent in the end of flush.

Reimplemented in SketchSolver_Manager, and SketchPlugin_OverConstraintsResolver.

◆ groupWhileFlush()

void Events_Listener::groupWhileFlush ( const std::shared_ptr< Events_Message > &  theMessage)
protectedinherited

Allows to group messages while they are flushed (for flush for groupMessages=true listeners)

◆ flushGrouped()

void Events_Listener::flushGrouped ( const Events_ID theID)
protectedinherited

Sends myGroups on flush finish.