JQRadioButtonBridge.h

00001 /*
00002  * @(#)JQRadioButtonBridge.h  0.2.0 / 2007-11-21
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 JQRADIOBUTTONBRIDGE_H
00010 #define JQRADIOBUTTONBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQToggleButtonBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQRadioButtonBridge Class.                                               -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQRadioButtonBridge : public JQToggleButtonBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQRadioButtonBridge(JNIEnv *env, jobject obj);
00031 public: // native calls
00032   static jlong newInstance(JNIEnv *env, jobject obj);
00033 public:
00034   inline QRadioButton *qRadioButton() const;
00035 };
00036 
00037 /*^**************************************************************************^*/
00038 /*- JQRadioButtonBridge :: Inline Member Function.                           -*/
00039 /*^**************************************************************************^*/
00040 
00046 inline QRadioButton *JQRadioButtonBridge::qRadioButton() const
00047 {
00048   return static_cast<QRadioButton *>(qObject());
00049 }
00050 
00051 /*^**************************************************************************^*/
00052 /*- Macro Definition.                                                        -*/
00053 /*^**************************************************************************^*/
00054 
00055 #define jqRadioButtonBridge (reinterpret_cast<JQRadioButtonBridge *>(bridge))
00056 
00057 #endif //JQRADIOBUTTONBRIDGE_H
00058 
00059 /*^*****************************************************************************
00060   File History:
00061 
00062  - 2007-11-21 17:40:23 Slobodan
00063    Initial version
00064 
00065 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.