diff --git a/abstract_client.h b/abstract_client.h --- a/abstract_client.h +++ b/abstract_client.h @@ -264,19 +264,19 @@ /** * Whether an application menu is available for this Client - */ + **/ Q_PROPERTY(bool hasApplicationMenu READ hasApplicationMenu NOTIFY hasApplicationMenuChanged) /** * Whether the application menu for this Client is currently opened - */ + **/ Q_PROPERTY(bool applicationMenuActive READ applicationMenuActive NOTIFY applicationMenuActiveChanged) /** * Whether this client is unresponsive. * * When an application failed to react on a ping request in time, it is * considered unresponsive. This usually indicates that the application froze or crashed. - */ + **/ Q_PROPERTY(bool unresponsive READ unresponsive NOTIFY unresponsiveChanged) /** * The "Window Tabs" Group this Client belongs to. @@ -288,7 +288,7 @@ * Absolute file path, or name of palette in the user's config directory following KColorSchemes format. * An empty string indicates the default palette from kdeglobals is used. * @note this indicates the colour scheme requested, which might differ from the theme applied if the colorScheme cannot be found - */ + **/ Q_PROPERTY(QString colorScheme READ colorScheme NOTIFY colorSchemeChanged) public: @@ -418,7 +418,7 @@ * (normal=window which has a border, can be moved by the user, can be closed, etc.) * true for Desktop, Dock, Splash, Override and TopMenu (and Toolbar??? - for now) * false for Normal, Dialog, Utility and Menu (and Toolbar??? - not yet) TODO - */ + **/ bool isSpecialWindow() const; void sendToScreen(int screen); const QKeySequence &shortcut() const { @@ -434,7 +434,7 @@ /** * Set the window as being on the attached list of desktops * On X11 it will be set to the last entry - */ + **/ void setDesktops(QVector desktops); int desktop() const override { @@ -448,7 +448,7 @@ void setMinimized(bool set); /** * Minimizes this client plus its transients - */ + **/ void minimize(bool avoid_animation = false); void unminimize(bool avoid_animation = false); bool isMinimized() const { @@ -470,31 +470,31 @@ * all clients in this tabGroup will have property("kwin_tiling_floats").toBool() == true * * WARNING: non dynamic properties are ignored - you're not supposed to alter/update such explicitly - */ + **/ Q_INVOKABLE void syncTabGroupFor(QString property, bool fromThisClient = false); TabGroup *tabGroup() const; /** * Set tab group - this is to be invoked by TabGroup::add/remove(client) and NO ONE ELSE - */ + **/ void setTabGroup(TabGroup* group); virtual void setClientShown(bool shown); Q_INVOKABLE bool untab(const QRect &toGeometry = QRect(), bool clientRemoved = false); /* * When a click is done in the decoration and it calls the group * to change the visible client it starts to move-resize the new * client, this function stops it. - */ + **/ bool isCurrentTab() const; virtual QRect geometryRestore() const = 0; /** * The currently applied maximize mode - */ + **/ virtual MaximizeMode maximizeMode() const = 0; /** * The maximise mode requested by the server. * For X this always matches maximizeMode, for wayland clients it * is asyncronous - */ + **/ virtual MaximizeMode requestedMaximizeMode() const; void maximize(MaximizeMode); void setMaximize(bool vertically, bool horizontally); @@ -574,7 +574,7 @@ /** * These values represent positions inside an area - */ + **/ enum Position { // without prefix, they'd conflict with Qt::TopLeftCorner etc. :( PositionCenter = 0x00, @@ -597,7 +597,7 @@ * This will also handle preserving and restoring of window geometry as necessary. * @param mode The tile mode (left/right) to give this window. * @param keyboard Defines whether to take keyboard cursor into account. - */ + **/ void setQuickTileMode(QuickTileMode mode, bool keyboard = false); QuickTileMode quickTileMode() const { return QuickTileMode(m_quickTileMode); @@ -628,7 +628,7 @@ * @p wsize is adapted according to the window's size hints (minimum, maximum and incremental size changes). * * Default implementation returns the passed in @p wsize. - */ + **/ virtual QSize sizeForClientSize(const QSize &wsize, Sizemode mode = SizemodeAny, bool noframe = false) const; QSize adjustedSize(const QSize&, Sizemode mode = SizemodeAny) const; @@ -693,7 +693,7 @@ * * Default implementation returns @c false. * @see showContextHelp; - */ + **/ virtual bool providesContextHelp() const; /** @@ -703,7 +703,7 @@ * Default implementation does nothing. * * @see providesContextHelp() - */ + **/ virtual void showContextHelp(); QRect inputGeometry() const override; @@ -752,7 +752,7 @@ /** * Request showing the application menu bar * @param actionId The DBus menu ID of the action that should be highlighted, 0 for the root menu - */ + **/ void showApplicationMenu(int actionId); bool unresponsive() const; @@ -1039,7 +1039,7 @@ void checkUnrestrictedMoveResize(); /** * Sets an appropriate cursor shape for the logical mouse position. - */ + **/ void updateCursor(); void startDelayedMoveResize(); void stopDelayedMoveResize(); @@ -1073,7 +1073,7 @@ /* * Checks if the mouse cursor is near the edge of the screen and if so * activates quick tiling or maximization - */ + **/ void checkQuickTilingMaximizationZones(int xroot, int yroot); /** * Whether a sync request is still pending. @@ -1173,7 +1173,7 @@ QuickTileMode m_electricMode = QuickTileFlag::None; bool m_electricMaximizing = false; /** The quick tile mode of this window. - */ + **/ int m_quickTileMode = int(QuickTileFlag::None); QTimer *m_electricMaximizingDelay = nullptr; @@ -1221,7 +1221,7 @@ /** * Helper for AbstractClient::blockGeometryUpdates() being called in pairs (true/false) - */ + **/ class GeometryUpdatesBlocker { public: