Commit e5734f9e authored by Martin Flöser's avatar Martin Flöser

Move (grow|shrink)(Horizontal|Vertical) to AbstractClient

A virtual base implementation is provided which does nothing. Needed
in AbstractClient to get Workspace::slotWindowGrow* to work with
active_client becoming an AbstractCliet.
parent 138c1b2f
......@@ -55,4 +55,20 @@ bool AbstractClient::untab(const QRect &toGeometry, bool clientRemoved)
return false;
void AbstractClient::growHorizontal()
void AbstractClient::growVertical()
void AbstractClient::shrinkHorizontal()
void AbstractClient::shrinkVertical()
......@@ -104,6 +104,11 @@ public:
virtual bool wantsInput() const = 0;
virtual void checkWorkspacePosition(QRect oldGeometry = QRect(), int oldDesktop = -2) = 0;
virtual void growHorizontal();
virtual void shrinkHorizontal();
virtual void growVertical();
virtual void shrinkVertical();
// TODO: remove boolean trap
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);
......@@ -483,10 +483,10 @@ public:
void setQuickTileMode(QuickTileMode mode, bool keyboard = false);
void growHorizontal();
void shrinkHorizontal();
void growVertical();
void shrinkVertical();
void growHorizontal() override;
void shrinkHorizontal() override;
void growVertical() override;
void shrinkVertical() override;
bool providesContextHelp() const;
const QKeySequence &shortcut() const override;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment