JQToggleButtonBridge.h

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

Copyright © 2007 ETF and contributors. All Rights Reserved.