QCodeEdit  2.2
Public Member Functions | List of all members
QPanel Class Referenceabstract

Helper class for panels displayed by QCodeEdit. More...

Inheritance diagram for QPanel:
Inheritance graph
[legend]

Public Member Functions

virtual QString id () const =0
 
virtual QString type () 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 QPanelpanel (const QString &id, QWidget *p=0)
 
static void registerCreator (QPanelCreator *c)
 
virtual bool forward (QMouseEvent *e)
 
virtual void editorChange (QEditor *e)
 Callback. More...
 
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)
 
virtual bool paint (QPainter *p, QEditor *e)
 

Detailed Description

Helper class for panels displayed by QCodeEdit.

Constructor & Destructor Documentation

◆ QPanel()

QPanel::QPanel ( QWidget p = 0)

Constructor.

If the parent is a text editor, it is automatically connected to the panel

References attach().

Member Function Documentation

◆ editor()

QEditor * QPanel::editor ( )

◆ editorChange()

void QPanel::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 in QSearchReplacePanel, QGotoLinePanel, QLineNumberPanel, and QStatusPanel.

Referenced by attach().


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