• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kblackbox

KBBBallsGraphicWidget Class Reference

#include <kbbballsgraphicwidget.h>

Inheritance diagram for KBBBallsGraphicWidget:

Inheritance graph
[legend]

List of all members.


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:
  • kbbballsgraphicwidget.h
  • kbbballsgraphicwidget.cpp

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal