• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

palapeli/libpala

  • Pala
  • IntegerProperty
Public Types | Public Member Functions | List of all members
Pala::IntegerProperty Class Reference

#include <Pala/SlicerProperty>

Inheritance diagram for Pala::IntegerProperty:
Inheritance graph
[legend]

Public Types

enum  Representation { SpinBox, Slider, DefaultRepresentation = SpinBox }
 

Public Member Functions

 IntegerProperty (const QString &caption)
 
virtual ~IntegerProperty ()
 
QPair< int, int > range () const
 
Representation representation () const
 
void setRange (int min, int max)
 
void setRepresentation (Representation representation)
 
- Public Member Functions inherited from Pala::SlicerProperty
virtual ~SlicerProperty ()
 
QString caption () const
 
QVariantList choices () const
 
QVariant defaultValue () const
 
bool isAdvanced () const
 
bool isEnabled () const
 
QByteArray key () const
 
void setAdvanced (bool advanced=true)
 
void setChoices (const QVariantList &choices)
 
void setDefaultValue (const QVariant &value)
 
void setEnabled (bool enabled)
 
void setKey (const QByteArray &key)
 
QVariant::Type type () const
 

Additional Inherited Members

- Protected Member Functions inherited from Pala::SlicerProperty
 SlicerProperty (QVariant::Type type, const QString &caption)
 

Detailed Description

Definition at line 106 of file slicerproperty.h.

Member Enumeration Documentation

enum Pala::IntegerProperty::Representation

Decides how the property is represented in the user interface of Palapeli.

Enumerator
SpinBox 
Slider 
DefaultRepresentation 

Definition at line 110 of file slicerproperty.h.

Constructor & Destructor Documentation

Pala::IntegerProperty::IntegerProperty ( const QString &  caption)
explicit

Definition at line 144 of file slicerproperty.cpp.

Pala::IntegerProperty::~IntegerProperty ( )
virtual

Definition at line 152 of file slicerproperty.cpp.

Member Function Documentation

QPair< int, int > Pala::IntegerProperty::range ( ) const

Definition at line 157 of file slicerproperty.cpp.

Pala::IntegerProperty::Representation Pala::IntegerProperty::representation ( ) const

Definition at line 162 of file slicerproperty.cpp.

void Pala::IntegerProperty::setRange ( int  min,
int  max 
)

Limits the user input to the selection of a number inside the given range (including the bounds).

Definition at line 167 of file slicerproperty.cpp.

void Pala::IntegerProperty::setRepresentation ( Representation  representation)

Decides how the property is represented in the user interface of Palapeli.

Definition at line 173 of file slicerproperty.cpp.


The documentation for this class was generated from the following files:
  • slicerproperty.h
  • slicerproperty.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

palapeli/libpala

Skip menu "palapeli/libpala"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal