00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef JQTOOLBARBRIDGE_H
00010 #define JQTOOLBARBRIDGE_H
00011
00012 #include "JavaQxQSwing.h"
00013
00014 #include "JQContainerBridge.h"
00015
00016
00017
00018
00019
00026 class JAVAQX_EXPORT JQToolBarBridge : public JQContainerBridge
00027 {
00028 Q_OBJECT
00029 protected:
00030 JQToolBarBridge(JNIEnv *env, jobject obj);
00031 public slots:
00032 void setName(JNIEnv *env, jstring name);
00033 void insertChild(JNIEnv *env, jlong childBridge, jint index);
00034 void removeChild(JNIEnv *env, jlong childBridge);
00035 void setFloatable(JNIEnv *env, jboolean floatable);
00036 void setOrientation(JNIEnv *env, jint orientation);
00037 void setIconSize(JNIEnv *env, jint width, jint height);
00038 public:
00039 static void initialize(JNIEnv *env, jclass cls);
00040 static jlong newInstance(JNIEnv *env, jobject obj);
00041 public:
00042 void orientationChanged(jint orientation);
00043 public:
00044 inline QToolBar *qToolBar() const;
00045 protected slots:
00046 void orientationChangedSlot(Qt::Orientation orientation);
00047 private:
00048 static jmethodID sm_orientationChangedMID;
00049 };
00050
00051
00052
00053
00054
00060 inline QToolBar *JQToolBarBridge::qToolBar() const
00061 {
00062 return static_cast<QToolBar *>(qObject());
00063 }
00064
00065
00066
00067
00068
00069 #define jqToolBarCast(bridge) (reinterpret_cast<JQToolBarBridge *>(bridge))
00070 #define jqToolBarBridge jqToolBarCast(bridge)
00071
00072 #endif //JQTOOLBARBRIDGE_H
00073
00074
00075
00076
00077
00078
00079
00080