OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
CSVRender::SelectionMode Class Reference

#include <selectionmode.hpp>

Inheritance diagram for CSVRender::SelectionMode:
Collaboration diagram for CSVRender::SelectionMode:

Public Member Functions

 SelectionMode (CSVWidget::SceneToolbar *parent, WorldspaceWidget &worldspaceWidget, unsigned int interactionMask)
 
- Public Member Functions inherited from CSVWidget::SceneToolMode
 SceneToolMode (SceneToolbar *parent, const QString &toolTip)
 
virtual void showPanel (const QPoint &position)
 
void addButton (const std::string &icon, const std::string &id, const QString &tooltip="")
 
void addButton (ModeButton *button, const std::string &id)
 The ownership of button is transferred to *this. More...
 
ModeButtongetCurrent ()
 Will return a 0-pointer only if the mode does not have any buttons yet. More...
 
std::string getCurrentId () const
 Must not be called if there aren't any buttons yet. More...
 
void setButton (const std::string &id)
 Manually change the current mode. More...
 
- Public Member Functions inherited from CSVWidget::SceneTool
 SceneTool (SceneToolbar *parent, Type type=Type_TopMode)
 
virtual void activate ()
 
- Public Member Functions inherited from CSVWidget::PushButton
 PushButton (const QIcon &icon, Type type, const QString &tooltip="", QWidget *parent=0)
 
 PushButton (Type type, const QString &tooltip="", QWidget *parent=0)
 
bool hasKeepOpen () const
 
QString getBaseToolTip () const
 Return tooltip used at construction (without any button-specific modifications) More...
 
Type getType () const
 

Protected Slots

virtual void selectAll ()
 
virtual void clearSelection ()
 
virtual void invertSelection ()
 

Protected Member Functions

WorldspaceWidgetgetWorldspaceWidget ()
 
virtual bool createContextMenu (QMenu *menu)
 
- Protected Member Functions inherited from CSVWidget::SceneToolMode
bool event (QEvent *event)
 
- Protected Member Functions inherited from CSVWidget::SceneTool
void mouseReleaseEvent (QMouseEvent *event)
 
- Protected Member Functions inherited from CSVWidget::PushButton
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 

Private Attributes

WorldspaceWidgetmWorldspaceWidget
 
unsigned int mInteractionMask
 
QActionmSelectAll
 
QActionmDeselectAll
 
QActionmInvertSelection
 

Additional Inherited Members

- Public Types inherited from CSVWidget::PushButton
enum  Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle }
 
- Signals inherited from CSVWidget::SceneToolMode
void modeChanged (const std::string &id)
 

Constructor & Destructor Documentation

CSVRender::SelectionMode::SelectionMode ( CSVWidget::SceneToolbar parent,
WorldspaceWidget worldspaceWidget,
unsigned int  interactionMask 
)

Here is the call graph for this function:

Member Function Documentation

void CSVRender::SelectionMode::clearSelection ( )
protectedvirtualslot

Here is the call graph for this function:

Here is the caller graph for this function:

bool CSVRender::SelectionMode::createContextMenu ( QMenu menu)
protectedvirtual

Add context menu items to menu.

Attention
menu can be a 0-pointer
Returns
Have there been any menu items to be added (if menu is 0 and there items to be added, the function must return true anyway.

Reimplemented from CSVWidget::SceneToolMode.

Reimplemented in CSVRender::InstanceSelectionMode, and CSVRender::PathgridSelectionMode.

Here is the caller graph for this function:

WorldspaceWidget & CSVRender::SelectionMode::getWorldspaceWidget ( )
protected

Here is the caller graph for this function:

void CSVRender::SelectionMode::invertSelection ( )
protectedvirtualslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::SelectionMode::selectAll ( )
protectedvirtualslot

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QAction* CSVRender::SelectionMode::mDeselectAll
private
unsigned int CSVRender::SelectionMode::mInteractionMask
private
QAction* CSVRender::SelectionMode::mInvertSelection
private
QAction* CSVRender::SelectionMode::mSelectAll
private
WorldspaceWidget& CSVRender::SelectionMode::mWorldspaceWidget
private

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