diff options
Diffstat (limited to 'krita/core/tiles/kis_tilemanager.h')
-rw-r--r-- | krita/core/tiles/kis_tilemanager.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/krita/core/tiles/kis_tilemanager.h b/krita/core/tiles/kis_tilemanager.h index a66ca634..bce60ca4 100644 --- a/krita/core/tiles/kis_tilemanager.h +++ b/krita/core/tiles/kis_tilemanager.h @@ -20,10 +20,10 @@ #include <sys/types.h> -#include <qglobal.h> -#include <qmap.h> -#include <qvaluelist.h> -#include <qmutex.h> +#include <tqglobal.h> +#include <tqmap.h> +#include <tqvaluelist.h> +#include <tqmutex.h> #include <ktempfile.h> @@ -54,8 +54,8 @@ public: // Tile management void maySwapTile(const KisTile* tile); public: // Pool management - Q_UINT8* requestTileData(Q_INT32 pixelSize); - void dontNeedTileData(Q_UINT8* data, Q_INT32 pixelSize); + TQ_UINT8* requestTileData(TQ_INT32 pixelSize); + void dontNeedTileData(TQ_UINT8* data, TQ_INT32 pixelSize); public: // Configuration void configChanged(); @@ -84,37 +84,37 @@ private: // being used in the swap for this tile (may be larger!) // The file points to 0 if it is not swapped, and to the relevant TempFile otherwise struct TileInfo { KisTile *tile; KTempFile* file; off_t filePos; int size; int fsize; - QValueList<TileInfo*>::iterator node; + TQValueList<TileInfo*>::iterator node; bool inMem; bool onFile; bool mmapped; bool validNode; }; typedef struct { KTempFile* file; off_t filePos; int size; } FreeInfo; - typedef QMap<const KisTile*, TileInfo*> TileMap; - typedef QValueList<TileInfo*> TileList; - typedef QValueList<FreeInfo*> FreeList; - typedef QValueVector<FreeList> FreeListList; - typedef QValueList<Q_UINT8*> PoolFreeList; - typedef QValueList<TempFile> FileList; + typedef TQMap<const KisTile*, TileInfo*> TileMap; + typedef TQValueList<TileInfo*> TileList; + typedef TQValueList<FreeInfo*> FreeList; + typedef TQValueVector<FreeList> FreeListList; + typedef TQValueList<TQ_UINT8*> PoolFreeList; + typedef TQValueList<TempFile> FileList; TileMap m_tileMap; TileList m_swappableList; FreeListList m_freeLists; FileList m_files; - Q_INT32 m_maxInMem; - Q_INT32 m_currentInMem; - Q_UINT32 m_swappiness; - Q_INT32 m_tileSize; // size of a tile if it used 1 byte per pixel + TQ_INT32 m_maxInMem; + TQ_INT32 m_currentInMem; + TQ_UINT32 m_swappiness; + TQ_INT32 m_tileSize; // size of a tile if it used 1 byte per pixel unsigned long m_bytesInMem; unsigned long m_bytesTotal; - Q_UINT8 **m_pools; - Q_INT32 *m_poolPixelSizes; - Q_INT32 m_tilesPerPool; + TQ_UINT8 **m_pools; + TQ_INT32 *m_poolPixelSizes; + TQ_INT32 m_tilesPerPool; PoolFreeList *m_poolFreeList; - QMutex * m_poolMutex; - QMutex * m_swapMutex; + TQMutex * m_poolMutex; + TQMutex * m_swapMutex; // This is the constant that we will use to see if we want to add a new tempfile - // We use 1<<30 (one gigabyte) because apparently 32bit systems don't really like very + // We use 1<<30 (one gigabyte) because aptqparently 32bit systems don't really like very // large files. static const long MaxSwapFileSize = 1<<30; // For debugging purposes: 1<<20 is a megabyte @@ -126,13 +126,13 @@ private: void toSwap(TileInfo* info); void doSwapping(); void printInfo(); - Q_UINT8* findTileFor(Q_INT32 pixelSize); - bool isPoolTile(Q_UINT8* data, Q_INT32 pixelSize); - void reclaimTileToPool(Q_UINT8* data, Q_INT32 pixelSize); + TQ_UINT8* findTileFor(TQ_INT32 pixelSize); + bool isPoolTile(TQ_UINT8* data, TQ_INT32 pixelSize); + void reclaimTileToPool(TQ_UINT8* data, TQ_INT32 pixelSize); // Mmap wrapper that prints warnings on error. The result is stored in the *& result // the return value is true on succes, false on failure. Other args as in man mmap - bool kritaMmap(Q_UINT8*& result, void *start, size_t length, + bool kritaMmap(TQ_UINT8*& result, void *start, size_t length, int prot, int flags, int fd, off_t offset); }; |