ModernSystem::ModernSys Class Reference
Inheritance diagram for ModernSystem::ModernSys:

Public Member Functions | |
ModernSys (KDecorationBridge *b, KDecorationFactory *f) | |
~ModernSys () | |
void | init () |
Protected Slots | |
void | maxButtonClicked () |
void | slotAbove () |
void | slotBelow () |
void | slotShade () |
void | keepAboveChange (bool) |
void | keepBelowChange (bool) |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
void | drawRoundFrame (QPainter &p, int x, int y, int w, int h) |
void | resizeEvent (QResizeEvent *) |
void | paintEvent (QPaintEvent *) |
void | showEvent (QShowEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
void | captionChange () |
void | maximizeChange () |
void | doShape () |
void | recalcTitleBuffer () |
void | activeChange () |
Position | mousePosition (const QPoint &) const |
void | desktopChange () |
void | shadeChange () |
void | iconChange () |
QSize | minimumSize () const |
void | resize (const QSize &) |
void | borders (int &, int &, int &, int &) const |
void | reset (unsigned long) |
Detailed Description
Definition at line 43 of file modernsys.h.
Member Function Documentation
|
|
This function is called whenever the caption changes. Use caption() to get it. Implements KDecoration. Definition at line 579 of file modernsys.cpp. References recalcTitleBuffer(), 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 717 of file modernsys.cpp. References ModernSystem::maximize_bits, KDecorationDefines::MaximizeFull, KDecoration::maximizeMode(), ModernSystem::minmax_bits, and ModernSystem::ModernButton::setBitmap(). |
|
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 725 of file modernsys.cpp. References reset(), and KDecoration::widget(). |
|
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 749 of file modernsys.cpp. References ModernSystem::border_width, ModernSystem::handle_width, KDecoration::height(), KDecoration::mousePosition(), ModernSystem::show_handle, and KDecoration::width(). |
|
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 709 of file modernsys.cpp. References KDecoration::isOnAllDesktops(), ModernSystem::ModernButton::setBitmap(), ModernSystem::sticky_bits, and ModernSystem::unsticky_bits. |
|
This function is called whenever the window is shaded or unshaded. Use isShade() to get the current state. Implements KDecoration. Definition at line 792 of file modernsys.cpp. References KDecoration::isSetShade(), ModernSystem::ModernButton::setBitmap(), ModernSystem::shade_off_bits, ModernSystem::shade_on_bits, and ModernSystem::ModernButton::turnOn(). |
|
This function is called whenever the window icon changes. Use icon() to get it. Implements KDecoration. Definition at line 788 of file modernsys.cpp. |
|
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 804 of file modernsys.cpp. |
|
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 783 of file modernsys.cpp. References KDecoration::widget(). |
|
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 809 of file modernsys.cpp. References ModernSystem::border_width, and ModernSystem::handle_width. |
|
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 375 of file modernsys.cpp. References recalcTitleBuffer(), and KDecoration::widget(). Referenced by activeChange(). |
The documentation for this class was generated from the following files: