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. More... | |
~PickMode () | |
Destructor. More... | |
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. More... | |
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 183 of file CoreWidget.hh.
PickMode::PickMode | ( | const std::string & | _n, |
const bool | _t, | ||
const bool | _v, | ||
QCursor | _c, | ||
QToolBar * | _tb = 0 |
||
) |
Constructor.
Definition at line 78 of file CoreWidget.cc.
|
inline |
Destructor.
Definition at line 190 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 112 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 108 of file CoreWidget.cc.
std::string PickMode::name | ( | void | ) | const |
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 120 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.
_toolbar | The used toolbar |
Definition at line 116 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 104 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 100 of file CoreWidget.cc.
bool PickMode::visible | ( | ) | const |
void PickMode::visible | ( | const bool | _visible | ) |
PickMode visible.
_visible | Should this be a visible or a hidden pick mode? |
Definition at line 88 of file CoreWidget.cc.
|
private |
Cursor used in this pickMode
Definition at line 274 of file CoreWidget.hh.
|
private |
Name of the pickMode.
Definition at line 262 of file CoreWidget.hh.
|
private |
Additional toolbar showed in this pickMode
Definition at line 278 of file CoreWidget.hh.
|
private |
MouseTracking enabled for this mode?
Definition at line 266 of file CoreWidget.hh.
|
private |
Defines if the Mode will be visible in the popup Menu
Definition at line 270 of file CoreWidget.hh.