Quartz::QuartzClient Class Reference
Inheritance diagram for Quartz::QuartzClient:

Public Member Functions | |
QuartzClient (KDecorationBridge *bridge, KDecorationFactory *factory) | |
~QuartzClient () | |
virtual void | init () |
virtual void | resize (const QSize &) |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Protected Slots | |
void | slotMaximize () |
void | slotAbove () |
void | slotBelow () |
void | slotShade () |
void | menuButtonPressed () |
void | keepAboveChange (bool) |
void | keepBelowChange (bool) |
Protected Member Functions | |
virtual void | reset (unsigned long changed) |
void | resizeEvent (QResizeEvent *) |
void | paintEvent (QPaintEvent *) |
void | showEvent (QShowEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | captionChange () |
void | maximizeChange () |
virtual void | shadeChange () |
virtual void | activeChange () |
virtual void | iconChange () |
virtual void | desktopChange () |
virtual QuartzClient::Position | mousePosition (const QPoint &point) const |
virtual void | borders (int &, int &, int &, int &) const |
virtual QSize | minimumSize () const |
Detailed Description
Definition at line 80 of file quartz.h.
Member Function Documentation
|
This function is called immediately after the decoration object is created. Due to some technical reasons, initialization should be done here instead of in the constructor. Implements KDecoration. Definition at line 541 of file quartz.cpp. References QGridLayout::addColSpacing(), QBoxLayout::addItem(), QGridLayout::addItem(), QGridLayout::addLayout(), QGridLayout::addRowSpacing(), QBoxLayout::addSpacing(), QGridLayout::addWidget(), Quartz::borderWidth, QObject::connect(), KDecoration::createMainWidget(), KDecoration::isPreview(), keepAboveChange(), KDecoration::keepAboveChanged(), keepBelowChange(), KDecoration::keepBelowChanged(), Quartz::normalTitleHeight, KDecoration::options(), QWidget::setBackgroundMode(), QGridLayout::setRowStretch(), Quartz::toolTitleHeight, and KDecoration::widget(). |
|
This method is called by kwin when the style should resize the decoration window. The usual implementation is to resize the main widget of the decoration to the given size.
Implements KDecoration. Definition at line 1060 of file quartz.cpp. References QWidget::resize(), and KDecoration::widget(). |
|
This function is called to reset the decoration on settings changes. It is usually invoked by calling KDecorationFactory::resetDecorations().
Reimplemented from KDecoration. Definition at line 603 of file quartz.cpp. References QWidget::repaint(), KDecorationDefines::SettingColors, KDecorationDefines::SettingFont, and KDecoration::widget(). |
|
This function is called whenever the caption changes. Use caption() to get it. Implements KDecoration. Definition at line 861 of file quartz.cpp. References QWidget::repaint(), and KDecoration::widget(). |
|
This function is called whenever the maximalization state of the window changes. Use maximizeMode() to get the current state. Implements KDecoration. Definition at line 998 of file quartz.cpp. References Quartz::maximize_bits, KDecorationDefines::MaximizeFull, KDecoration::maximizeMode(), Quartz::minmax_bits, Quartz::QuartzButton::setBitmap(), and Quartz::QuartzButton::setTipText(). |
|
This function is called whenever the window is shaded or unshaded. Use isShade() to get the current state. Implements KDecoration. Definition at line 786 of file quartz.cpp. References QToolTip::add(), KDecoration::isSetShade(), QToolTip::remove(), Quartz::QuartzButton::setBitmap(), Quartz::shade_on_bits, and Quartz::QuartzButton::turnOn(). |
|
This function is called whenever the window either becomes or stops being active. Use isActive() to find out the current state. Implements KDecoration. Definition at line 1007 of file quartz.cpp. References QWidget::repaint(), and KDecoration::widget(). |
|
This function is called whenever the window icon changes. Use icon() to get it. Implements KDecoration. Definition at line 751 of file quartz.cpp. |
|
This function is called whenever the desktop for the window changes. Use desktop() or isOnAllDesktops() to find out the current desktop on which the window is. Implements KDecoration. Definition at line 758 of file quartz.cpp. References KDecoration::isOnAllDesktops(), Quartz::QuartzButton::setTipText(), and Quartz::QuartzButton::turnOn(). |
|
This function should return mouse cursor position in the decoration. Positions at the edge will result in window resizing with mouse button pressed, center position will result in moving. Implements KDecoration. Definition at line 1017 of file quartz.cpp. References QRect::bottom(), QRect::right(), KDecoration::widget(), QPoint::x(), and QPoint::y(). |
|
This function should return the distance from each window side to the inner window. The sizes may depend on the state of the decorated window, such as whether it's shaded. Decorations often turn off their bottom border when the window is shaded, and turn off their left/right/bottom borders when the window is maximized and moving and resizing of maximized windows is disabled. This function mustn't do any repaints or resizes. Also, if the sizes returned by this function don't match the real values, this may result in drawing errors or other problems.
Implements KDecoration. Definition at line 1046 of file quartz.cpp. References KDecorationDefines::MaximizeFull, KDecoration::maximizeMode(), and KDecoration::options(). |
|
This function should return the minimum required size for the decoration. Note that the returned size shouldn't be too large, because it will be used to keep the decorated window at least as large. Implements KDecoration. Definition at line 1066 of file quartz.cpp. References QWidget::minimumSize(), and KDecoration::widget(). |
The documentation for this class was generated from the following files: