QSeparatorAdapter.h

00001 /*
00002  * @(#)QSeparatorAdapter.h  0.2.0 / 2007-11-23
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 QSEPARATORADAPTER_H
00010 #define QSEPARATORADAPTER_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- QSeparatorAdapter Class.                                                 -*/
00016 /*^**************************************************************************^*/
00017 
00024 class JAVAQX_EXPORT QSeparatorAdapter : public QWidget
00025 {
00026 public:
00027   QSeparatorAdapter();
00028 public:
00029   Qt::Orientation orientation() const;
00030   void setOrientation(Qt::Orientation orientation);
00031   QString text() const;
00032   void setText(const QString text);
00033   void setUseStylePalette(bool useStylePalette);
00034 public:
00035   virtual QSize sizeHint() const;
00036 protected:
00037   virtual void changeEvent(QEvent *e);
00038   virtual void paintEvent(QPaintEvent *e);
00039 protected:
00040   void updateLabel();
00041 private:
00042   Qt::Orientation m_orientation;
00043   QString m_text;
00044   bool m_useStylePalette;
00045 public:
00046   static const int DEFAULT_SEPARATOR_EXTENT;
00047 };
00048 
00049 #endif // QSEPARATORADAPTER_H
00050 
00051 /*^*****************************************************************************
00052   File History:
00053 
00054  - 2007-11-23 21:10:23 Slobodan
00055    Initial version
00056 
00057 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.