QStyleManager Class Reference

QStyle Manager. More...

#include <QStyleManager.h>

List of all members.

Public Slots

jboolean setStyle (JNIEnv *env, jstring name)
 Sets the specified style.
void setTheme (JNIEnv *env, jobject colorPalette, jobject fontSet)
 Sets theme.
void setUseSystemTheme (JNIEnv *env, jboolean useSystemTheme)
 Sets whether or not using system theme.
void fillPalette (JNIEnv *env, jobject customColorPalette, jstring name)
 Fills the specified color palette.
void fillPalette (JNIEnv *env, jobject customColorPalette, jint argb)
 Fills the palette using specified color.
void fillFontSet (JNIEnv *env, jobject customFontSet, jstring name)
 Fills the specified font set.

Public Member Functions

const QString & systemStyleName () const
 Returns system style name.
const QString & systemStyleDescription () const
 Returns system style description.
QStringList & availableStyleNames ()
 Returns available style names.
QStringList & availableThemeNames ()
 Returns available theme names.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass systemColorPaletteClass, jclass systemFontSetClass)
 Initializes QStyleManager class.
static void setCustomProperty (const QString &name, const QString &value)
 Sets custom property.
static QStyleManagerinstance ()
 Returns QStyleManager instance.


Detailed Description

QStyle Manager.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Member Function Documentation

const QString & QStyleManager::systemStyleName (  )  const

Returns system style name.

Returns:
system style name

const QString & QStyleManager::systemStyleDescription (  )  const

Returns system style description.

Returns:
system style description

QStringList & QStyleManager::availableStyleNames (  ) 

Returns available style names.

Returns:
available style names

QStringList & QStyleManager::availableThemeNames (  ) 

Returns available theme names.

Returns:
available theme names

jboolean QStyleManager::setStyle ( JNIEnv *  env,
jstring  name 
) [slot]

Sets the specified style.

Parameters:
env the JNIEnv pointer
name the style name
Returns:
true if succeed

void QStyleManager::setTheme ( JNIEnv *  env,
jobject  colorPalette,
jobject  fontSet 
) [slot]

Sets theme.

Parameters:
env the JNIEnv pointer
colorPalette the color palette
fontSet the font set

void QStyleManager::setUseSystemTheme ( JNIEnv *  env,
jboolean  useSystemTheme 
) [slot]

Sets whether or not using system theme.

Parameters:
env the JNIEnv pointer
useSystemTheme true if using system theme

void QStyleManager::fillPalette ( JNIEnv *  env,
jobject  customColorPalette,
jstring  name 
) [slot]

Fills the specified color palette.

Parameters:
env the JNIEnv pointer
customColorPalette the CustomColorPalette java object
name the color palette name

void QStyleManager::fillPalette ( JNIEnv *  env,
jobject  customColorPalette,
jint  argb 
) [slot]

Fills the palette using specified color.

Parameters:
env the JNIEnv pointer
customColorPalette the ColorPalette java object
argb the argb value of the color

void QStyleManager::fillFontSet ( JNIEnv *  env,
jobject  customFontSet,
jstring  name 
) [slot]

Fills the specified font set.

Parameters:
env the JNIEnv pointer
customFontSet the CustomFontSet java object
name the font set name

void QStyleManager::initialize ( JNIEnv *  env,
jclass  systemColorPaletteClass,
jclass  systemFontSetClass 
) [static]

Initializes QStyleManager class.

Parameters:
env the JNIEnv pointer
systemColorPaletteClass the CustomColorPalette class
systemFontSetClass the CustomFontSet class

void QStyleManager::setCustomProperty ( const QString &  name,
const QString &  value 
) [static]

Sets custom property.

Parameters:
name the property name
value the property value

QStyleManager * QStyleManager::instance (  )  [inline, static]

Returns QStyleManager instance.

Returns:
QStyleManager instance


Copyright © 2007 ETF and contributors. All Rights Reserved.