camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/client Theme.h Theme.cpp


From: Pascal Audoux
Subject: [Camino-devel] camino/src/client Theme.h Theme.cpp
Date: Mon, 03 Mar 2003 15:16:43 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Pascal Audoux <address@hidden>  03/03/03 15:16:43

Modified files:
        src/client     : Theme.h Theme.cpp 

Log message:
        change 'getTilePixmap' signature

Patches:
Index: camino/src/client/Theme.cpp
diff -u camino/src/client/Theme.cpp:1.9 camino/src/client/Theme.cpp:1.10
--- camino/src/client/Theme.cpp:1.9     Sun Mar  2 16:08:30 2003
+++ camino/src/client/Theme.cpp Mon Mar  3 15:16:43 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: Theme.cpp,v 1.9 2003/03/02 21:08:30 Audoux Exp $
+** Version : $Id: Theme.cpp,v 1.10 2003/03/03 20:16:43 Audoux Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 22/01/2003
@@ -144,13 +144,13 @@
        return _tiles[_level-1][(int)num][side];
 }
 
-const QPixmap & Theme::getTilePixmap( int num, int side )
+const QPixmap & Theme::getTilePixmap( Tile::TileType num, int side )
 {
        QPixmap * pixmap;
        // XXX: add some checks...
-       QCanvasPixmapArray * array = _tiles[_level-1][num][side];
+       QCanvasPixmapArray * array = getTileArray( num, side );
        pixmap = array->image( 0 );
-       if (pixmap == 0L) {
+       if( pixmap == 0L ) {
                qDebug("Theme::getTilePixmap() - null pixmap");
        }
        if (pixmap->size() == QSize(0,0) ) {
Index: camino/src/client/Theme.h
diff -u camino/src/client/Theme.h:1.8 camino/src/client/Theme.h:1.9
--- camino/src/client/Theme.h:1.8       Sun Mar  2 16:08:30 2003
+++ camino/src/client/Theme.h   Mon Mar  3 15:16:43 2003
@@ -5,7 +5,7 @@
 ** Theme.h
 ** Manage theme data and pictures
 **
-** Version : $Id: Theme.h,v 1.8 2003/03/02 21:08:30 Audoux Exp $
+** Version : $Id: Theme.h,v 1.9 2003/03/03 20:16:43 Audoux Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 22/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -69,7 +69,7 @@
        void setZoomLevel( int level ) { _level = level; }
        int getZoomLevel() { return _level; }
 
-       const QPixmap & getTilePixmap( int num, int side );
+       const QPixmap & getTilePixmap( Tile::TileType num, int side );
 
        // simplified theme by philippe, until Pascal creates the real stuff
        const QPixmap & pixmapForTile( Tile::TileType tile );




reply via email to

[Prev in Thread] Current Thread [Next in Thread]