QCodeEdit  2.2
qgotolinepanel.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 _QGOTO_LINE_PANEL_H_
17 #define _QGOTO_LINE_PANEL_H_
18 
19 #include "qpanel.h"
20 
28 #include "ui_gotoline.h"
29 
31 {
32  Q_OBJECT
33 
34  public:
35  Q_PANEL(QGotoLinePanel, "Goto Line Panel")
36 
37  QGotoLinePanel(QWidget *p = 0);
38  virtual ~QGotoLinePanel();
39 
40  virtual QString type() const;
41 
42  public slots:
43 
44 
45  protected:
46  virtual bool forward(QMouseEvent *e);
47  virtual void editorChange(QEditor *e);
48  virtual void showEvent(QShowEvent *e);
49  virtual void keyPressEvent(QKeyEvent *e);
50 
51  private slots:
52  void on_bClose_clicked();
53 
54  void on_bGo_clicked();
55 
56  void on_spLine_valueChanged(int v);
57  void on_slLine_valueChanged(int v);
58 
59  void lineCountChanged(int n);
60  void cursorPositionChanged();
61 };
62 
63 #endif // _QGOTO_LINE_PANEL_H_
#define QCE_EXPORT
Macro needed for cross-platform shared libraries creation.
Definition: qce-config.h:40
A panel that provide inline goto line functionalities.
Definition: qgotolinepanel.h:30
Definition: ui_gotoline.h:101
Definition of the QPanel class.
Helper class for panels displayed by QCodeEdit.
Definition: qpanel.h:40
A text editing widget.
Definition: qeditor.h:55
virtual void editorChange(QEditor *e)
Callback.
Definition: qpanel.cpp:186