Developer Documentation
|
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_ |
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.
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.
_cursor | The cursor to be used in this pickmode |
Definition at line 111 of file CoreWidget.cc.
std::string PickMode::name | ( | void | ) | const |
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.
_toolbar | The 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.
_tracking | mouse 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.
_visible | Should this be a visible or a hidden pick mode? |
Definition at line 91 of file CoreWidget.cc.
bool PickMode::visible | ( | ) | const |
|
private |
Cursor used in this pickMode
Definition at line 275 of file CoreWidget.hh.
|
private |
Additional toolbar showed in this pickMode
Definition at line 279 of file CoreWidget.hh.
|
private |
MouseTracking enabled for this mode?
Definition at line 267 of file CoreWidget.hh.
|
private |
Defines if the Mode will be visible in the popup Menu
Definition at line 271 of file CoreWidget.hh.