KCardInfo Class Reference

#include <cardcache.h>

List of all members.

Public Types

enum  Suit {
  None, Diamond, Heart, Club,
  Spade
}
enum  Card {
  Joker, Ace, King, Queen,
  Jack, Ten, Nine, Eight,
  Seven, Six, Five, Four,
  Three, Two
}

Public Member Functions

 KCardInfo (Suit s, Card c)
void setCard (Card c)
Card card () const
void setSuit (Suit s)
Suit suit () const
QString pngName () const
QString svgName () const
bool operator== (const KCardInfo &c) const

Public Attributes

QString name
QString comment
QString path
QString back
QPixmap preview
QString svgfile
QSizeF size
bool isDefault


Detailed Description

Definition at line 54 of file 1.cpp.


Member Enumeration Documentation

enum KCardInfo::Suit

Enumerator:
None 
Diamond 
Heart 
Club 
Spade 

Definition at line 35 of file cardcache.h.

enum KCardInfo::Card

Enumerator:
Joker 
Ace 
King 
Queen 
Jack 
Ten 
Nine 
Eight 
Seven 
Six 
Five 
Four 
Three 
Two 

Definition at line 36 of file cardcache.h.


Constructor & Destructor Documentation

KCardInfo::KCardInfo ( KCardInfo::Suit  s,
KCardInfo::Card  c 
)

Definition at line 102 of file cardcache.cpp.


Member Function Documentation

void KCardInfo::setCard ( KCardInfo::Card  c  ) 

Definition at line 117 of file cardcache.cpp.

KCardInfo::Card KCardInfo::card (  )  const

Definition at line 107 of file cardcache.cpp.

Referenced by operator==(), pngName(), and svgName().

void KCardInfo::setSuit ( KCardInfo::Suit  s  ) 

Definition at line 122 of file cardcache.cpp.

KCardInfo::Suit KCardInfo::suit (  )  const

Definition at line 112 of file cardcache.cpp.

Referenced by operator==(), pngName(), and svgName().

QString KCardInfo::pngName (  )  const

Definition at line 132 of file cardcache.cpp.

References Ace, card(), Club, Diamond, Eight, Five, Four, Heart, Jack, King, Nine, Queen, Seven, Six, Spade, suit(), Ten, Three, and Two.

Referenced by KCardCache::defaultFrontSize(), and KCardCache::frontside().

Here is the call graph for this function:

QString KCardInfo::svgName (  )  const

Definition at line 189 of file cardcache.cpp.

References Ace, card(), Club, Diamond, Eight, Five, Four, Heart, Jack, King, Nine, Queen, Seven, Six, Spade, suit(), Ten, Three, and Two.

Referenced by KCardCache::defaultFrontSize(), KCardCache::frontside(), and LoadThread::run().

Here is the call graph for this function:

bool KCardInfo::operator== ( const KCardInfo c  )  const

Definition at line 127 of file cardcache.cpp.

References card(), and suit().

Here is the call graph for this function:


Member Data Documentation

QString KCardInfo::name

Definition at line 58 of file 1.cpp.

Referenced by KCardDialog::insertCardIcons(), KCardDialog::insertDeckIcons(), and KCardDialog::updateFront().

QString KCardInfo::comment

Definition at line 59 of file 1.cpp.

Referenced by KCardDialog::updateFront().

QString KCardInfo::path

Definition at line 60 of file 1.cpp.

QString KCardInfo::back

Definition at line 61 of file 1.cpp.

Referenced by KCardDialog::updateFront().

QPixmap KCardInfo::preview

Definition at line 62 of file 1.cpp.

Referenced by KCardDialog::insertCardIcons(), KCardDialog::insertDeckIcons(), KCardDialog::updateBack(), and KCardDialog::updateFront().

QString KCardInfo::svgfile

Definition at line 63 of file 1.cpp.

Referenced by KCardDialogStatic::filterOutCard(), and KCardDialogPrivate::filterOutCard().

QSizeF KCardInfo::size

Definition at line 64 of file 1.cpp.

bool KCardInfo::isDefault

Definition at line 65 of file 1.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 08:03:08 2008 for Libkdegames by  doxygen 1.5.3