Changeset View
Changeset View
Standalone View
Standalone View
debug_console.h
Show All 34 Lines | |||||
35 | { | 35 | { | ||
36 | class DebugConsole; | 36 | class DebugConsole; | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | namespace KWin | 39 | namespace KWin | ||
40 | { | 40 | { | ||
41 | 41 | | |||
42 | class Client; | 42 | class Client; | ||
43 | class InternalClient; | ||||
43 | class ShellClient; | 44 | class ShellClient; | ||
44 | class Unmanaged; | 45 | class Unmanaged; | ||
45 | class DebugConsoleFilter; | 46 | class DebugConsoleFilter; | ||
46 | 47 | | |||
47 | class KWIN_EXPORT DebugConsoleModel : public QAbstractItemModel | 48 | class KWIN_EXPORT DebugConsoleModel : public QAbstractItemModel | ||
48 | { | 49 | { | ||
49 | Q_OBJECT | 50 | Q_OBJECT | ||
50 | public: | 51 | public: | ||
Show All 17 Lines | 62 | private: | |||
68 | QVariant propertyData(QObject *object, const QModelIndex &index, int role) const; | 69 | QVariant propertyData(QObject *object, const QModelIndex &index, int role) const; | ||
69 | template <class T> | 70 | template <class T> | ||
70 | QVariant clientData(const QModelIndex &index, int role, const QVector<T*> clients) const; | 71 | QVariant clientData(const QModelIndex &index, int role, const QVector<T*> clients) const; | ||
71 | template <class T> | 72 | template <class T> | ||
72 | void add(int parentRow, QVector<T*> &clients, T *client); | 73 | void add(int parentRow, QVector<T*> &clients, T *client); | ||
73 | template <class T> | 74 | template <class T> | ||
74 | void remove(int parentRow, QVector<T*> &clients, T *client); | 75 | void remove(int parentRow, QVector<T*> &clients, T *client); | ||
75 | ShellClient *shellClient(const QModelIndex &index) const; | 76 | ShellClient *shellClient(const QModelIndex &index) const; | ||
76 | ShellClient *internalClient(const QModelIndex &index) const; | 77 | InternalClient *internalClient(const QModelIndex &index) const; | ||
77 | Client *x11Client(const QModelIndex &index) const; | 78 | Client *x11Client(const QModelIndex &index) const; | ||
78 | Unmanaged *unmanaged(const QModelIndex &index) const; | 79 | Unmanaged *unmanaged(const QModelIndex &index) const; | ||
79 | int topLevelRowCount() const; | 80 | int topLevelRowCount() const; | ||
80 | 81 | | |||
81 | QVector<ShellClient*> m_shellClients; | 82 | QVector<ShellClient*> m_shellClients; | ||
82 | QVector<ShellClient*> m_internalClients; | 83 | QVector<InternalClient*> m_internalClients; | ||
83 | QVector<Client*> m_x11Clients; | 84 | QVector<Client*> m_x11Clients; | ||
84 | QVector<Unmanaged*> m_unmanageds; | 85 | QVector<Unmanaged*> m_unmanageds; | ||
85 | 86 | | |||
86 | }; | 87 | }; | ||
87 | 88 | | |||
88 | class DebugConsoleDelegate : public QStyledItemDelegate | 89 | class DebugConsoleDelegate : public QStyledItemDelegate | ||
89 | { | 90 | { | ||
90 | Q_OBJECT | 91 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |