QCodeEdit  2.2
Protected Attributes | List of all members
QLineNumberPanel Class Reference

A specific panel in charge of drawing line numbers of an editor. More...

Inheritance diagram for QLineNumberPanel:
Inheritance graph
[legend]

Protected Attributes

bool m_verbose
 
 QLineNumberPanel (QWidget *p=0)
 Constructor.
 
virtual ~QLineNumberPanel ()
 Empty destructor.
 
bool isVerboseMode () const
 
virtual QString type () const
 
void setVerboseMode (bool y)
 
virtual void editorChange (QEditor *e)
 
virtual bool paint (QPainter *p, QEditor *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 bool forward (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void showEvent (QShowEvent *e)
 
virtual void hideEvent (QHideEvent *e)
 
virtual void paintEvent (QPaintEvent *e)
 

Detailed Description

A specific panel in charge of drawing line numbers of an editor.

Member Function Documentation

◆ editorChange()

void QLineNumberPanel::editorChange ( QEditor e)
protectedvirtual

Reimplemented from QPanel.

References QEditor::document(), QPanel::editor(), and QDocument::lines().

◆ isVerboseMode()

bool QLineNumberPanel::isVerboseMode ( ) const

◆ paint()

bool QLineNumberPanel::paint ( QPainter *  p,
QEditor e 
)
protectedvirtual

Reimplemented from QPanel.

◆ setVerboseMode

void QLineNumberPanel::setVerboseMode ( bool  y)
slot

◆ type()

QString QLineNumberPanel::type ( ) const
virtual

Implements QPanel.


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