add more spacing
[personal-kdebase.git] / apps / kinfocenter / memory / base.h
blob0ab1b7382723d25dc1b5f4d4b5691ed25bfb1e6c
1 #ifndef SETTINGS_H_
2 #define SETTINGS_H_
4 #include <QColor>
6 #define COLOR_USED_MEMORY QColor(0x83,0xDD, 0xF5)
7 //start : 0x00, 0x71, 0xBC
8 //end : 0x83,0xDD, 0xF5
10 //#define COLOR_USED_MEMORY QColor(236,91,47)
12 #define COLOR_USED_SWAP QColor(255,134,64)
14 //#define COLOR_FREE_MEMORY QColor(0x00, 0x71, 0xBC)
15 #define COLOR_FREE_MEMORY QColor(216, 231, 227)
17 /* better to use quint64, because some 32bit-machines have more total
18 memory (with swap) than just the 4GB which fits into a 32bit-long */
19 typedef quint64 t_memsize;
22 enum { /* entries for memoryInfos[] */
23 TOTAL_MEM = 0, /* total physical memory (without swaps) */
24 FREE_MEM, /* total free physical memory (without swaps) */
25 #if !defined(__svr4__) || !defined(sun)
26 #if !defined(__NetBSD__) && !defined(__OpenBSD__)
27 SHARED_MEM, /* shared memory size */
28 BUFFER_MEM, /* buffered memory size */
29 #else
30 ACTIVE_MEM,
31 INACTIVE_MEM,
32 #endif
33 #endif
34 CACHED_MEM, /* cache memory size (located in ram) */
35 SWAP_MEM, /* total size of all swap-partitions */
36 FREESWAP_MEM, /* free memory in swap-partitions */
37 MEM_LAST_ENTRY
41 #define MEMORY(x) ((t_memsize) (x)) /* it's easier... */
42 #define NO_MEMORY_INFO MEMORY(-1) /* DO NOT CHANGE */
43 #define ZERO_IF_NO_INFO(value) ((value) != NO_MEMORY_INFO ? (value) : 0)
46 #define SPACING 16
48 #endif /*SETTINGS_H_*/