F:/KPlato/koffice/libs/kotext/KoBorderPreview.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KOffice project
00002    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00003    Copyright (C) 2006 Thomas Zander <zander@kde.org>
00004    Copyright (C) 2006 David Faure <faure@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KOBORDERPREVIEW_H
00023 #define KOBORDERPREVIEW_H
00024 
00025 #include <QFrame>
00026 #include "KoBorder.h"
00027 
00028 class KOTEXT_EXPORT KoBorderPreview : public QFrame/*QGroupBox*/
00029 {
00030     Q_OBJECT
00031 
00032 public:
00033     KoBorderPreview( QWidget* );
00034     ~KoBorderPreview() {}
00035 
00036     KoBorder leftBorder()const { return m_leftBorder; }
00037     void setLeftBorder( const KoBorder& _leftBorder )
00038         { m_leftBorder = _leftBorder; update(); }
00039     KoBorder rightBorder() const { return m_rightBorder; }
00040     void setRightBorder( const KoBorder& _rightBorder )
00041         { m_rightBorder = _rightBorder; update(); }
00042     KoBorder topBorder()const { return m_topBorder; }
00043     void setTopBorder( const KoBorder& _topBorder )
00044         { m_topBorder = _topBorder; update(); }
00045     KoBorder bottomBorder()const { return m_bottomBorder; }
00046     void setBottomBorder( const KoBorder& _bottomBorder )
00047         { m_bottomBorder = _bottomBorder; update(); }
00048 
00049     void setBorder( KoBorder::BorderType which, const KoBorder& border);
00050 
00051 protected:
00052     virtual void mousePressEvent( QMouseEvent* _ev );
00053     void drawContents( QPainter* );
00054     QPen setBorderPen( KoBorder _brd );
00055 
00056     KoBorder m_leftBorder, m_rightBorder, m_topBorder, m_bottomBorder;
00057 
00058 signals:
00059     void choosearea(QMouseEvent * _ev);
00060 
00061 };
00062 
00063 #endif /* KOBORDERPREVIEW_H */
00064 

Généré le Wed Nov 22 23:41:07 2006 pour KPlato par  doxygen 1.5.1-p1