QApplicationAdapter Class Reference

QApplication Adapter. More...

#include <QApplicationAdapter.h>

List of all members.

Signals

void aboutQtSignal ()
void setTranslationSignal (bool *succeed, const QString &fileName)
void removeTranslationSignal ()
void setStyleSheetSignal (const QString &styleSheetText)
void setOverrideCursorSignal (jint type)
void changeOverrideCursorSignal (jint type)
void restoreOverrideCursorSignal ()
void aboutQSwingSignal ()

Public Member Functions

 QApplicationAdapter (int &argc, char **argv)
 Constructs new QApplicationAdapter object.
void aboutQt (JNIEnv *env)
 Displays about Qt message box.
void aboutQSwing (JNIEnv *env)
 Displays about QSwing message box.
bool setTranslation (JNIEnv *env, const QString &fileName)
 Sets translation.
void removeTranslation (JNIEnv *env)
 Removes translation.
void setStyleSheet (JNIEnv *env, jstring styleSheetText)
 Sets style sheet.
void setOverrideCursor (JNIEnv *env, jint type)
 Sets application override cursor.
void changeOverrideCursor (JNIEnv *env, jint type)
 Changes application override cursor.
void restoreOverrideCursor (JNIEnv *env)
 Undos last setOverrideCursor().
void setFontSet (QFontSet *fontSet)
 Sets font set.

Static Public Member Functions

static int exec (bool quitOnLastWindowClosed)
 Quits main loop.


Detailed Description

QApplication Adapter.

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

Constructor & Destructor Documentation

QApplicationAdapter::QApplicationAdapter ( int &  argc,
char **  argv 
)

Constructs new QApplicationAdapter object.

Parameters:
argc the number of command line arguments
argv the command line arguments


Member Function Documentation

void QApplicationAdapter::aboutQt ( JNIEnv *  env  ) 

Displays about Qt message box.

Parameters:
env the JNIEnv pointer

void QApplicationAdapter::aboutQSwing ( JNIEnv *  env  ) 

Displays about QSwing message box.

Parameters:
env the JNIEnv pointer

bool QApplicationAdapter::setTranslation ( JNIEnv *  env,
const QString &  fileName 
)

Sets translation.

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

void QApplicationAdapter::removeTranslation ( JNIEnv *  env  ) 

Removes translation.

Parameters:
env the JNIEnv pointer

void QApplicationAdapter::setStyleSheet ( JNIEnv *  env,
jstring  styleSheetText 
)

Sets style sheet.

Parameters:
env the JNIEnv pointer
styleSheetText the style sheet text

void QApplicationAdapter::setOverrideCursor ( JNIEnv *  env,
jint  type 
)

Sets application override cursor.

Parameters:
env the JNIEnv pointer
type the style cursor type

void QApplicationAdapter::changeOverrideCursor ( JNIEnv *  env,
jint  type 
)

Changes application override cursor.

Parameters:
env the JNIEnv pointer
type the style cursor type

void QApplicationAdapter::restoreOverrideCursor ( JNIEnv *  env  ) 

Undos last setOverrideCursor().

Parameters:
env the JNIEnv pointer

void QApplicationAdapter::setFontSet ( QFontSet fontSet  ) 

Sets font set.

Parameters:
fontSet the font set

int QApplicationAdapter::exec ( bool  quitOnLastWindowClosed  )  [static]

Quits main loop.

Parameters:
quitOnLastWindowClosed if true exits main loop when last window is closed
Returns:
loop exit code


Copyright © 2007 ETF and contributors. All Rights Reserved.