JQButtonBridge.h

00001 /*
00002  * @(#)JQButtonBridge.h  0.2.0 / 2007-08-16
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 JQBUTTONBRIDGE_H
00010 #define JQBUTTONBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQAbstractButtonBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQButtonBridge Class.                                                    -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQButtonBridge : public JQAbstractButtonBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQButtonBridge(JNIEnv *env, jobject obj);
00031 public:
00032   jboolean isDefault(JNIEnv *env);
00033   void setDefaultCapable(JNIEnv *env, jboolean defaultCapable);
00034   void setAutoDefault(JNIEnv *env, jboolean autoDefault);
00035 public: // native calls
00036   static jlong newInstance(JNIEnv *env, jobject obj);
00037 public:
00038   inline QPushButton *qPushButton() const;
00039 };
00040 
00041 /*^**************************************************************************^*/
00042 /*- JQButtonBridge :: Public Inline Member Function.                         -*/
00043 /*^**************************************************************************^*/
00044 
00050 inline QPushButton *JQButtonBridge::qPushButton() const
00051 {
00052   return static_cast<QPushButton *>(qObject());
00053 }
00054 
00055 /*^**************************************************************************^*/
00056 /*- Macro Definition.                                                        -*/
00057 /*^**************************************************************************^*/
00058 
00059 #define jqButtonBridge (reinterpret_cast<JQButtonBridge *>(bridge))
00060 
00061 #endif //JQBUTTONBRIDGE_H
00062 
00063 /*^*****************************************************************************
00064   File History:
00065 
00066  - 2007-08-16 07:56:37 Slobodan
00067    Initial version
00068 
00069 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.