itom
Loading...
Searching...
No Matches
ito::WordClickMode Class Referenceabstract
Inheritance diagram for ito::WordClickMode:
ito::Mode ito::PyGotoAssignmentMode

Signals

void wordClicked (const QTextCursor &cursor)
 

Public Member Functions

 WordClickMode (const QString &name="WordClickMode", const QString &description="", QObject *parent=NULL)
 
virtual void onStateChanged (bool state)
 
Qt::KeyboardModifiers wordClickModifiers () const
 
void setWordClickModifiers (Qt::KeyboardModifiers modifiers)
 
- Public Member Functions inherited from ito::Mode
 Mode (const Mode &copy)
 
 Mode (const QString &name, const QString &description="")
 
bool operator== (const Mode &other) const
 
virtual void onInstall (CodeEditor *editor)
 
virtual void onUninstall ()
 
QString name () const
 
bool enabled () const
 
void setEnabled (bool enabled)
 
CodeEditoreditor () const
 
bool onClose () const
 
virtual QList< QAction * > actions () const
 

Protected Member Functions

void selectWordCursor ()
 
virtual void clearSelection ()
 
virtual void checkWordCursor (const QTextCursor &cursor)=0
 
void addDecoration (const QTextCursor &cursor)
 
void removeDecoration ()
 

Private Slots

void onMouseDoubleClicked (QMouseEvent *e)
 
void onMouseMoved (QMouseEvent *e)
 
void onMouseReleased (QMouseEvent *e)
 
void onKeyReleased (QKeyEvent *e)
 

Private Member Functions

void emitWordClicked (QTextCursor cursor)
 

Private Attributes

int m_previousCursorStart
 
int m_previousCursorEnd
 
DelayJobRunnerBasem_pTimer
 
TextDecoration::Ptr m_deco
 
QTextCursor m_cursor
 
Qt::KeyboardModifiers m_mouseMoveKeyboardModifiers
 

Additional Inherited Members

- Public Types inherited from ito::Mode
typedef QSharedPointer< ModePtr
 

Member Function Documentation

◆ onStateChanged()

void ito::WordClickMode::onStateChanged ( bool state)
virtual

Reimplemented from ito::Mode.


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