QCodeEdit  2.2
List of all members
QGotoLinePanel Class Reference

A panel that provide inline goto line functionalities. More...

Inheritance diagram for QGotoLinePanel:
Inheritance graph
[legend]
 QGotoLinePanel (QWidget *p=0)
 Constructor.
 
virtual ~QGotoLinePanel ()
 Empty destructor.
 
virtual QString type () const
 
virtual bool forward (QMouseEvent *e)
 
virtual void editorChange (QEditor *e)
 Callback. More...
 
virtual void showEvent (QShowEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e)
 

Additional Inherited Members

- Public Member Functions inherited from QPanel
virtual QString id () const =0
 
 QPanel (QWidget *p=0)
 Constructor. More...
 
virtual ~QPanel ()
 Destructor.
 
QEditoreditor ()
 
void attach (QEditor *e)
 Connect the panel to a text editor.
 
virtual bool shallShow () const
 
bool defaultVisibility () const
 
void setDefaultVisibility (bool on)
 
- Static Public Member Functions inherited from QPanel
static QPanelpanel (const QString &id, QWidget *p=0)
 
static void registerCreator (QPanelCreator *c)
 
- Protected Member Functions inherited from QPanel
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void hideEvent (QHideEvent *e)
 
virtual void paintEvent (QPaintEvent *e)
 
virtual bool paint (QPainter *p, QEditor *e)
 

Detailed Description

A panel that provide inline goto line functionalities.

Member Function Documentation

◆ editorChange()

void QGotoLinePanel::editorChange ( QEditor e)
protectedvirtual

Callback.

Each time attach() is called, this function is called as well so that the panel can fine tune its behaviour according to the editor monitored.

Note
the Default implementation does nothing...

Reimplemented from QPanel.

References QEditor::cursor(), QEditor::document(), QPanel::editor(), QDocument::lineCount(), and QDocumentCursor::lineNumber().

◆ type()

QString QGotoLinePanel::type ( ) const
virtual

Implements QPanel.


The documentation for this class was generated from the following files: