Developer Documentation
PickMode Class Reference

Struct containing information about pickModes. More...

#include <OpenFlipper/widgets/coreWidget/CoreWidget.hh>

Public Member Functions

 PickMode (const std::string &_n, const bool _t, const bool _v, QCursor _c, QToolBar *_tb=0)
 Constructor.
 
 ~PickMode ()
 Destructor.
 
void visible (const bool _visible)
 PickMode visible. More...
 
bool visible () const
 PickMode visible. More...
 
std::string name () const
 PickMode Name. More...
 
void tracking (const bool _tracking)
 PickMode mouse tracking. More...
 
bool tracking () const
 PickMode mouse tracking. More...
 
QCursor cursor () const
 PickMode cursor. More...
 
void cursor (const QCursor _cursor)
 PickMode cursor. More...
 
void toolbar (QToolBar *_toolbar)
 PickMode toolbar. More...
 
QToolBar * toolbar () const
 PickMode toolbar. More...
 

Private Attributes

std::string name_
 Name of the pickMode.
 
bool tracking_
 
bool visible_
 
QCursor cursor_
 
QToolBar * toolbar_
 

Detailed Description

Struct containing information about pickModes.

This is an internal DataStructure! Don't use it. It's used to manage the pickmode information internally.

Definition at line 184 of file CoreWidget.hh.

Member Function Documentation

QCursor PickMode::cursor ( ) const

PickMode cursor.

The cursor associated with this pick mode. You can define a non standard cursor that is visible, if this pick mode is active.

Definition at line 115 of file CoreWidget.cc.

void PickMode::cursor ( const QCursor  _cursor)

PickMode cursor.

The cursor associated with this pick mode. You can define a non standard cursor that is visible, if this pick mode is active.

Parameters
_cursorThe cursor to be used in this pickmode

Definition at line 111 of file CoreWidget.cc.

std::string PickMode::name ( void  ) const

PickMode Name.

Name of the pick mode

Definition at line 99 of file CoreWidget.cc.

void PickMode::toolbar ( QToolBar *  _toolbar)

PickMode toolbar.

Each pickmode can have a toolbar that will be visible at the top of the screen. This toolbar is stored here.

Parameters
_toolbarThe used toolbar

Definition at line 119 of file CoreWidget.cc.

QToolBar * PickMode::toolbar ( ) const

PickMode toolbar.

Each pickmode can have a toolbar that will be visible at the top of the screen. This toolbar is stored here.

Definition at line 123 of file CoreWidget.cc.

void PickMode::tracking ( const bool  _tracking)

PickMode mouse tracking.

If the pick mode has mouse tracking enabled, it will emit mouse events with every movement and not only on button events.

Parameters
_trackingmouse tracking enabled or not

Definition at line 103 of file CoreWidget.cc.

bool PickMode::tracking ( ) const

PickMode mouse tracking.

If the pick mode has mouse tracking enabled, it will emit mouse events with every movement and not only on button events.

Definition at line 107 of file CoreWidget.cc.

void PickMode::visible ( const bool  _visible)

PickMode visible.

Parameters
_visibleShould this be a visible or a hidden pick mode?

Definition at line 91 of file CoreWidget.cc.

bool PickMode::visible ( ) const

PickMode visible.

Visible or hidden pick mode

Definition at line 95 of file CoreWidget.cc.

Member Data Documentation

QCursor PickMode::cursor_
private

Cursor used in this pickMode

Definition at line 275 of file CoreWidget.hh.

QToolBar* PickMode::toolbar_
private

Additional toolbar showed in this pickMode

Definition at line 279 of file CoreWidget.hh.

bool PickMode::tracking_
private

MouseTracking enabled for this mode?

Definition at line 267 of file CoreWidget.hh.

bool PickMode::visible_
private

Defines if the Mode will be visible in the popup Menu

Definition at line 271 of file CoreWidget.hh.


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