QSwingBridge Class Reference

QSwing Bridge. More...

#include <QSwingBridge.h>

List of all members.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls, jobjectArray args, jclass colorClass, jclass dimensionClass, jclass rectangleClass, jclass fontClass, jclass imageClass, jclass iconSetClass, jclass runnableClass, jclass iteClass, jclass systemColorPaletteClass, jclass systemFontSetClass)
 Initializes JQLabelBridge class.
static void dispose (JNIEnv *env, jclass cls)
 Disposes QSwing.
static jint exec (JNIEnv *env, jclass cls, jboolean quitOnLastWindowClosed)
 Starts QSwing event loop.
static void exit (JNIEnv *env, jclass cls, jint returnCode)
 Exits QSwing event loop.
static void flush (JNIEnv *env, jclass cls)
 Processes the events.
static void disableNativeLogging (JNIEnv *env, jclass cls)
 Disables native logging.
static jboolean setTranslation (JNIEnv *env, jclass cls, jstring fileName)
 Sets translation.
static void removeTranslation (JNIEnv *env, jclass cls)
 Removes translation.
static jstring translate (JNIEnv *env, jclass cls, jstring context, jstring sourceText)
 Returns translation text for the sourceText.
static jobjectArray availableStyles (JNIEnv *env, jclass systemStyleClass)
 Returns abailable styles.
static jboolean setStyle (JNIEnv *env, jclass cls, jstring name)
 Sets the specified style.
static void setStyleSheet (JNIEnv *env, jclass cls, jstring styleSheetText)
 Sets style sheet.
static void setOverrideCursor (JNIEnv *env, jclass cls, jint type)
 Sets application override cursor.
static void changeOverrideCursor (JNIEnv *env, jclass cls, jint type)
 Changes application override cursor.
static void restoreOverrideCursor (JNIEnv *env, jclass cls)
 Undos last setOverrideCursor().
static jobjectArray availableThemes (JNIEnv *env, jclass systemThemeClass)
 Returns available themes.
static void setTheme (JNIEnv *env, jclass cls, jobject colorPalette, jobject fontSet)
 Sets style theme.
static void setUseSystemTheme (JNIEnv *env, jclass cls, jboolean useSystemTheme)
 Sets whether or not using system theme.
static void aboutQt (JNIEnv *env, jclass cls)
 Displays About Qt message box.
static void aboutQSwing (JNIEnv *env, jclass cls)
 Displays About QSwing message box.
static void setCustomProperty (JNIEnv *env, jclass cls, jstring name, jstring value)
 Sets custom property.
static ushort getQSwingKeyChar (QKeyEvent *e)
 Returns QSwing key char.
static jint toQSwingModifiers (Qt::KeyboardModifiers modifiers)
 Returns QSwing keyboard modifiers.
static
Qt::KeyboardModifiers 
toKeyboardModifiers (int keyCode)
 Converts key code to keyboard modifiers.
static jint toQSwingButton (Qt::MouseButton button)
 Returns QSwing mouse button.
static jint toQSwingKeyCode (int keyCode)
 Returns QSwing key code.
static Qt::Alignment toHorizontalAlignment (jint alignment)
 Returns the Qt horizontal alignment.
static Qt::Alignment toVerticalAlignment (jint alignment)
 Returns the Qt vertical alignment.
static bool isDisposed ()
 Returns true if QSwingBridge is disposed.


Detailed Description

QSwing Bridge.

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

Member Function Documentation

void QSwingBridge::initialize ( JNIEnv *  env,
jclass  cls,
jobjectArray  args,
jclass  colorClass,
jclass  dimensionClass,
jclass  rectangleClass,
jclass  fontClass,
jclass  imageClass,
jclass  iconSetClass,
jclass  runnableClass,
jclass  iteClass,
jclass  systemColorPaletteClass,
jclass  systemFontSetClass 
) [static]

Initializes JQLabelBridge class.

Parameters:
env the JNIEnv pointer
cls the QSwing class
args the application arguments
colorClass the QSwing Color class
dimensionClass the QSwing Dimension class
rectangleClass the QSwing Rectangle class
fontClass the QSwing Font class
imageClass the QSwing Image class
iconSetClass the QSwing IconSet class
runnableClass the java Runable class
iteClass the java Invocation Target Exception class
systemColorPaletteClass the QSwing System Color Palette class
systemFontSetClass the QSwing System Font Set class

void QSwingBridge::dispose ( JNIEnv *  env,
jclass  cls 
) [static]

Disposes QSwing.

Parameters:
env the JNIEnv pointer
cls the QSwing class

jint QSwingBridge::exec ( JNIEnv *  env,
jclass  cls,
jboolean  quitOnLastWindowClosed 
) [static]

Starts QSwing event loop.

Parameters:
env the JNIEnv pointer
cls the QSwing class
quitOnLastWindowClosed true if quits
Returns:
loop exit code

void QSwingBridge::exit ( JNIEnv *  env,
jclass  cls,
jint  returnCode 
) [static]

Exits QSwing event loop.

Parameters:
env the JNIEnv pointer
cls the QSwing class
returnCode the return code

void QSwingBridge::flush ( JNIEnv *  env,
jclass  cls 
) [static]

Processes the events.

Parameters:
env the JNIEnv pointer
cls the QSwing class

void QSwingBridge::disableNativeLogging ( JNIEnv *  env,
jclass  cls 
) [static]

Disables native logging.

