itom  4.1.0
ito::OccurrencesHighlighterMode Class Reference
Inheritance diagram for ito::OccurrencesHighlighterMode:
ito::Mode

Public Member Functions

 OccurrencesHighlighterMode (const QString &description="", QObject *parent=NULL)
 
QColor background () const
 
void setBackground (const QColor &color)
 
QColor foreground () const
 
void setForeground (const QColor &color)
 
int delay () const
 
void setDelay (int delay)
 
bool underlined () const
 
void setUnderlined (bool value)
 
bool caseSensitive () const
 
void setCaseSensitive (bool value)
 
bool wholeWord () const
 
void setWholeWord (bool value)
 
bool selectOnDoubleClick () const
 
void setSelectOnDoubleClick (bool value)
 
virtual void onStateChanged (bool state)
 
- 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 Types

typedef QList< QPair< int, int > > MatchesList
 

Protected Member Functions

void clearDecorations ()
 
MatchesList findAll (const QString &text, const QString &sub, bool wholeWord, bool caseSensitive)
 

Protected Attributes

QColor m_background
 
QColor m_foreground
 
bool m_underlined
 
bool m_caseSensitive
 
QString m_sub
 
bool m_wholeWord
 
bool m_selectOnDoubleClick
 
QList< TextDecoration::Ptr > m_decorations
 
QFutureWatcher< MatchesList > m_asyncFindAllWatcher
 
DelayJobRunnerBasem_pTimer
 

Private Slots

void requestHighlightPosChanged ()
 
void requestHighlightDoubleClick ()
 
void requestHighlight ()
 
void sendRequest ()
 
void onResultsAvailable (QList< QPair< int, int > > results)
 
void asyncFindAllWatcherFinished ()
 

Additional Inherited Members

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

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