Changeset View
Changeset View
Standalone View
Standalone View
processui/ProcessModel.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
133 | * Equivalent to processController->processCount() */ | 133 | * Equivalent to processController->processCount() */ | ||
134 | int processCount() const { return processController()->processCount(); } | 134 | int processCount() const { return processController()->processCount(); } | ||
135 | 135 | | |||
136 | /** The headings in the model. The order here is the order that they are shown | 136 | /** The headings in the model. The order here is the order that they are shown | ||
137 | * in. If you change this, make sure you also change the | 137 | * in. If you change this, make sure you also change the | ||
138 | * setup header function, and make sure you increase PROCESSHEADERVERSION. This will ensure | 138 | * setup header function, and make sure you increase PROCESSHEADERVERSION. This will ensure | ||
139 | * that old saved settings won't be used | 139 | * that old saved settings won't be used | ||
140 | */ | 140 | */ | ||
141 | #define PROCESSHEADERVERSION 6 | 141 | #define PROCESSHEADERVERSION 7 | ||
142 | enum { HeadingName=0, | 142 | enum { HeadingName=0, | ||
143 | HeadingUser, | 143 | HeadingUser, | ||
144 | HeadingPid, | 144 | HeadingPid, | ||
145 | HeadingTty, | 145 | HeadingTty, | ||
146 | HeadingNiceness, | 146 | HeadingNiceness, | ||
147 | HeadingCPUUsage, | 147 | HeadingCPUUsage, | ||
148 | HeadingCPUTime, | 148 | HeadingCPUTime, | ||
149 | HeadingIoRead, | 149 | HeadingIoRead, | ||
150 | HeadingIoWrite, | 150 | HeadingIoWrite, | ||
151 | HeadingVmSize, | 151 | HeadingVmSize, | ||
152 | HeadingMemory, | 152 | HeadingMemory, | ||
153 | HeadingSharedMemory, | 153 | HeadingSharedMemory, | ||
154 | HeadingStartTime, | 154 | HeadingStartTime, | ||
155 | HeadingNoNewPrivileges, | ||||
155 | HeadingCommand, | 156 | HeadingCommand, | ||
156 | HeadingXMemory, | 157 | HeadingXMemory, | ||
157 | HeadingXTitle | 158 | HeadingXTitle | ||
158 | }; | 159 | }; | ||
159 | 160 | | |||
160 | enum { UidRole = Qt::UserRole, SortingValueRole, WindowIdRole, PlainValueRole, PercentageRole, PercentageHistoryRole }; | 161 | enum { UidRole = Qt::UserRole, SortingValueRole, WindowIdRole, PlainValueRole, PercentageRole, PercentageHistoryRole }; | ||
161 | 162 | | |||
162 | bool showTotals() const; | 163 | bool showTotals() const; | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |