kblackbox
KBBBallsGraphicWidget Class Reference
#include <kbbballsgraphicwidget.h>

Detailed Description
Widget displaying the number of balls to place on the black box.This is always the number of balls remaining to be placed. If this number is negative because the player placed too many balls, the widget displays how many balls the player should remove from the black box.
Definition at line 48 of file kbbballsgraphicwidget.h.
Public Member Functions | |
| KBBBallsGraphicWidget (KBBThemeManager *themeManager) | |
| ~KBBBallsGraphicWidget () | |
| void | resizeEvent (QResizeEvent *) |
| void | setBallsToPlace (const int ballsToPlace) |
| void | setPlacedBalls (const int placedBalls) |
Constructor & Destructor Documentation
| KBBBallsGraphicWidget::KBBBallsGraphicWidget | ( | KBBThemeManager * | themeManager | ) | [explicit] |
Constructor.
- Parameters:
-
themeManager Pointer to the theme manager to display the right graphic items.
Definition at line 44 of file kbbballsgraphicwidget.cpp.
| KBBBallsGraphicWidget::~KBBBallsGraphicWidget | ( | ) |
Destructor Remove all items displayed on the scene.
Definition at line 58 of file kbbballsgraphicwidget.cpp.
Member Function Documentation
| void KBBBallsGraphicWidget::resizeEvent | ( | QResizeEvent * | ) |
Event: widget has been resized This happens for instance when the main window has been resized.
Definition at line 70 of file kbbballsgraphicwidget.cpp.
| void KBBBallsGraphicWidget::setBallsToPlace | ( | const int | ballsToPlace | ) |
Define the number of balls to place on the black box.
This defines also the maximum number of balls (or items) to display on this widget.
- Parameters:
-
ballsToPlace Number of balls to place
Definition at line 76 of file kbbballsgraphicwidget.cpp.
| void KBBBallsGraphicWidget::setPlacedBalls | ( | const int | placedBalls | ) |
Define the number of balls the player already placed on the board.
So the number of balls to display on this widget is "Number of balls to place" - this. (if >=0).
- Parameters:
-
placedBalls Number of balls placed on the black box.
Definition at line 93 of file kbbballsgraphicwidget.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference