#include <QSwingBridge.h>
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. |
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.
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.
env | the JNIEnv pointer | |
cls | the QSwing class |
jint QSwingBridge::exec | ( | JNIEnv * | env, | |
jclass | cls, | |||
jboolean | quitOnLastWindowClosed | |||
) | [static] |
Starts QSwing event loop.
env | the JNIEnv pointer | |
cls | the QSwing class | |
quitOnLastWindowClosed | true if quits |
void QSwingBridge::exit | ( | JNIEnv * | env, | |
jclass | cls, | |||
jint | returnCode | |||
) | [static] |
Exits QSwing event loop.
env | the JNIEnv pointer | |
cls | the QSwing class | |
returnCode | the return code |
void QSwingBridge::flush | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Processes the events.
env | the JNIEnv pointer | |
cls | the QSwing class |
void QSwingBridge::disableNativeLogging | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Disables native logging.
env | the JNIEnv pointer | |
cls | the QSwing class |
jboolean QSwingBridge::setTranslation | ( | JNIEnv * | env, | |
jclass | cls, | |||
jstring | fileName | |||
) | [static] |
Sets translation.
env | the JNIEnv pointer | |
cls | the QSwing class | |
fileName | the translation file name |
true
if succeed void QSwingBridge::removeTranslation | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Removes translation.
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.
env | the JNIEnv pointer | |
cls | the QSwing class | |
context | the translation context | |
sourceText | the text to be translated |
jobjectArray QSwingBridge::availableStyles | ( | JNIEnv * | env, | |
jclass | systemStyleClass | |||
) | [static] |
Returns abailable styles.
env | the JNIEnv pointer | |
systemStyleClass | the SystemStyle class |
jboolean QSwingBridge::setStyle | ( | JNIEnv * | env, | |
jclass | cls, | |||
jstring | name | |||
) | [static] |
Sets the specified style.
env | the JNIEnv pointer | |
cls | the QSwing java class | |
name | the style name |
true
if succeed void QSwingBridge::setStyleSheet | ( | JNIEnv * | env, | |
jclass | cls, | |||
jstring | styleSheetText | |||
) | [static] |
Sets style sheet.
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.
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.
env | the JNIEnv pointer | |
cls | the QSwing java class | |
type | the style cursor type |
void QSwingBridge::restoreOverrideCursor | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
jobjectArray QSwingBridge::availableThemes | ( | JNIEnv * | env, | |
jclass | systemThemeClass | |||
) | [static] |
Returns available themes.
env | the JNIEnv pointer | |
systemThemeClass | the SystemTheme class |
void QSwingBridge::setTheme | ( | JNIEnv * | env, | |
jclass | cls, | |||
jobject | colorPalette, | |||
jobject | fontSet | |||
) | [static] |
Sets style theme.
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.
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.
env | the JNIEnv pointer | |
cls | the QSwing class |
void QSwingBridge::aboutQSwing | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Displays About QSwing message box.
env | the JNIEnv pointer | |
cls | the QSwing class |
void QSwingBridge::setCustomProperty | ( | JNIEnv * | env, | |
jclass | cls, | |||
jstring | name, | |||
jstring | value | |||
) | [static] |
Sets custom property.
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.
e | the Qt QKeyEvent |
jint QSwingBridge::toQSwingModifiers | ( | Qt::KeyboardModifiers | modifiers | ) | [static] |
Returns QSwing keyboard modifiers.
modifiers | the Qt keyboard modifiers |
Qt::KeyboardModifiers QSwingBridge::toKeyboardModifiers | ( | int | keyCode | ) | [static] |
Converts key code to keyboard modifiers.
keyCode | the key code |
jint QSwingBridge::toQSwingButton | ( | Qt::MouseButton | button | ) | [static] |
Returns QSwing mouse button.
button | the Qt mouse button |
jint QSwingBridge::toQSwingKeyCode | ( | int | keyCode | ) | [static] |
Returns QSwing key code.
keyCode | the Qt key code |
Qt::Alignment QSwingBridge::toHorizontalAlignment | ( | jint | alignment | ) | [static] |
Returns the Qt horizontal alignment.
alignment | the QSwing horizontal alignment |
Qt::Alignment QSwingBridge::toVerticalAlignment | ( | jint | alignment | ) | [static] |
Returns the Qt vertical alignment.
alignment | the QSwing vertical alignment |
bool QSwingBridge::isDisposed | ( | ) | [inline, static] |