QCodeEdit  2.2
qfoldpanel.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr>
4 **
5 ** This file is part of the Edyuk project <http://edyuk.org>
6 **
7 ** This file may be used under the terms of the GNU General Public License
8 ** version 3 as published by the Free Software Foundation and appearing in the
9 ** file GPL.txt included in the packaging of this file.
10 **
11 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 **
14 ****************************************************************************/
15 
16 #ifndef _QFOLD_PANEL_H_
17 #define _QFOLD_PANEL_H_
18 
19 #include "qpanel.h"
20 
28 class QDocumentLine;
29 
31 {
32  Q_OBJECT
33 
34  public:
35  Q_PANEL(QFoldPanel, "Fold Panel")
36 
37  QFoldPanel(QWidget *p = 0);
38  virtual ~QFoldPanel();
39 
40  virtual QString type() const;
41 
42  protected:
43  virtual void mousePressEvent(QMouseEvent *e);
44  virtual bool paint(QPainter *p, QEditor *e);
45 
46  QRect drawIcon( QPainter *p, QEditor *e,
47  int x, int y, bool expand);
48 
49  private:
50  QList<QRect> m_rects;
51  QList<int> m_lines;
52 };
53 
54 #endif // _QFOLD_PANEL_H_