JQProgressBarBridge.h

00001 /*
00002  * @(#)JQProgressBarBridge.h  0.2.0 / 2007-10-29
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 JQPROGRESSBARBRIDGE_H
00010 #define JQPROGRESSBARBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQComponentBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQProgressBarBridge Class.                                               -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQProgressBarBridge : public JQComponentBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQProgressBarBridge(JNIEnv *env, jobject obj);
00031 public slots: // native calls
00032   void setModel(JNIEnv *env, jint minimum, jint maximum, jint value);
00033   void setValue(JNIEnv *env, jint value);
00034   void setMinimum(JNIEnv *env, jint minimum);
00035   void setMaximum(JNIEnv *env, jint maximum);
00036   void setOrientation(JNIEnv *env, jint orientation);
00037   void setProgressString(JNIEnv *env, jstring progressString);
00038   void setStringPainted(JNIEnv *env, jboolean paintString);
00039 public: // native calls
00040   static jlong newInstance(JNIEnv *env, jobject obj);
00041 public:
00042   inline QProgressBar *qProgressBar() const;
00043 };
00044 
00045 /*^**************************************************************************^*/
00046 /*- JQProgressBarBridge :: Public Inline Member Function.                    -*/
00047 /*^**************************************************************************^*/
00048 
00054 inline QProgressBar *JQProgressBarBridge::qProgressBar() const
00055 {
00056   return static_cast<QProgressBar *>(qObject());
00057 }
00058 
00059 /*^**************************************************************************^*/
00060 /*- Macro Definition.                                                        -*/
00061 /*^**************************************************************************^*/
00062 
00063 #define jqProgressBarBridge (reinterpret_cast<JQProgressBarBridge *>(bridge))
00064 
00065 #endif //JQPROGRESSBARBRIDGE_H
00066 
00067 /*^*****************************************************************************
00068   File History:
00069 
00070  - 2007-10-29 08:54:07 JavaQx Native Generator
00071    Initial version
00072 
00073 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.