Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
Show First 20 Lines • Show All 434 Lines • ▼ Show 20 Line(s) | 324 | public: | |||
---|---|---|---|---|---|
435 | AbstractClient* transientFor(); | 435 | AbstractClient* transientFor(); | ||
436 | /** | 436 | /** | ||
437 | * @returns @c true if c is the transient_for window for this client, | 437 | * @returns @c true if c is the transient_for window for this client, | ||
438 | * or recursively the transient_for window | 438 | * or recursively the transient_for window | ||
439 | * @todo: remove boolean trap | 439 | * @todo: remove boolean trap | ||
440 | */ | 440 | */ | ||
441 | virtual bool hasTransient(const AbstractClient* c, bool indirect) const; | 441 | virtual bool hasTransient(const AbstractClient* c, bool indirect) const; | ||
442 | const QList<AbstractClient*>& transients() const; // Is not indirect | 442 | const QList<AbstractClient*>& transients() const; // Is not indirect | ||
443 | virtual void addTransient(AbstractClient *client); | ||||
davidedmundson: why does this now have to be public? | |||||
Otherwise, kwin won't compile. We're calling addTransient() from XdgShellClient::handleTransientForChanged(). zzag: Otherwise, kwin won't compile. We're calling addTransient() from XdgShellClient… | |||||
443 | virtual void removeTransient(AbstractClient* cl); | 444 | virtual void removeTransient(AbstractClient* cl); | ||
444 | virtual QList<AbstractClient*> mainClients() const; // Call once before loop , is not indirect | 445 | virtual QList<AbstractClient*> mainClients() const; // Call once before loop , is not indirect | ||
445 | QList<AbstractClient*> allMainClients() const; // Call once before loop , is indirect | 446 | QList<AbstractClient*> allMainClients() const; // Call once before loop , is indirect | ||
446 | /** | 447 | /** | ||
447 | * Returns true for "special" windows and false for windows which are "normal" | 448 | * Returns true for "special" windows and false for windows which are "normal" | ||
448 | * (normal=window which has a border, can be moved by the user, can be closed, etc.) | 449 | * (normal=window which has a border, can be moved by the user, can be closed, etc.) | ||
449 | * true for Desktop, Dock, Splash, Override and TopMenu (and Toolbar??? - for now) | 450 | * true for Desktop, Dock, Splash, Override and TopMenu (and Toolbar??? - for now) | ||
450 | * false for Normal, Dialog, Utility and Menu (and Toolbar??? - not yet) TODO | 451 | * false for Normal, Dialog, Utility and Menu (and Toolbar??? - not yet) TODO | ||
▲ Show 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | |||||
608 | */ | 609 | */ | ||
609 | void setQuickTileMode(QuickTileMode mode, bool keyboard = false); | 610 | void setQuickTileMode(QuickTileMode mode, bool keyboard = false); | ||
610 | QuickTileMode quickTileMode() const { | 611 | QuickTileMode quickTileMode() const { | ||
611 | return QuickTileMode(m_quickTileMode); | 612 | return QuickTileMode(m_quickTileMode); | ||
612 | } | 613 | } | ||
613 | Layer layer() const override; | 614 | Layer layer() const override; | ||
614 | void updateLayer(); | 615 | void updateLayer(); | ||
615 | 616 | | |||
617 | void placeIn(const QRect &area); | ||||
618 | | ||||
616 | enum ForceGeometry_t { NormalGeometrySet, ForceGeometrySet }; | 619 | enum ForceGeometry_t { NormalGeometrySet, ForceGeometrySet }; | ||
617 | virtual void move(int x, int y, ForceGeometry_t force = NormalGeometrySet); | 620 | virtual void move(int x, int y, ForceGeometry_t force = NormalGeometrySet); | ||
618 | void move(const QPoint &p, ForceGeometry_t force = NormalGeometrySet); | 621 | void move(const QPoint &p, ForceGeometry_t force = NormalGeometrySet); | ||
619 | virtual void resizeWithChecks(int w, int h, ForceGeometry_t force = NormalGeometrySet) = 0; | 622 | virtual void resizeWithChecks(int w, int h, ForceGeometry_t force = NormalGeometrySet) = 0; | ||
620 | void resizeWithChecks(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | 623 | void resizeWithChecks(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | ||
621 | void keepInArea(QRect area, bool partial = false); | 624 | void keepInArea(QRect area, bool partial = false); | ||
622 | virtual QSize minSize() const; | 625 | virtual QSize minSize() const; | ||
623 | virtual QSize maxSize() const; | 626 | virtual QSize maxSize() const; | ||
▲ Show 20 Lines • Show All 341 Lines • ▼ Show 20 Line(s) | 913 | protected: | |||
965 | 968 | | |||
966 | void setupWindowManagementInterface(); | 969 | void setupWindowManagementInterface(); | ||
967 | void destroyWindowManagementInterface(); | 970 | void destroyWindowManagementInterface(); | ||
968 | 971 | | |||
969 | void updateColorScheme(QString path); | 972 | void updateColorScheme(QString path); | ||
970 | virtual void updateColorScheme() = 0; | 973 | virtual void updateColorScheme() = 0; | ||
971 | 974 | | |||
972 | void setTransientFor(AbstractClient *transientFor); | 975 | void setTransientFor(AbstractClient *transientFor); | ||
973 | virtual void addTransient(AbstractClient* cl); | | |||
974 | /** | 976 | /** | ||
975 | * Just removes the @p cl from the transients without any further checks. | 977 | * Just removes the @p cl from the transients without any further checks. | ||
976 | */ | 978 | */ | ||
977 | void removeTransientFromList(AbstractClient* cl); | 979 | void removeTransientFromList(AbstractClient* cl); | ||
978 | 980 | | |||
979 | Layer belongsToLayer() const; | 981 | Layer belongsToLayer() const; | ||
980 | virtual bool belongsToDesktop() const; | 982 | virtual bool belongsToDesktop() const; | ||
981 | void invalidateLayer(); | 983 | void invalidateLayer(); | ||
▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines |
why does this now have to be public?