QCodeEdit  2.2
qlinemarkpanel.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 _QLINE_MARK_PANEL_H_
17 #define _QLINE_MARK_PANEL_H_
18 
26 #include "qpanel.h"
27 
28 #include <QHash>
29 #include <QIcon>
30 
31 class QDocumentLine;
32 
34 {
35  Q_OBJECT
36 
37  public:
38  Q_PANEL(QLineMarkPanel, "Line Mark Panel")
39 
40  QLineMarkPanel(QWidget *p = 0);
41  virtual ~QLineMarkPanel();
42 
43  virtual QString type() const;
44 
45  protected:
46  virtual bool paint(QPainter *p, QEditor *e);
47  virtual void mousePressEvent(QMouseEvent *e);
48  virtual void mouseReleaseEvent(QMouseEvent *e);
49  virtual void contextMenuEvent(QContextMenuEvent *e);
50 
51  private:
52  QList<QRect> m_rects;
53  QList<int> m_lines;
54 };
55 
56 #endif // _QLINE_MARK_PANEL_H_
57