ContentPaneBridge.h

00001 /*
00002  * @(#)ContentPaneBridge.h  0.2.0 / 2007-12-28
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef CONTENTPANEBRIDGE_H
00010 #define CONTENTPANEBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQContainerBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- ContentPaneBridge Class.                                                 -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT ContentPaneBridge : public JQContainerBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   ContentPaneBridge(JNIEnv *env, jobject obj);
00031 public: // native calls
00032   static void initialize(JNIEnv *env, jclass cls);
00033   static jlong newInstance(JNIEnv *env, jobject obj);
00034 public: // native callbacks
00035   QSize getLayoutPreferredSize();
00036 private:
00037   static jmethodID sm_getLayoutPreferredSizeMID;
00038 };
00039 
00040 /*^**************************************************************************^*/
00041 /*- Macro Definition.                                                        -*/
00042 /*^**************************************************************************^*/
00043 
00044 #define contentPaneBridge (reinterpret_cast<ContentPaneBridge *>(bridge))
00045 
00046 #endif //CONTENTPANEBRIDGE_H
00047 
00048 /*^*****************************************************************************
00049   File History:
00050 
00051  - 2007-12-28 22:37:50 Slobodan
00052    Initial version
00053 
00054 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.