QCodeEdit
2.2
|
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr> 00004 ** 00005 ** This file is part of the Edyuk project <http://edyuk.org> 00006 ** 00007 ** This file may be used under the terms of the GNU General Public License 00008 ** version 3 as published by the Free Software Foundation and appearing in the 00009 ** file GPL.txt included in the packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 ****************************************************************************/ 00015 00016 #ifndef _QGOTO_LINE_PANEL_H_ 00017 #define _QGOTO_LINE_PANEL_H_ 00018 00019 #include "qpanel.h" 00020 00028 #include "ui_gotoline.h" 00029 00030 class QCE_EXPORT QGotoLinePanel : public QPanel, private Ui::GotoLine 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 Q_PANEL(QGotoLinePanel, "Goto Line Panel") 00036 00037 QGotoLinePanel(QWidget *p = 0); 00038 virtual ~QGotoLinePanel(); 00039 00040 virtual QString type() const; 00041 00042 public slots: 00043 00044 00045 protected: 00046 virtual bool forward(QMouseEvent *e); 00047 virtual void editorChange(QEditor *e); 00048 virtual void showEvent(QShowEvent *e); 00049 virtual void keyPressEvent(QKeyEvent *e); 00050 00051 private slots: 00052 void on_bClose_clicked(); 00053 00054 void on_bGo_clicked(); 00055 00056 void on_spLine_valueChanged(int v); 00057 void on_slLine_valueChanged(int v); 00058 00059 void lineCountChanged(int n); 00060 void cursorPositionChanged(); 00061 }; 00062 00063 #endif // _QGOTO_LINE_PANEL_H_