diff options
Diffstat (limited to 'kwin/lib')
-rw-r--r-- | kwin/lib/kcommondecoration.cpp | 132 | ||||
-rw-r--r-- | kwin/lib/kcommondecoration.h | 30 | ||||
-rw-r--r-- | kwin/lib/kdecoration.cpp | 8 | ||||
-rw-r--r-- | kwin/lib/kdecoration.h | 42 | ||||
-rw-r--r-- | kwin/lib/kdecoration_p.h | 2 | ||||
-rw-r--r-- | kwin/lib/kdecoration_plugins_p.cpp | 2 | ||||
-rw-r--r-- | kwin/lib/kdecorationfactory.cpp | 2 | ||||
-rw-r--r-- | kwin/lib/kdecorationfactory.h | 4 |
8 files changed, 111 insertions, 111 deletions
diff --git a/kwin/lib/kcommondecoration.cpp b/kwin/lib/kcommondecoration.cpp index a950a7ecb..87541ad60 100644 --- a/kwin/lib/kcommondecoration.cpp +++ b/kwin/lib/kcommondecoration.cpp @@ -73,7 +73,7 @@ bool KCommonDecoration::decorationBehaviour(DecorationBehaviour behaviour) const return false; } -int KCommonDecoration::tqlayoutMetric(LayoutMetric lm, bool, const KCommonDecorationButton *) const +int KCommonDecoration::layoutMetric(LayoutMetric lm, bool, const KCommonDecorationButton *) const { switch (lm) { case LM_BorderLeft: @@ -145,12 +145,12 @@ void KCommonDecoration::updateCaption() void KCommonDecoration::borders( int& left, int& right, int& top, int& bottom ) const { - left = tqlayoutMetric(LM_BorderLeft); - right = tqlayoutMetric(LM_BorderRight); - bottom = tqlayoutMetric(LM_BorderBottom); - top = tqlayoutMetric(LM_TitleHeight) + - tqlayoutMetric(LM_TitleEdgeTop) + - tqlayoutMetric(LM_TitleEdgeBottom); + left = layoutMetric(LM_BorderLeft); + right = layoutMetric(LM_BorderRight); + bottom = layoutMetric(LM_BorderBottom); + top = layoutMetric(LM_TitleHeight) + + layoutMetric(LM_TitleEdgeTop) + + layoutMetric(LM_TitleEdgeBottom); updateLayout(); // TODO!! don't call everytime we are in ::borders } @@ -161,14 +161,14 @@ void KCommonDecoration::updateLayout() const int r_x, r_y, r_x2, r_y2; r.coords(&r_x, &r_y, &r_x2, &r_y2); - // tqlayout preview widget + // layout preview widget if (m_previewWidget) { - const int borderLeft = tqlayoutMetric(LM_BorderLeft); - const int borderRight = tqlayoutMetric(LM_BorderRight); - const int borderBottom = tqlayoutMetric(LM_BorderBottom); - const int titleHeight = tqlayoutMetric(LM_TitleHeight); - const int titleEdgeTop = tqlayoutMetric(LM_TitleEdgeTop); - const int titleEdgeBottom = tqlayoutMetric(LM_TitleEdgeBottom); + const int borderLeft = layoutMetric(LM_BorderLeft); + const int borderRight = layoutMetric(LM_BorderRight); + const int borderBottom = layoutMetric(LM_BorderBottom); + const int titleHeight = layoutMetric(LM_TitleHeight); + const int titleEdgeTop = layoutMetric(LM_TitleEdgeTop); + const int titleEdgeBottom = layoutMetric(LM_TitleEdgeBottom); int left = r_x+borderLeft; int top = r_y+titleEdgeTop+titleHeight+titleEdgeBottom; @@ -182,28 +182,28 @@ void KCommonDecoration::updateLayout() const // resize buttons... for (int n=0; n<NumButtons; n++) { if (m_button[n]) { - TQSize newSize = TQSize(tqlayoutMetric(LM_ButtonWidth, true, m_button[n]), - tqlayoutMetric(LM_ButtonHeight, true, m_button[n]) ); + TQSize newSize = TQSize(layoutMetric(LM_ButtonWidth, true, m_button[n]), + layoutMetric(LM_ButtonHeight, true, m_button[n]) ); if (newSize != m_button[n]->size() ) m_button[n]->setSize(newSize); } } - // tqlayout buttons - int y = r_y + tqlayoutMetric(LM_TitleEdgeTop) + tqlayoutMetric(LM_ButtonMarginTop); + // layout buttons + int y = r_y + layoutMetric(LM_TitleEdgeTop) + layoutMetric(LM_ButtonMarginTop); if (m_buttonsLeft.count() > 0) { - const int buttonSpacing = tqlayoutMetric(LM_ButtonSpacing); - int x = r_x + tqlayoutMetric(LM_TitleEdgeLeft); + const int buttonSpacing = layoutMetric(LM_ButtonSpacing); + int x = r_x + layoutMetric(LM_TitleEdgeLeft); for (ButtonContainer::const_iterator it = m_buttonsLeft.begin(); it != m_buttonsLeft.end(); ++it) { bool elementLayouted = false; if (*it) { if (!(*it)->isHidden() ) { moveWidget(x,y, *it); - x += tqlayoutMetric(LM_ButtonWidth, true, ::qt_cast<KCommonDecorationButton*>(*it) ); + x += layoutMetric(LM_ButtonWidth, true, ::qt_cast<KCommonDecorationButton*>(*it) ); elementLayouted = true; } } else { - x+= tqlayoutMetric(LM_ExplicitButtonSpacer); + x+= layoutMetric(LM_ExplicitButtonSpacer); elementLayouted = true; } if (elementLayouted && it != m_buttonsLeft.end() ) @@ -212,20 +212,20 @@ void KCommonDecoration::updateLayout() const } if (m_buttonsRight.count() > 0) { - const int titleEdgeRightLeft = r_x2-tqlayoutMetric(LM_TitleEdgeRight)+1; + const int titleEdgeRightLeft = r_x2-layoutMetric(LM_TitleEdgeRight)+1; - const int buttonSpacing = tqlayoutMetric(LM_ButtonSpacing); + const int buttonSpacing = layoutMetric(LM_ButtonSpacing); int x = titleEdgeRightLeft - buttonContainerWidth(m_buttonsRight); for (ButtonContainer::const_iterator it = m_buttonsRight.begin(); it != m_buttonsRight.end(); ++it) { bool elementLayouted = false; if (*it) { if (!(*it)->isHidden() ) { moveWidget(x,y, *it); - x += tqlayoutMetric(LM_ButtonWidth, true, ::qt_cast<KCommonDecorationButton*>(*it) );; + x += layoutMetric(LM_ButtonWidth, true, ::qt_cast<KCommonDecorationButton*>(*it) );; elementLayouted = true; } } else { - x += tqlayoutMetric(LM_ExplicitButtonSpacer); + x += layoutMetric(LM_ExplicitButtonSpacer); elementLayouted = true; } if (elementLayouted && it != m_buttonsRight.end() ) @@ -277,8 +277,8 @@ void KCommonDecoration::resetLayout() const int minTitleBarWidth = 35; btnHideMinWidth = buttonContainerWidth(m_buttonsLeft,true) + buttonContainerWidth(m_buttonsRight,true) + - tqlayoutMetric(LM_TitleEdgeLeft,false) + tqlayoutMetric(LM_TitleEdgeRight,false) + - tqlayoutMetric(LM_TitleBorderLeft,false) + tqlayoutMetric(LM_TitleBorderRight,false) + + layoutMetric(LM_TitleEdgeLeft,false) + layoutMetric(LM_TitleEdgeRight,false) + + layoutMetric(LM_TitleBorderLeft,false) + layoutMetric(LM_TitleBorderRight,false) + minTitleBarWidth; btnHideLastWidth = 0; } @@ -295,7 +295,7 @@ int KCommonDecoration::buttonsRightWidth() const int KCommonDecoration::buttonContainerWidth(const ButtonContainer &btnContainer, bool countHidden) const { - int explicitSpacer = tqlayoutMetric(LM_ExplicitButtonSpacer); + int explicitSpacer = layoutMetric(LM_ExplicitButtonSpacer); int shownElementsCount = 0; @@ -311,7 +311,7 @@ int KCommonDecoration::buttonContainerWidth(const ButtonContainer &btnContainer, ++shownElementsCount; } } - w += tqlayoutMetric(LM_ButtonSpacing)*(shownElementsCount-1); + w += layoutMetric(LM_ButtonSpacing)*(shownElementsCount-1); return w; } @@ -437,7 +437,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const TQString if (btn) { btn->setLeft(isLeft); - btn->setSize(TQSize(tqlayoutMetric(LM_ButtonWidth, true, btn),tqlayoutMetric(LM_ButtonHeight, true, btn)) ); + btn->setSize(TQSize(layoutMetric(LM_ButtonWidth, true, btn),layoutMetric(LM_ButtonHeight, true, btn)) ); btn->show(); btnContainer.append(btn); } @@ -497,15 +497,15 @@ void KCommonDecoration::resize( const TQSize& s ) widget()->resize( s ); } -TQSize KCommonDecoration::tqminimumSize() const +TQSize KCommonDecoration::minimumSize() const { - const int minWidth = QMAX(tqlayoutMetric(LM_TitleEdgeLeft), tqlayoutMetric(LM_BorderLeft)) - +QMAX(tqlayoutMetric(LM_TitleEdgeRight), tqlayoutMetric(LM_BorderRight)) - +tqlayoutMetric(LM_TitleBorderLeft)+tqlayoutMetric(LM_TitleBorderRight); + const int minWidth = QMAX(layoutMetric(LM_TitleEdgeLeft), layoutMetric(LM_BorderLeft)) + +QMAX(layoutMetric(LM_TitleEdgeRight), layoutMetric(LM_BorderRight)) + +layoutMetric(LM_TitleBorderLeft)+layoutMetric(LM_TitleBorderRight); return TQSize(minWidth, - tqlayoutMetric(LM_TitleEdgeTop)+tqlayoutMetric(LM_TitleHeight) - +tqlayoutMetric(LM_TitleEdgeBottom) - +tqlayoutMetric(LM_BorderBottom) ); + layoutMetric(LM_TitleEdgeTop)+layoutMetric(LM_TitleHeight) + +layoutMetric(LM_TitleEdgeBottom) + +layoutMetric(LM_BorderBottom) ); } void KCommonDecoration::maximizeChange() @@ -659,7 +659,7 @@ void KCommonDecoration::resizeEvent(TQResizeEvent */*e*/) updateWindowShape(); // FIXME: don't update() here! this would result in two paintEvent()s - // because there is already "something" else triggering the tqrepaint... + // because there is already "something" else triggering the repaint... // widget()->update(); } @@ -688,7 +688,7 @@ void KCommonDecoration::mouseDoubleClickEvent(TQMouseEvent *e) if( e->button() != LeftButton ) return; - int tb = tqlayoutMetric(LM_TitleEdgeTop)+tqlayoutMetric(LM_TitleHeight)+tqlayoutMetric(LM_TitleEdgeBottom); + int tb = layoutMetric(LM_TitleEdgeTop)+layoutMetric(LM_TitleHeight)+layoutMetric(LM_TitleEdgeBottom); // when shaded, react on double clicks everywhere to make it easier to unshade. otherwise // react only on double clicks in the title bar region... if (isSetShade() || e->pos().y() <= tb ) @@ -697,14 +697,14 @@ void KCommonDecoration::mouseDoubleClickEvent(TQMouseEvent *e) void KCommonDecoration::wheelEvent(TQWheelEvent *e) { - int tb = tqlayoutMetric(LM_TitleEdgeTop)+tqlayoutMetric(LM_TitleHeight)+tqlayoutMetric(LM_TitleEdgeBottom); + int tb = layoutMetric(LM_TitleEdgeTop)+layoutMetric(LM_TitleHeight)+layoutMetric(LM_TitleEdgeBottom); if (isSetShade() || e->pos().y() <= tb ) titlebarMouseWheelOperation( e->delta()); } KCommonDecoration::Position KCommonDecoration::mousePosition(const TQPoint &point) const { - const int corner = 18+3*tqlayoutMetric(LM_BorderBottom, false)/2; + const int corner = 18+3*layoutMetric(LM_BorderBottom, false)/2; Position pos = PositionCenter; TQRect r = widget()->rect(); @@ -712,14 +712,14 @@ KCommonDecoration::Position KCommonDecoration::mousePosition(const TQPoint &poin r.coords(&r_x, &r_y, &r_x2, &r_y2); int p_x = point.x(); int p_y = point.y(); - const int borderLeft = tqlayoutMetric(LM_BorderLeft); -// const int borderRight = tqlayoutMetric(LM_BorderRight); - const int borderBottom = tqlayoutMetric(LM_BorderBottom); - const int titleHeight = tqlayoutMetric(LM_TitleHeight); - const int titleEdgeTop = tqlayoutMetric(LM_TitleEdgeTop); - const int titleEdgeBottom = tqlayoutMetric(LM_TitleEdgeBottom); - const int titleEdgeLeft = tqlayoutMetric(LM_TitleEdgeLeft); - const int titleEdgeRight = tqlayoutMetric(LM_TitleEdgeRight); + const int borderLeft = layoutMetric(LM_BorderLeft); +// const int borderRight = layoutMetric(LM_BorderRight); + const int borderBottom = layoutMetric(LM_BorderBottom); + const int titleHeight = layoutMetric(LM_TitleHeight); + const int titleEdgeTop = layoutMetric(LM_TitleEdgeTop); + const int titleEdgeBottom = layoutMetric(LM_TitleEdgeBottom); + const int titleEdgeLeft = layoutMetric(LM_TitleEdgeLeft); + const int titleEdgeRight = layoutMetric(LM_TitleEdgeRight); const int borderBottomTop = r_y2-borderBottom+1; const int borderLeftRight = r_x+borderLeft-1; @@ -769,7 +769,7 @@ KCommonDecoration::Position KCommonDecoration::mousePosition(const TQPoint &poin void KCommonDecoration::updateWindowShape() { - // don't tqmask the widget... + // don't mask the widget... if (!decorationBehaviour(DB_WindowMask) ) return; @@ -783,7 +783,7 @@ void KCommonDecoration::updateWindowShape() for(int screen=0; screen < desktop->numScreens(); ++screen) { TQRect fullscreen(desktop->screenGeometry(screen)); - TQRect window = tqgeometry(); + TQRect window = geometry(); if(window.topLeft() == fullscreen.topLeft() ) tl = false; if(window.topRight() == fullscreen.topRight() ) tr = false; @@ -791,30 +791,30 @@ void KCommonDecoration::updateWindowShape() if(window.bottomRight()== fullscreen.bottomRight() ) br = false; } - TQRegion tqmask(0, 0, w, h); + TQRegion mask(0, 0, w, h); // Remove top-left corner. if(tl) { - tqmask -= cornerShape(WC_TopLeft); + mask -= cornerShape(WC_TopLeft); } // Remove top-right corner. if(tr) { - tqmask -= cornerShape(WC_TopRight); + mask -= cornerShape(WC_TopRight); } // Remove top-left corner. if(bl) { - tqmask -= cornerShape(WC_BottomLeft); + mask -= cornerShape(WC_BottomLeft); } // Remove top-right corner. if(br) { - tqmask -= cornerShape(WC_BottomRight); + mask -= cornerShape(WC_BottomRight); } - setMask( tqmask ); + setMask( mask ); } bool KCommonDecoration::eventFilter( TQObject* o, TQEvent* e ) @@ -857,13 +857,13 @@ TQRect KCommonDecoration::titleRect() const { int r_x, r_y, r_x2, r_y2; widget()->rect().coords(&r_x, &r_y, &r_x2, &r_y2); - const int titleEdgeLeft = tqlayoutMetric(LM_TitleEdgeLeft); - const int titleEdgeTop = tqlayoutMetric(LM_TitleEdgeTop); - const int titleEdgeRight = tqlayoutMetric(LM_TitleEdgeRight); - const int titleEdgeBottom = tqlayoutMetric(LM_TitleEdgeBottom); - const int titleBorderLeft = tqlayoutMetric(LM_TitleBorderLeft); - const int titleBorderRight = tqlayoutMetric(LM_TitleBorderRight); - const int ttlHeight = tqlayoutMetric(LM_TitleHeight); + const int titleEdgeLeft = layoutMetric(LM_TitleEdgeLeft); + const int titleEdgeTop = layoutMetric(LM_TitleEdgeTop); + const int titleEdgeRight = layoutMetric(LM_TitleEdgeRight); + const int titleEdgeBottom = layoutMetric(LM_TitleEdgeBottom); + const int titleBorderLeft = layoutMetric(LM_TitleBorderLeft); + const int titleBorderRight = layoutMetric(LM_TitleBorderRight); + const int ttlHeight = layoutMetric(LM_TitleHeight); const int titleEdgeBottomBottom = r_y+titleEdgeTop+ttlHeight+titleEdgeBottom-1; return TQRect(r_x+titleEdgeLeft+buttonsLeftWidth()+titleBorderLeft, r_y+titleEdgeTop, r_x2-titleEdgeRight-buttonsRightWidth()-titleBorderRight-(r_x+titleEdgeLeft+buttonsLeftWidth()+titleBorderLeft), @@ -921,7 +921,7 @@ void KCommonDecorationButton::setSize(const TQSize &s) } } -TQSize KCommonDecorationButton::tqsizeHint() const +TQSize KCommonDecorationButton::sizeHint() const { return m_size; } diff --git a/kwin/lib/kcommondecoration.h b/kwin/lib/kcommondecoration.h index 64e852e77..f515a7da7 100644 --- a/kwin/lib/kcommondecoration.h +++ b/kwin/lib/kcommondecoration.h @@ -54,7 +54,7 @@ class KCommonDecorationPrivate; /** * This class eases development of decorations by implementing parts of KDecoration * which are error prone and common for most decorations. - * It takes care of the window tqlayout, button/action handling, and window tqmask creation. + * It takes care of the window layout, button/action handling, and window mask creation. */ class KWIN_EXPORT KCommonDecoration : public KDecoration { @@ -65,7 +65,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration virtual ~KCommonDecoration(); /** - * Used to calculate the decoration tqlayout. The basic tqlayout looks like this: + * Used to calculate the decoration layout. The basic layout looks like this: * * Window: * _______________________________________________________________ @@ -95,7 +95,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration * | button | spacing | button | spacing | explicit spacer | spacing | ... | spacing | button | * |________|_________|________|_________|_________________|_________|________|_________|________| * - * @see tqlayoutMetric() + * @see layoutMetric() */ enum LayoutMetric { @@ -119,7 +119,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration enum DecorationBehaviour { DB_MenuClose, ///< Close window on double clicking the menu - DB_WindowMask, ///< Set a tqmask on the window + DB_WindowMask, ///< Set a mask on the window DB_ButtonHide ///< Hide buttons when there is not enough space in the titlebar }; @@ -155,13 +155,13 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration virtual bool decorationBehaviour(DecorationBehaviour behaviour) const; /** - * This controls the tqlayout of the decoration in various ways. It is - * possible to have a different tqlayout for different window states. - * @param lm The tqlayout element. + * This controls the layout of the decoration in various ways. It is + * possible to have a different layout for different window states. + * @param lm The layout element. * @param respectWindowState Whether window states should be taken into account or a "default" state should be assumed. * @param button For LM_ButtonWidth and LM_ButtonHeight, the button. */ - virtual int tqlayoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton *button = 0) const; + virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton *button = 0) const; /** * Create a new title bar button. KCommonDecoration takes care of memory management. @@ -170,14 +170,14 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration virtual KCommonDecorationButton *createButton(ButtonType type) = 0; /** - * @return the tqmask for the specific window corner. + * @return the mask for the specific window corner. */ virtual TQRegion cornerShape(WindowCorner corner); /** - * This updates the window tqmask using the information provided by + * This updates the window mask using the information provided by * cornerShape(). Edges which are aligned to screen corners are not - * tqshaped for better usability (remember to paint these areas in paintEvent(), too). + * shaped for better usability (remember to paint these areas in paintEvent(), too). * You normally don't want/need to reimplement updateWindowShape(). * @see cornerShape() */ @@ -202,7 +202,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration */ void updateLayout() const; /** - * Makes sure all buttons are tqrepainted. + * Makes sure all buttons are repainted. */ void updateButtons() const; /** @@ -223,7 +223,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration public: /** - * Handles widget and tqlayout creation, call the base implementation when subclassing this member. + * Handles widget and layout creation, call the base implementation when subclassing this member. */ virtual void init(); /** @@ -233,7 +233,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration virtual void borders( int& left, int& right, int& top, int& bottom ) const; virtual void show(); virtual void resize(const TQSize& s); - virtual TQSize tqminimumSize() const; + virtual TQSize minimumSize() const; virtual void maximizeChange(); virtual void desktopChange(); virtual void shadeChange(); @@ -343,7 +343,7 @@ class KWIN_EXPORT KCommonDecorationButton : public QButton */ ButtonState lastMousePress() const { return m_lastMouse; } - TQSize tqsizeHint() const; + TQSize sizeHint() const; protected: void setToggleButton(bool toggle); diff --git a/kwin/lib/kdecoration.cpp b/kwin/lib/kdecoration.cpp index 22b3cd75c..97c8965e9 100644 --- a/kwin/lib/kdecoration.cpp +++ b/kwin/lib/kdecoration.cpp @@ -68,7 +68,7 @@ void KDecoration::setMainWidget( TQWidget* w ) assert( w_ == NULL ); w_ = w; w->setMouseTracking( true ); - widget()->resize( tqgeometry().size()); + widget()->resize( geometry().size()); } TQWidget* KDecoration::initialParentWidget() const @@ -206,9 +206,9 @@ bool KDecoration::isPreview() const return bridge_->isPreview(); } -TQRect KDecoration::tqgeometry() const +TQRect KDecoration::geometry() const { - return bridge_->tqgeometry(); + return bridge_->geometry(); } TQRect KDecoration::iconGeometry() const @@ -388,7 +388,7 @@ const TQFont& KDecorationOptions::font(bool active, bool small) const return(active ? d->activeFont : d->inactiveFont); } -const TQColorGroup& KDecorationOptions::tqcolorGroup(ColorType type, bool active) const +const TQColorGroup& KDecorationOptions::colorGroup(ColorType type, bool active) const { int idx = type + (active ? 0 : NUM_COLORS); if(d->cg[idx]) diff --git a/kwin/lib/kdecoration.h b/kwin/lib/kdecoration.h index 89cdf95a5..f41f19041 100644 --- a/kwin/lib/kdecoration.h +++ b/kwin/lib/kdecoration.h @@ -127,7 +127,7 @@ public: SettingDecoration = 1 << 0, ///< The decoration was changed SettingColors = 1 << 1, ///< The color palette was changed SettingFont = 1 << 2, ///< The titlebar font was changed - SettingButtons = 1 << 3, ///< The button tqlayout was changed + SettingButtons = 1 << 3, ///< The button layout was changed SettingTooltips = 1 << 4, ///< The tooltip setting was changed SettingBorder = 1 << 5 ///< The border size setting was changed }; @@ -205,7 +205,7 @@ public: * @param type The requested color type. * @param active Whether to return the color for active or inactive windows. */ - const TQColorGroup& tqcolorGroup(ColorType type, bool active=true) const; + const TQColorGroup& colorGroup(ColorType type, bool active=true) const; /** * Returns the active or inactive decoration font. * The changed flags for this setting is SettingFont. @@ -291,7 +291,7 @@ public: /** * @internal */ - virtual unsigned long updateSettings() = 0; // returns SettingXYZ tqmask + virtual unsigned long updateSettings() = 0; // returns SettingXYZ mask protected: /** @@ -412,7 +412,7 @@ class KWIN_EXPORT KDecoration bool isResizable() const; /** * This function returns the window type of the decorated window. - * The argument to this function is a tqmask of all window types + * The argument to this function is a mask of all window types * the decoration knows about (as the list of valid window types * is extended over time, and fallback types are specified in order * to support older code). For a description of all window types, @@ -451,7 +451,7 @@ class KWIN_EXPORT KDecoration * * \note Decorations that enable a double-click operation for the menu * button must ensure to call \a showWindowMenu() with the \a pos - * rectangle set to the menu button tqgeometry. + * rectangle set to the menu button geometry. * IMPORTANT: As a result of this function, the decoration object that * called it may be destroyed after the function returns. This means * that the decoration object must either return immediately after @@ -481,15 +481,15 @@ class KWIN_EXPORT KDecoration void performWindowOperation( WindowOperation op ); /** * If the decoration is non-rectangular, this function needs to be called - * to set the tqshape of the decoration. + * to set the shape of the decoration. * - * @param reg The tqshape of the decoration. + * @param reg The shape of the decoration. * @param mode The X11 values Unsorted, YSorted, YXSorted and YXBanded that specify * the sorting of the rectangles, default value is Unsorted. */ void setMask( const TQRegion& reg, int mode = 0 ); /** - * This convenience function resets the tqshape tqmask. + * This convenience function resets the shape mask. */ void clearMask(); // convenience /** @@ -499,13 +499,13 @@ class KWIN_EXPORT KDecoration */ bool isPreview() const; /** - * Returns the tqgeometry of the decoration. + * Returns the geometry of the decoration. */ - TQRect tqgeometry() const; + TQRect geometry() const; /** - * Returns the icon tqgeometry for the window, i.e. the tqgeometry of the taskbar + * Returns the icon geometry for the window, i.e. the geometry of the taskbar * entry. This is used mainly for window minimize animations. Note that - * the tqgeometry may be null. + * the geometry may be null. */ TQRect iconGeometry() const; /** @@ -573,13 +573,13 @@ class KWIN_EXPORT KDecoration * 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 tqrepaints or resizes. Also, if the sizes returned + * 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. * * @see KDecorationOptions::moveResizeMaximizedWindows() */ - // mustn't do any tqrepaints, resizes or anything like that + // mustn't do any repaints, resizes or anything like that virtual void borders( int& left, int& right, int& top, int& bottom ) const = 0; /** * This method is called by kwin when the style should resize the decoration window. @@ -594,7 +594,7 @@ class KWIN_EXPORT KDecoration * Note that the returned size shouldn't be too large, because it will be * used to keep the decorated window at least as large. */ - virtual TQSize tqminimumSize() const = 0; + virtual TQSize minimumSize() const = 0; /** * This function is called whenever the window either becomes or stops being active. * Use isActive() to find out the current state. @@ -647,10 +647,10 @@ class KWIN_EXPORT KDecoration * you should compensate for the 2 pixels that would make the window * look larger. * - * @param geom The tqgeometry at this the bound should be drawn + * @param geom The geometry at this the bound should be drawn * @param clear @a true if the bound should be cleared * - * @see workspaceWidget() and tqgeometry(). + * @see workspaceWidget() and geometry(). */ virtual bool drawbound( const TQRect& geom, bool clear ); /** @@ -661,7 +661,7 @@ class KWIN_EXPORT KDecoration * @a False should be returned if the default implementation should be used. * Note that you should not use this function to force disabling of the animation. * - * @see workspaceWidget(), tqgeometry() and helperShowHide(). + * @see workspaceWidget(), geometry() and helperShowHide(). */ virtual bool animateMinimize( bool minimize ); /** @@ -673,7 +673,7 @@ class KWIN_EXPORT KDecoration * This function is called to reset the decoration on settings changes. * It is usually invoked by calling KDecorationFactory::resetDecorations(). * - * @param changed Specifies which settings were changed, given by the SettingXXX tqmasks + * @param changed Specifies which settings were changed, given by the SettingXXX masks */ virtual void reset( unsigned long changed ); @@ -877,12 +877,12 @@ inline bool KDecoration::isOnAllDesktops() const inline int KDecoration::width() const { - return tqgeometry().width(); + return geometry().width(); } inline int KDecoration::height() const { - return tqgeometry().height(); + return geometry().height(); } #endif diff --git a/kwin/lib/kdecoration_p.h b/kwin/lib/kdecoration_p.h index c3797831e..58f386c9b 100644 --- a/kwin/lib/kdecoration_p.h +++ b/kwin/lib/kdecoration_p.h @@ -85,7 +85,7 @@ class KDecorationBridge : public KDecorationDefines virtual void performWindowOperation( WindowOperation ) = 0; virtual void setMask( const TQRegion&, int ) = 0; virtual bool isPreview() const = 0; - virtual TQRect tqgeometry() const = 0; + virtual TQRect geometry() const = 0; virtual TQRect iconGeometry() const = 0; virtual TQRegion unobscuredRegion( const TQRegion& r ) const = 0; virtual TQWidget* workspaceWidget() const = 0; diff --git a/kwin/lib/kdecoration_plugins_p.cpp b/kwin/lib/kdecoration_plugins_p.cpp index 2e870eaf4..0490e4755 100644 --- a/kwin/lib/kdecoration_plugins_p.cpp +++ b/kwin/lib/kdecoration_plugins_p.cpp @@ -167,7 +167,7 @@ bool KDecorationPlugins::loadPlugin( TQString nameStr ) // For clients in kdeartwork TQString catalogue = nameStr; - catalogue.tqreplace( "kwin3_", "kwin_" ); + catalogue.replace( "kwin3_", "kwin_" ); KGlobal::locale()->insertCatalogue( catalogue ); // For KCommonDecoration based clients KGlobal::locale()->insertCatalogue( "kwin_lib" ); diff --git a/kwin/lib/kdecorationfactory.cpp b/kwin/lib/kdecorationfactory.cpp index 65fde37bc..7ad1aefbe 100644 --- a/kwin/lib/kdecorationfactory.cpp +++ b/kwin/lib/kdecorationfactory.cpp @@ -58,7 +58,7 @@ TQValueList< KDecorationDefines::BorderSize > KDecorationFactory::borderSizes() bool KDecorationFactory::exists( const KDecoration* deco ) const { - return _decorations.tqcontains( const_cast< KDecoration* >( deco )); + return _decorations.contains( const_cast< KDecoration* >( deco )); } void KDecorationFactory::addDecoration( KDecoration* deco ) diff --git a/kwin/lib/kdecorationfactory.h b/kwin/lib/kdecorationfactory.h index 467a24f17..7396ad987 100644 --- a/kwin/lib/kdecorationfactory.h +++ b/kwin/lib/kdecorationfactory.h @@ -53,10 +53,10 @@ class KWIN_EXPORT KDecorationFactory virtual KDecoration* createDecoration( KDecorationBridge* bridge ) = 0; /** * This function is called when the configuration settings changed. - * The argument specifies what has changed, using the SettingXXX tqmasks. + * The argument specifies what has changed, using the SettingXXX masks. * It should be determined whether the decorations need to be completely * remade, in which case true should be returned, or whether only e.g. - * a tqrepaint will be sufficient, in which case false should be returned, + * a repaint will be sufficient, in which case false should be returned, * and resetDecorations() can be called to reset all decoration objects. * Note that true should be returned only when really necessary. */ |