~ubuntu-branches/ubuntu/lucid/qgo/lucid

« back to all changes in this revision

Viewing changes to src/mark.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Chaboisseau
  • Date: 2006-10-03 23:46:07 UTC
  • mfrom: (1.2.1 upstream) (2.1.9 edgy)
  • Revision ID: james.westby@ubuntu.com-20061003234607-jtuoreigx712b4lw
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include "qgo.h"
8
8
#include "setting.h"
9
9
#include <qpainter.h>
 
10
#include <qcanvas.h>
10
11
 
11
12
/*
12
13
* Mark
83
84
                x *= m;
84
85
                y *= m;
85
86
        }
86
 
 
87
 
        QCanvasEllipse::setSize(x, y);
 
87
 
 
88
        QCanvasEllipse::setSize((int)x, (int)y);
88
89
}
89
90
 
90
91
/*
209
210
        
210
211
        setSize(size, size);
211
212
        setColor(col);
212
 
        
 
213
/*      
 
214
        QPixmap * pix = new QPixmap(width, height);
 
215
        pix->fill(Qt::white);
 
216
        //bitBlt((QPaintDevice *)(pix),0,0,(QPaintDevice *)(ih->getBoardPixmap(setting->readEntry("SKIN"))),x,y,width,height,Qt::CopyROP);
 
217
        //bitBlt((QPaintDevice *)(pix),0,0,(QPaintDevice *)(ih->getTablePixmap(setting->readEntry("SKIN_TABLE"))),x,y,5,5,Qt::CopyROP,false);
 
218
        copyBlt(pix,0,0,ih->getTablePixmap(setting->readEntry("SKIN_TABLE")),size * (x-1) - width/2,size * (y-1) - height/2,8,8);
 
219
        //pix.fill((QWidget *)(canvas), x,y);
 
220
 
213
221
        if (overlay)
214
222
        {
 
223
        
 
224
        // we use a rectangle under the letter so as not to have the underlying grid
 
225
        // lines interfere with the letter
 
226
        // The only case where it is not set to 'true' is when a pass move is indicated,
 
227
        // bottom right off the board. This is an 'over'kill
 
228
        
215
229
                CHECK_PTR(canvas);
216
230
                rect = new QCanvasRectangle(canvas);
217
231
                CHECK_PTR(rect);
218
232
                rect->setPen(NoPen);
219
233
                CHECK_PTR(ih);
220
 
                rect->setBrush(QBrush(white, *(ih->getBoardPixmap())));
221
234
                rect->setSize(width, height);
 
235
                //rect->setX(size * (x-1) - width/2);
 
236
                //rect->setX(size * (y-1) - height/2);
 
237
                //rect->setBrush(QBrush(white, *(ih->getBoardPixmap(static_cast<skinType>(setting->readIntEntry("SKIN"))))));
 
238
                rect->setBrush(QBrush(white, *(ih->getBoardPixmap(setting->readEntry("SKIN")))));
 
239
                
222
240
                rect->setZ(1);
223
 
                rect->show();
 
241
//              rect->show();
224
242
        }
225
 
        
 
243
 
 
244
*/
 
245
 
226
246
        setZ(10);
227
247
}
228
248