Gui::DockWnd::SelectionView Class Reference

A test class. More...

#include <SelectionView.h>

Public Slots

void deselect (void)
 
void onEnablePickList ()
 
void onItemContextMenu (const QPoint &point)
 get called when the list is right-clicked More...
 
void preselect (QListWidgetItem *item=nullptr)
 
void search (const QString &text)
 get called when text is entered in the search box More...
 
void select (QListWidgetItem *item=nullptr)
 different actions More...
 
void showPart (void)
 
void toggleSelect (QListWidgetItem *item=nullptr)
 
void toPython (void)
 
void touch (void)
 
void treeSelect (void)
 
void validateSearch (void)
 get called when enter is pressed in the search box More...
 
void zoom (void)
 

Public Member Functions

virtual const char * getName (void) const override
 returns the name of the view (important for messages) More...
 
virtual void leaveEvent (QEvent *) override
 
bool onMsg (const char *pMsg, const char **ppReturn) override
 Message handler. More...
 
virtual void onSelectionChanged (const SelectionChanges &msg) override
 Observer message from the Selection. More...
 
virtual void onUpdate (void) override
 get called when the document is changed or updated More...
 
 SelectionView (Gui::Document *pcDocument, QWidget *parent=nullptr)
 A constructor. More...
 
virtual ~SelectionView ()
 A destructor. More...
 
- Public Member Functions inherited from Gui::DockWindow
 DockWindow (Gui::Document *pcDocument=nullptr, QWidget *parent=nullptr)
 View constructor Attach the view to the given document. More...
 
virtual ~DockWindow ()
 View destructor Detach the view from the document, if attached. More...
 
virtual bool onHasMsg (const char *) const
 Message handler test. More...
 
virtual bool canClose (void)
 overwrite when checking on close state More...
 
- Public Member Functions inherited from Gui::BaseView
 BaseView (Gui::Document *pcDocument=nullptr)
 View constructor Attach the view to the given document. More...
 
virtual ~BaseView ()
 View destructor Detach the view from the document, if attached! More...
 
void setDocument (Gui::Document *pcDocument)
 sets the view to another document (called by Application) More...
 
void onClose (void)
 is sent from the document in order to close the document More...
 
Gui::DocumentgetGuiDocument () const
 returns the document the view is attached to More...
 
App::DocumentgetAppDocument () const
 returns the document the view is attached to More...
 
bool isPassive (void) const
 indicates if the view is in passive mode More...
 
virtual void onRelabel (Gui::Document *)
 get called when the document is relabeled (change of its user name) More...
 
virtual void onRename (Gui::Document *)
 get called when the document is renamed (change of its internal name) More...
 
virtual void deleteSelf ()
 delete itself More...
 
- Public Member Functions inherited from Base::BaseClass
 BaseClass ()
 Construction. More...
 
 BaseClass (const BaseClass &)=default
 
virtual PyObjectgetPyObject ()
 This method returns the Python wrapper for a C++ object. More...
 
virtual Type getTypeId () const
 
bool isDerivedFrom (const Type type) const
 
BaseClassoperator= (const BaseClass &)=default
 
virtual void setPyObject (PyObject *)
 
virtual ~BaseClass ()
 Destruction. More...
 
- Public Member Functions inherited from Gui::SelectionObserver
void attachSelection ()
 Attaches to the selection. More...
 
bool blockSelection (bool block)
 
void detachSelection ()
 Detaches from the selection. More...
 
bool isSelectionAttached () const
 
bool isSelectionBlocked () const
 
 SelectionObserver (bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement)
 Constructor. More...
 
 SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement)
 Constructor. More...
 
virtual ~SelectionObserver ()
 

Public Attributes

QLabelcountLabel
 
QCheckBoxenablePickList
 
QListWidgetpickList
 
QListWidgetselectionView
 

Protected Member Functions

void hideEvent (QHideEvent *) override
 
void showEvent (QShowEvent *) override
 

Additional Inherited Members

