Changeset View
Changeset View
Standalone View
Standalone View
deleted.h
Show All 38 Lines | 38 | { | |||
---|---|---|---|---|---|
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | 40 | | |||
41 | public: | 41 | public: | ||
42 | static Deleted* create(Toplevel* c); | 42 | static Deleted* create(Toplevel* c); | ||
43 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | 43 | // used by effects to keep the window around for e.g. fadeout effects when it's destroyed | ||
44 | void refWindow(); | 44 | void refWindow(); | ||
45 | void unrefWindow(); | 45 | void unrefWindow(); | ||
46 | void discard(); | 46 | void discard(); | ||
47 | virtual int desktop() const; | 47 | int desktop() const override; | ||
48 | virtual QStringList activities() const; | 48 | QStringList activities() const override; | ||
49 | virtual QVector<VirtualDesktop *> desktops() const; | 49 | QVector<VirtualDesktop *> desktops() const override; | ||
50 | virtual QPoint clientPos() const; | 50 | QPoint clientPos() const override; | ||
51 | virtual QSize clientSize() const; | 51 | QSize clientSize() const override; | ||
52 | QPoint clientContentPos() const override { | 52 | QPoint clientContentPos() const override { | ||
53 | return m_contentPos; | 53 | return m_contentPos; | ||
54 | } | 54 | } | ||
55 | virtual QRect transparentRect() const; | 55 | QRect transparentRect() const override; | ||
56 | virtual bool isDeleted() const; | 56 | bool isDeleted() const override; | ||
57 | virtual xcb_window_t frameId() const override; | 57 | xcb_window_t frameId() const override; | ||
58 | bool noBorder() const { | 58 | bool noBorder() const { | ||
59 | return no_border; | 59 | return no_border; | ||
60 | } | 60 | } | ||
61 | void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const; | 61 | void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const; | ||
62 | QRect decorationRect() const; | 62 | QRect decorationRect() const override; | ||
63 | virtual Layer layer() const { | 63 | Layer layer() const override { | ||
64 | return m_layer; | 64 | return m_layer; | ||
65 | } | 65 | } | ||
66 | bool isMinimized() const { | 66 | bool isMinimized() const { | ||
67 | return m_minimized; | 67 | return m_minimized; | ||
68 | } | 68 | } | ||
69 | bool isModal() const { | 69 | bool isModal() const { | ||
70 | return m_modal; | 70 | return m_modal; | ||
71 | } | 71 | } | ||
72 | QList<AbstractClient*> mainClients() const { | 72 | QList<AbstractClient*> mainClients() const { | ||
73 | return m_mainClients; | 73 | return m_mainClients; | ||
74 | } | 74 | } | ||
75 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const; | 75 | NET::WindowType windowType(bool direct = false, int supported_types = 0) const override; | ||
76 | bool wasClient() const { | 76 | bool wasClient() const { | ||
77 | return m_wasClient; | 77 | return m_wasClient; | ||
78 | } | 78 | } | ||
79 | double opacity() const override; | 79 | double opacity() const override; | ||
80 | QByteArray windowRole() const override; | 80 | QByteArray windowRole() const override; | ||
81 | 81 | | |||
82 | const Decoration::Renderer *decorationRenderer() const { | 82 | const Decoration::Renderer *decorationRenderer() const { | ||
83 | return m_decorationRenderer; | 83 | return m_decorationRenderer; | ||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
180 | /** | 180 | /** | ||
181 | * Whether this Deleted represents the outline. | 181 | * Whether this Deleted represents the outline. | ||
182 | **/ | 182 | **/ | ||
183 | bool isOutline() const override { | 183 | bool isOutline() const override { | ||
184 | return m_wasOutline; | 184 | return m_wasOutline; | ||
185 | } | 185 | } | ||
186 | 186 | | |||
187 | protected: | 187 | protected: | ||
188 | virtual void debug(QDebug& stream) const; | 188 | void debug(QDebug& stream) const override; | ||
189 | 189 | | |||
190 | private Q_SLOTS: | 190 | private Q_SLOTS: | ||
191 | void mainClientClosed(KWin::Toplevel *client); | 191 | void mainClientClosed(KWin::Toplevel *client); | ||
192 | void transientForClosed(Toplevel *toplevel, Deleted *deleted); | 192 | void transientForClosed(Toplevel *toplevel, Deleted *deleted); | ||
193 | 193 | | |||
194 | private: | 194 | private: | ||
195 | Deleted(); // use create() | 195 | Deleted(); // use create() | ||
196 | void copyToDeleted(Toplevel* c); | 196 | void copyToDeleted(Toplevel* c); | ||
197 | virtual ~Deleted(); // deleted only using unrefWindow() | 197 | ~Deleted() override; // deleted only using unrefWindow() | ||
198 | 198 | | |||
199 | void addTransient(Deleted *transient); | 199 | void addTransient(Deleted *transient); | ||
200 | void removeTransient(Deleted *transient); | 200 | void removeTransient(Deleted *transient); | ||
201 | void addTransientFor(AbstractClient *parent); | 201 | void addTransientFor(AbstractClient *parent); | ||
202 | void removeTransientFor(Deleted *parent); | 202 | void removeTransientFor(Deleted *parent); | ||
203 | 203 | | |||
204 | int delete_refcount; | 204 | int delete_refcount; | ||
205 | int desk; | 205 | int desk; | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |