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_NUMBER_PANEL_H_ 17 #define _QLINE_NUMBER_PANEL_H_ 18 19 /*! 20 \file qlinenumberpanel.h 21 \brief Definition of the QLineNumberPanel class 22 23 \see QLineNumberPanel 24 */ 25 26 #include "qpanel.h" 27 28 class QCE_EXPORT QLineNumberPanel : public QPanel 29 { 30 Q_OBJECT 31 32 public: 33 Q_PANEL(QLineNumberPanel, "Line Number Panel") 34 35 QLineNumberPanel(QWidget *p = 0); 36 virtual ~QLineNumberPanel(); 37 38 bool isVerboseMode() const; 39 40 virtual QString type() const; 41 42 public slots: 43 void setVerboseMode(bool y); 44 45 protected: 46 virtual void editorChange(QEditor *e); 47 virtual bool paint(QPainter *p, QEditor *e); 48 49 bool m_verbose; 50 }; 51 52 #endif // _QLINE_NUMBER_PANEL_H_ 53 54