- Signals inherited from Gui::DockWindow
void sendCloseView (MDIView *theView)
 sends a message to the document More...
 
- Static Public Member Functions inherited from Base::BaseClass
static void * create ()
 
static Type getClassTypeId ()
 
static void init ()
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 
- Protected Attributes inherited from Gui::BaseView
bool bIsDetached
 
bool bIsPassive
 

Detailed Description

A test class.

A more elaborate class description.

Constructor & Destructor Documentation

◆ SelectionView()

SelectionView::SelectionView ( Gui::Document pcDocument,
QWidget parent = nullptr 
)

A constructor.

A more elaborate description of the constructor.

References Gui::BitmapFactory(), and draftgeoutils.intersections::connect().

◆ ~SelectionView()

SelectionView::~SelectionView ( )
virtual

A destructor.

A more elaborate description of the destructor.

Member Function Documentation

◆ deselect

void Gui::DockWnd::SelectionView::deselect ( void  )
slot

◆ getName()

virtual const char * Gui::DockWnd::SelectionView::getName ( void  ) const
overridevirtual

returns the name of the view (important for messages)

Reimplemented from Gui::DockWindow.

◆ hideEvent()

void Gui::DockWnd::SelectionView::hideEvent ( QHideEvent *  )
overrideprotected

◆ leaveEvent()

void SelectionView::leaveEvent ( QEvent )
overridevirtual

◆ onEnablePickList

void Gui::DockWnd::SelectionView::onEnablePickList ( )
slot

◆ onItemContextMenu

void Gui::DockWnd::SelectionView::onItemContextMenu ( const QPoint &  point)
slot

get called when the list is right-clicked

◆ onMsg()

bool Gui::DockWnd::SelectionView::onMsg ( const char *  ,
const char **   
)
overridevirtual

Message handler.

Reimplemented from Gui::DockWindow.

◆ onSelectionChanged()

virtual void Gui::DockWnd::SelectionView::onSelectionChanged ( const SelectionChanges msg)
overridevirtual

Observer message from the Selection.

Implements Gui::SelectionObserver.

◆ onUpdate()

virtual void Gui::DockWnd::SelectionView::onUpdate ( void  )
overridevirtual

get called when the document is changed or updated

Reimplemented from Gui::DockWindow.

◆ preselect

void Gui::DockWnd::SelectionView::preselect ( QListWidgetItem item = nullptr)
slot

◆ search

void Gui::DockWnd::SelectionView::search ( const QString &  text)
slot

get called when text is entered in the search box

Referenced by importIFClegacy.IfcDocument::find().

◆ select

void Gui::DockWnd::SelectionView::select ( QListWidgetItem item = nullptr)
slot

different actions

◆ showEvent()

void Gui::DockWnd::SelectionView::showEvent ( QShowEvent *  )
overrideprotected

◆ showPart

void Gui::DockWnd::SelectionView::showPart ( void  )
slot

◆ toggleSelect

void Gui::DockWnd::SelectionView::toggleSelect ( QListWidgetItem item = nullptr)
slot

◆ toPython

void Gui::DockWnd::SelectionView::toPython ( void  )
slot

◆ touch

void Gui::DockWnd::SelectionView::touch ( void  )
slot

◆ treeSelect

void Gui::DockWnd::SelectionView::treeSelect ( void  )
slot

◆ validateSearch

void Gui::DockWnd::SelectionView::validateSearch ( void  )
slot

get called when enter is pressed in the search box

◆ zoom

void Gui::DockWnd::SelectionView::zoom ( void  )
slot

Member Data Documentation

◆ countLabel

QLabel* Gui::DockWnd::SelectionView::countLabel

◆ enablePickList

QCheckBox* Gui::DockWnd::SelectionView::enablePickList

◆ pickList

QListWidget* Gui::DockWnd::SelectionView::pickList

◆ selectionView

QListWidget* Gui::DockWnd::SelectionView::selectionView

The documentation for this class was generated from the following files: