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 7 | 141 | #define PROCESSHEADERVERSION 8 | ||
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 | HeadingNoNewPrivileges, | ||
156 | HeadingCommand, | 156 | HeadingCommand, | ||
157 | HeadingXMemory, | 157 | HeadingXMemory, | ||
158 | HeadingXTitle | 158 | HeadingXTitle, | ||
159 | HeadingCGroup | ||||
159 | }; | 160 | }; | ||
160 | 161 | | |||
161 | enum { UidRole = Qt::UserRole, SortingValueRole, WindowIdRole, PlainValueRole, PercentageRole, PercentageHistoryRole }; | 162 | enum { UidRole = Qt::UserRole, SortingValueRole, WindowIdRole, PlainValueRole, PercentageRole, PercentageHistoryRole }; | ||
162 | 163 | | |||
163 | bool showTotals() const; | 164 | bool showTotals() const; | ||
164 | 165 | | |||
165 | /** When displaying memory sizes, this is the units it should be displayed in */ | 166 | /** When displaying memory sizes, this is the units it should be displayed in */ | ||
166 | enum Units { UnitsAuto, UnitsKB, UnitsMB, UnitsGB, UnitsTB, UnitsPB, UnitsPercentage }; | 167 | enum Units { UnitsAuto, UnitsKB, UnitsMB, UnitsGB, UnitsTB, UnitsPB, UnitsPercentage }; | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |