QCodeEdit  2.2
qstatuspanel.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 _QSTATUS_PANEL_H_
17 #define _QSTATUS_PANEL_H_
18 
19 #include "qpanel.h"
20 
28 class QLabel;
29 
30 class QDocumentLine;
31 
33 {
34  Q_OBJECT
35 
36  public:
37  Q_PANEL(QStatusPanel, "Status Panel")
38 
39  QStatusPanel(QWidget *p = 0);
40  virtual ~QStatusPanel();
41 
42  virtual QString type() const;
43 
44  protected:
45  virtual void editorChange(QEditor *e);
46  virtual bool paint(QPainter *p, QEditor *e);
47 
48  virtual void mousePressEvent(QMouseEvent *e);
49  virtual void mouseReleaseEvent(QMouseEvent *e);
50 
51  private:
52  int m_conflictSpot;
53 };
54 
55 #endif // _QSTATUS_PANEL_H_