JQToolBarBridge Class Reference

JQToolBar Bridge. More...

#include <JQToolBarBridge.h>

Inheritance diagram for JQToolBarBridge:

JQContainerBridge JQComponentBridge QObjectBridge

List of all members.

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.


Detailed Description

JQToolBar Bridge.

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

Constructor & Destructor Documentation

JQToolBarBridge::JQToolBarBridge ( JNIEnv *  env,
jobject  obj 
) [protected]

Constructs new JQToolBarBridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing JQToolBar object


Member Function Documentation

void JQToolBarBridge::setName ( JNIEnv *  env,
jstring  name 
) [slot]

Sets object name.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
env the JNIEnv pointer
floatable true if the toolbar can be moved

void JQToolBarBridge::setOrientation ( JNIEnv *  env,
jint  orientation 
) [slot]

Sets toolbar orientation.

Parameters:
env the JNIEnv pointer
orientation the orientation

void JQToolBarBridge::setIconSize ( JNIEnv *  env,
jint  width,
jint  height 
) [slot]

Sets icon size.

Parameters:
env the JNIEnv pointer
width the width
height the height

void JQToolBarBridge::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes JQToolBarBridge class.

Parameters:
env the JNIEnv pointer
cls the JQToolBar class
Exceptions:
FatalError if failed

Reimplemented from JQContainerBridge.

jlong JQToolBarBridge::newInstance ( JNIEnv *  env,
jobject  obj 
) [static]

Returns new instance of the bridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing object
Returns:
new instance of the bridge object

Reimplemented from JQContainerBridge.

void JQToolBarBridge::orientationChanged ( jint  orientation  ) 

Calls orientationChanged method of the toolbar object.

Parameters:
orientation the orientation

QToolBar * JQToolBarBridge::qToolBar (  )  const [inline]

Returns QToolBar adaptee.

Returns:
QToolBar adaptee

void JQToolBarBridge::orientationChangedSlot ( Qt::Orientation  orientation  )  [protected, slot]

orientationChanged slot.

Parameters:
orientation the orientation


Copyright © 2007 ETF and contributors. All Rights Reserved.