SVN_SILENT made messages (.desktop file)
[kdegames.git] / kblackbox / kbbgraphicsitemtutorialmarker.cpp
blob7e3c3049c1ebd0ec07226ffcaf66c2683ef3bf59
1 //
2 // KBlackBox
3 //
4 // A simple game inspired by an emacs module
5 //
6 /***************************************************************************
7 * Copyright (c) 2007, Nicolas Roffet *
8 * nicolas-kde@roffet.com *
9 * *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License for more details. *
20 * *
21 * You should have received a copy of the GNU General Public License *
22 * along with this program; if not, write to the *
23 * Free Software Foundation, Inc., *
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
25 ***************************************************************************/
27 #include "kbbgraphicsitemtutorialmarker.h"
32 // Constructor / Destructor
35 KBBGraphicsItemTutorialMarker::KBBGraphicsItemTutorialMarker(KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, const int columns, const int rows) : KBBGraphicsItemBorder(NO_POSITION, columns, rows, 0), KBBGraphicsItem(KBBScalableGraphicWidget::tutorialMarker, parent->scene(), themeManager)
37 m_borderPosition = NO_POSITION;
38 setBorderPosition(m_borderPosition);
44 // Public
47 void KBBGraphicsItemTutorialMarker::setBorderPosition(const int borderPosition)
49 KBBGraphicsItemBorder::setBorderPosition(borderPosition);
50 setPos(centerX() - KBBScalableGraphicWidget::RATIO/2, centerY() - KBBScalableGraphicWidget::RATIO/2);