Developer Documentation
|
#include <OpenFlipper/widgets/glWidget/QtSlideWindow.hh>
Public Member Functions | |
QtSlideWindow (const QString &_name=0, QGraphicsItem *_parent=0) | |
void | updateGeometry () |
recalculate geometry More... | |
void | attachWidget (QWidget *_m) |
attach a child widget More... | |
void | detachWidget () |
detach child widget More... | |
void | saveState (QSettings &_settings) |
saves the current state More... | |
void | restoreState (QSettings &_settings) |
restores the state More... | |
void | updateParentGeometry () |
Call this to correctly set start and ending positions. More... | |
Private Slots | |
void | detachPressed () |
detach button pressed More... | |
void | dialogClosed () |
detached dialog closed More... | |
void | autohidePressed () |
autohide button presed More... | |
void | slideUp () |
Slide widget up. More... | |
void | slideDown () |
Slide widget down. More... | |
void | animationFinished () |
Slot is called whenever the animation is finished. More... | |
void | startSlideDownAnimation () |
Start actual slide down. More... | |
Private Member Functions | |
virtual void | paintWindowFrame (QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget=0) |
paints decoration More... | |
virtual bool | windowFrameEvent (QEvent *_e) |
track frame events More... | |
virtual Qt::WindowFrameSection | windowFrameSectionAt (const QPointF &_pos) const |
categorize frame area More... | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) |
hove event tracking More... | |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) |
virtual void | resizeEvent (QGraphicsSceneResizeEvent *_event) |
size & position event tracking More... | |
virtual void | moveEvent (QGraphicsSceneMoveEvent *_event) |
Private Attributes | |
QString | name_ |
name More... | |
QWidget * | mainWidget_ |
child widget More... | |
QtGraphicsButton * | autohideButton_ |
buttons More... | |
QtGraphicsButton * | detachButton_ |
QDialog * | dialog_ |
detached dialog More... | |
QPointF | startP_ |
Starting position (for animation) More... | |
QPointF | endP_ |
Ending position (for animation) More... | |
bool | down_ |
Track if widget is at bottom position. More... | |
QPropertyAnimation * | animation_ |
Animation object. More... | |
bool | animating_ |
Is widget animating in this moment? More... | |
QTimer * | timer_ |
Wait some milliseconds before sliding widget down. More... | |
const int | fontHeight_ |
height of the default font More... | |
A graphics scene widget that has a hover slide effect and detach functionality for a child widget
Definition at line 77 of file QtSlideWindow.hh.
QtSlideWindow::QtSlideWindow | ( | const QString & | _name = 0 , |
QGraphicsItem * | _parent = 0 |
||
) |
Create a glViewer.
_name | displayed titlebar name |
_parent | parent graphics item |
Definition at line 75 of file QtSlideWindow.cc.
|
privateslot |
Slot is called whenever the animation is finished.
Definition at line 323 of file QtSlideWindow.cc.
void QtSlideWindow::attachWidget | ( | QWidget * | _m | ) |
attach a child widget
Definition at line 127 of file QtSlideWindow.cc.
|
privateslot |
autohide button presed
Definition at line 303 of file QtSlideWindow.cc.
|
privateslot |
detach button pressed
Definition at line 259 of file QtSlideWindow.cc.
void QtSlideWindow::detachWidget | ( | ) |
detach child widget
Definition at line 148 of file QtSlideWindow.cc.
|
privateslot |
detached dialog closed
Definition at line 288 of file QtSlideWindow.cc.
|
privatevirtual |
hove event tracking
Definition at line 209 of file QtSlideWindow.cc.
|
privatevirtual |
Definition at line 233 of file QtSlideWindow.cc.
|
privatevirtual |
Definition at line 252 of file QtSlideWindow.cc.
|
privatevirtual |
paints decoration
Definition at line 168 of file QtSlideWindow.cc.
|
privatevirtual |
size & position event tracking
Definition at line 245 of file QtSlideWindow.cc.
void QtSlideWindow::restoreState | ( | QSettings & | _settings | ) |
restores the state
Definition at line 413 of file QtSlideWindow.cc.
void QtSlideWindow::saveState | ( | QSettings & | _settings | ) |
saves the current state
Definition at line 403 of file QtSlideWindow.cc.
|
privateslot |
Slide widget down.
Definition at line 354 of file QtSlideWindow.cc.
|
privateslot |
Slide widget up.
Definition at line 337 of file QtSlideWindow.cc.
|
privateslot |
Start actual slide down.
Definition at line 365 of file QtSlideWindow.cc.
void QtSlideWindow::updateGeometry | ( | ) |
recalculate geometry
Definition at line 378 of file QtSlideWindow.cc.
void QtSlideWindow::updateParentGeometry | ( | ) |
Call this to correctly set start and ending positions.
Definition at line 312 of file QtSlideWindow.cc.
|
privatevirtual |
track frame events
Definition at line 183 of file QtSlideWindow.cc.
|
privatevirtual |
categorize frame area
Definition at line 198 of file QtSlideWindow.cc.
|
private |
Is widget animating in this moment?
Definition at line 176 of file QtSlideWindow.hh.
|
private |
Animation object.
Definition at line 173 of file QtSlideWindow.hh.
|
private |
buttons
Definition at line 157 of file QtSlideWindow.hh.
|
private |
Definition at line 158 of file QtSlideWindow.hh.
|
private |
detached dialog
Definition at line 161 of file QtSlideWindow.hh.
|
private |
Track if widget is at bottom position.
Definition at line 170 of file QtSlideWindow.hh.
|
private |
Ending position (for animation)
Definition at line 167 of file QtSlideWindow.hh.
|
private |
height of the default font
Definition at line 182 of file QtSlideWindow.hh.
|
private |
child widget
Definition at line 154 of file QtSlideWindow.hh.
|
private |
name
Definition at line 151 of file QtSlideWindow.hh.
|
private |
Starting position (for animation)
Definition at line 164 of file QtSlideWindow.hh.
|
private |
Wait some milliseconds before sliding widget down.
Definition at line 179 of file QtSlideWindow.hh.