#include <JQToolBarBridge.h>
Public Slots | |
void | setName (JNIEnv *env, jstring name) |
Sets object name. | |
void | insertChild (JNIEnv *env, jlong childBridge, jint index) |
Inserts child. | |
void | removeChild (JNIEnv *env, jlong childBridge) |
Removes child. | |
void | setFloatable (JNIEnv *env, jboolean floatable) |
Sets whether or not toolbar can be moved. | |
void | setOrientation (JNIEnv *env, jint orientation) |
Sets toolbar orientation. | |
void | setIconSize (JNIEnv *env, jint width, jint height) |
Sets icon size. | |
Public Member Functions | |
void | orientationChanged (jint orientation) |
Calls orientationChanged method of the toolbar object. | |
QToolBar * | qToolBar () const |
Returns QToolBar adaptee. | |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes JQToolBarBridge class. | |
static jlong | newInstance (JNIEnv *env, jobject obj) |
Returns new instance of the bridge object. | |
Protected Slots | |
void | orientationChangedSlot (Qt::Orientation orientation) |
orientationChanged slot. | |
Protected Member Functions | |
JQToolBarBridge (JNIEnv *env, jobject obj) | |
Constructs new JQToolBarBridge object. |
JQToolBarBridge::JQToolBarBridge | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [protected] |
Constructs new JQToolBarBridge object.
env | the JNIEnv pointer | |
obj | the QSwing JQToolBar object |
void JQToolBarBridge::setName | ( | JNIEnv * | env, | |
jstring | name | |||
) | [slot] |
Sets object name.
env | the JNIEnv pointer | |
name | the tool bar title name |
Reimplemented from QObjectBridge.
void JQToolBarBridge::insertChild | ( | JNIEnv * | env, | |
jlong | childBridge, | |||
jint | index | |||
) | [slot] |
Inserts child.
env | the JNIEnv pointer | |
childBridge | the child pointer | |
index | the child index |
Reimplemented from JQContainerBridge.
void JQToolBarBridge::removeChild | ( | JNIEnv * | env, | |
jlong | childBridge | |||
) | [slot] |
Removes child.
env | the JNIEnv pointer | |
childBridge | the child bridge pointer |
Reimplemented from JQContainerBridge.
void JQToolBarBridge::setFloatable | ( | JNIEnv * | env, | |
jboolean | floatable | |||
) | [slot] |
Sets whether or not toolbar can be moved.
env | the JNIEnv pointer | |
floatable | true if the toolbar can be moved |
void JQToolBarBridge::setOrientation | ( | JNIEnv * | env, | |
jint | orientation | |||
) | [slot] |
Sets toolbar orientation.
env | the JNIEnv pointer | |
orientation | the orientation |
void JQToolBarBridge::setIconSize | ( | JNIEnv * | env, | |
jint | width, | |||
jint | height | |||
) | [slot] |
Sets icon size.
env | the JNIEnv pointer | |
width | the width | |
height | the height |
void JQToolBarBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQToolBarBridge class.
env | the JNIEnv pointer | |
cls | the JQToolBar class |
FatalError | if failed |
Reimplemented from JQContainerBridge.
jlong JQToolBarBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the QSwing object |
Reimplemented from JQContainerBridge.
void JQToolBarBridge::orientationChanged | ( | jint | orientation | ) |
Calls orientationChanged
method of the toolbar object.
orientation | the orientation |
QToolBar * JQToolBarBridge::qToolBar | ( | ) | const [inline] |
Returns QToolBar adaptee.
void JQToolBarBridge::orientationChangedSlot | ( | Qt::Orientation | orientation | ) | [protected, slot] |
orientationChanged slot.
orientation | the orientation |