LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DimensionsUITest::IconFactory Class Reference

#include <testiconfactory.h>

Inheritance diagram for DimensionsUITest::IconFactory:
[legend]
Collaboration diagram for DimensionsUITest::IconFactory:
[legend]

Public Slots

void slotPmoDestroyed (QObject *p_qobject)
 

Public Member Functions

QList< IconBase * > quickCreateFromDir (const QString &directoryPath)
 
QList< IconBase * > quickCreateFromDir (const QString &directoryPath, quint32 minWidth, quint32 maxWidth, quint32 minHeight, quint32 maxHeight, bool squareOnly)
 
QList< IconBase * > quickCreateFromDirWithFrame (const QString &directoryPath, const QString &framePicAbsFilename)
 
QList< IconBase * > quickCreateFromDirWithFrame (const QString &directoryPath, const QString &framePicAbsFilename, quint32 minWidth, quint32 maxWidth, quint32 minHeight, quint32 maxHeight, bool squareOnly)
 
bool addFrameToIcons (const QString &framePicPath, QList< IconBase * > &icons)
 
bool addLabelsToIcons (const QString &wordFileAbsPath, const quint32 maxCharsPerWord, QList< IconBase * > &icons)
 
bool addLabelsToIconsAtRandom (const QString &dictionaryFileAbsPath, const quint32 maxCharsPerWord, int randSeed, QList< IconBase * > &icons)
 

Static Public Member Functions

static IconFactoryinstance ()
 
static void destroy ()
 

Protected Types

typedef QMap< QString,
QPointer< PixmapObject >
>::const_iterator 
LoadedPmoMapConstIter
 
typedef QMap< QString,
QPointer< PixmapObject >
>::iterator 
LoadedPmoMapIter
 

Protected Member Functions

virtual ~IconFactory ()
 
PixmapObjectloadPixmapObject (const QString &absFilePath)
 
void releasePixmapObject (PixmapObject *p_pix)
 
void releasePixmapObject (const QString &absFilePath)
 

Protected Attributes

QMap< QString, QPointer
< PixmapObject > > 
m_loadedPmoMap
 

Static Protected Attributes

static IconFactorys_instance = 0
 

Member Typedef Documentation

typedef QMap<QString,QPointer<PixmapObject> >::const_iterator DimensionsUITest::IconFactory::LoadedPmoMapConstIter
protected
typedef QMap<QString,QPointer<PixmapObject> >::iterator DimensionsUITest::IconFactory::LoadedPmoMapIter
protected

Constructor & Destructor Documentation

DimensionsUITest::IconFactory::~IconFactory ( )
protectedvirtual

Member Function Documentation

bool DimensionsUITest::IconFactory::addFrameToIcons ( const QString &  framePicPath,
QList< IconBase * > &  icons 
)
bool DimensionsUITest::IconFactory::addLabelsToIcons ( const QString &  wordFileAbsPath,
const quint32  maxCharsPerWord,
QList< IconBase * > &  icons 
)
bool DimensionsUITest::IconFactory::addLabelsToIconsAtRandom ( const QString &  dictionaryFileAbsPath,
const quint32  maxCharsPerWord,
int  randSeed,
QList< IconBase * > &  icons 
)
void DimensionsUITest::IconFactory::destroy ( )
static
IconFactory * DimensionsUITest::IconFactory::instance ( void  )
static
PixmapObject * DimensionsUITest::IconFactory::loadPixmapObject ( const QString &  absFilePath)
protected
QList< IconBase * > DimensionsUITest::IconFactory::quickCreateFromDir ( const QString &  directoryPath)
QList< IconBase * > DimensionsUITest::IconFactory::quickCreateFromDir ( const QString &  directoryPath,
quint32  minWidth,
quint32  maxWidth,
quint32  minHeight,
quint32  maxHeight,
bool  squareOnly 
)
QList< IconBase * > DimensionsUITest::IconFactory::quickCreateFromDirWithFrame ( const QString &  directoryPath,
const QString &  framePicAbsFilename 
)
QList< IconBase * > DimensionsUITest::IconFactory::quickCreateFromDirWithFrame ( const QString &  directoryPath,
const QString &  framePicAbsFilename,
quint32  minWidth,
quint32  maxWidth,
quint32  minHeight,
quint32  maxHeight,
bool  squareOnly 
)
void DimensionsUITest::IconFactory::releasePixmapObject ( PixmapObject p_pix)
protected
void DimensionsUITest::IconFactory::releasePixmapObject ( const QString &  absFilePath)
protected
void DimensionsUITest::IconFactory::slotPmoDestroyed ( QObject p_qobject)
slot

Member Data Documentation

QMap<QString,QPointer<PixmapObject> > DimensionsUITest::IconFactory::m_loadedPmoMap
protected
IconFactory * DimensionsUITest::IconFactory::s_instance = 0
staticprotected

The documentation for this class was generated from the following files: