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

Signals

void outOfDoc (PyAssignment assignment)
 
void noResultsFound ()
 
- Signals inherited from ito::WordClickMode
void wordClicked (const QTextCursor &cursor)
 

Public Member Functions

 PyGotoAssignmentMode (const QString &description="", QObject *parent=NULL)
 
virtual void onStateChanged (bool state)
 
void setDefaultWordClickMode (int mode)
 
int defaultWordClickMode () const
 
bool mouseClickEnabled () const
 
void setMouseClickEnabled (bool enabled)
 
virtual QList< QAction * > actions () const
 
- Public Member Functions inherited from ito::WordClickMode
 WordClickMode (const QString &name="WordClickMode", const QString &description="", QObject *parent=NULL)
 
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
 

Protected Member Functions

void doGoto (const PyAssignment &assignment)
 
virtual void checkWordCursor (const QTextCursor &cursor)
 
void checkWordCursorWithMode (const QTextCursor &cursor, int mode)
 
QList< PyAssignmentunique (const QList< PyAssignment > &assignments) const
 
virtual void clearSelection ()
 
void performGoto (const QList< PyAssignment > &assignments)
 
void timerEvent (QTimerEvent *event) override
 
- Protected Member Functions inherited from ito::WordClickMode
void selectWordCursor ()
 
void addDecoration (const QTextCursor &cursor)
 
void removeDecoration ()
 

Private Slots

void requestGotoDefinition ()
 
void requestGotoAssignment ()
 
void requestGotoAssignmentEx ()
 
void onJediAssignmentResultsAvailable (QVector< ito::JediAssignment > assignments)
 
void onWordClicked (const QTextCursor &cursor)
 
void onKeyReleasedGoto (QKeyEvent *e)
 

Private Attributes

QObject * m_pPythonEngine
 
bool m_gotoRequested
 
int m_gotoRequestedTimerId
 
QList< PyAssignmentm_assignments
 
QAction * m_pActionGotoDefinition
 
QAction * m_pActionGotoAssignment
 
QAction * m_pActionGotoAssignmentExtended
 
int m_defaultMode
 
bool m_mouseClickEnabled
 

Static Private Attributes

static const int gotoRequestedTimeoutMs = 3000
 

Additional Inherited Members

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

Member Function Documentation

◆ actions()

QList< QAction * > ito::PyGotoAssignmentMode::actions ( ) const
virtual

Reimplemented from ito::Mode.

◆ checkWordCursor()

void ito::PyGotoAssignmentMode::checkWordCursor ( const QTextCursor & cursor)
protectedvirtual

Implements ito::WordClickMode.

◆ clearSelection()

void ito::PyGotoAssignmentMode::clearSelection ( )
protectedvirtual

Reimplemented from ito::WordClickMode.

◆ onStateChanged()

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

Reimplemented from ito::WordClickMode.


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