Parameters:
env the JNIEnv pointer
cls the QSwing class

jboolean QSwingBridge::setTranslation ( JNIEnv *  env,
jclass  cls,
jstring  fileName 
) [static]

Sets translation.

Parameters:
env the JNIEnv pointer
cls the QSwing class
fileName the translation file name
Returns:
true if succeed

void QSwingBridge::removeTranslation ( JNIEnv *  env,
jclass  cls 
) [static]

Removes translation.

Parameters:
env the JNIEnv pointer
cls the QSwing class

jstring QSwingBridge::translate ( JNIEnv *  env,
jclass  cls,
jstring  context,
jstring  sourceText 
) [static]

Returns translation text for the sourceText.

Parameters:
env the JNIEnv pointer
cls the QSwing class
context the translation context
sourceText the text to be translated
Returns:
translation text for the sourceText

jobjectArray QSwingBridge::availableStyles ( JNIEnv *  env,
jclass  systemStyleClass 
) [static]

Returns abailable styles.

Parameters:
env the JNIEnv pointer
systemStyleClass the SystemStyle class
Returns:
abailable styles

jboolean QSwingBridge::setStyle ( JNIEnv *  env,
jclass  cls,
jstring  name 
) [static]

Sets the specified style.

Parameters:
env the JNIEnv pointer
cls the QSwing java class
name the style name
Returns:
true if succeed

void QSwingBridge::setStyleSheet ( JNIEnv *  env,
jclass  cls,
jstring  styleSheetText 
) [static]

Sets style sheet.

Parameters:
env the JNIEnv pointer
cls the QSwing java class
styleSheetText the style sheet text

void QSwingBridge::setOverrideCursor ( JNIEnv *  env,
jclass  cls,
jint  type 
) [static]

Sets application override cursor.

Parameters:
env the JNIEnv pointer
cls the QSwing java class
type the style cursor type

void QSwingBridge::changeOverrideCursor ( JNIEnv *  env,
jclass  cls,
jint  type 
) [static]

Changes application override cursor.

Parameters:
env the JNIEnv pointer
cls the QSwing java class
type the style cursor type

void QSwingBridge::restoreOverrideCursor ( JNIEnv *  env,
jclass  cls 
) [static]

Undos last setOverrideCursor().

Parameters:
env the JNIEnv pointer
cls the QSwing java class

jobjectArray QSwingBridge::availableThemes ( JNIEnv *  env,
jclass  systemThemeClass 
) [static]

Returns available themes.

Parameters:
env the JNIEnv pointer
systemThemeClass the SystemTheme class
Returns:
available themes

void QSwingBridge::setTheme ( JNIEnv *  env,
jclass  cls,
jobject  colorPalette,
jobject  fontSet 
) [static]

Sets style theme.

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

void QSwingBridge::setUseSystemTheme ( JNIEnv *  env,
jclass  cls,
jboolean  useSystemTheme 
) [static]

Sets whether or not using system theme.

Parameters:
env the JNIEnv pointer
cls the QSwing java class
useSystemTheme true if using system theme

void QSwingBridge::aboutQt ( JNIEnv *  env,
jclass  cls 
) [static]

Displays About Qt message box.

Parameters:
env the JNIEnv pointer
cls the QSwing class

void QSwingBridge::aboutQSwing ( JNIEnv *  env,
jclass  cls 
) [static]

Displays About QSwing message box.

Parameters:
env the JNIEnv pointer
cls the QSwing class

void QSwingBridge::setCustomProperty ( JNIEnv *  env,
jclass  cls,
jstring  name,
jstring  value 
) [static]

Sets custom property.

Parameters:
env the JNIEnv pointer
cls the QSwing class
name the property name
value the property value

ushort QSwingBridge::getQSwingKeyChar ( QKeyEvent *  e  )  [static]

Returns QSwing key char.

Parameters:
e the Qt QKeyEvent
Returns:
QSwing key char

jint QSwingBridge::toQSwingModifiers ( Qt::KeyboardModifiers  modifiers  )  [static]

Returns QSwing keyboard modifiers.

Parameters:
modifiers the Qt keyboard modifiers
Returns:
QSwing keyboard modifiers

Qt::KeyboardModifiers QSwingBridge::toKeyboardModifiers ( int  keyCode  )  [static]

Converts key code to keyboard modifiers.

Parameters:
keyCode the key code
Returns:
keyboard modifiers

jint QSwingBridge::toQSwingButton ( Qt::MouseButton  button  )  [static]

Returns QSwing mouse button.

Parameters:
button the Qt mouse button
Returns:
QSwing mouse button

jint QSwingBridge::toQSwingKeyCode ( int  keyCode  )  [static]

Returns QSwing key code.

Parameters:
keyCode the Qt key code
Returns:
QSwing key code

Qt::Alignment QSwingBridge::toHorizontalAlignment ( jint  alignment  )  [static]

Returns the Qt horizontal alignment.

Parameters:
alignment the QSwing horizontal alignment
Returns:
the Qt horizontal alignment

Qt::Alignment QSwingBridge::toVerticalAlignment ( jint  alignment  )  [static]

Returns the Qt vertical alignment.

Parameters:
alignment the QSwing vertical alignment
Returns:
the Qt vertical alignment

bool QSwingBridge::isDisposed (  )  [inline, static]

Returns true if QSwingBridge is disposed.

Returns:
true if QSwingBridge is disposed


Copyright © 2007 ETF and contributors. All Rights Reserved.