itom  4.1.0
ito::FoldingPanel Class Reference
Inheritance diagram for ito::FoldingPanel:
ito::Panel ito::Mode

Signals

void triggerStateChanged (QTextBlock, bool)
 
void collapseAllTriggered ()
 
void expandAllTriggered ()
 

Public Member Functions

 FoldingPanel (bool highlightCaretScope=false, const QString &description="", QWidget *parent=NULL)
 
bool nativeLook () const
 
void setNativeLook (bool native)
 
QStringList customIndicatorIcons () const
 
void setCustomIndicatorIcons (const QStringList &icons)
 
QColor customFoldRegionBackground () const
 
void setCustomFoldRegionBackground (const QColor &color)
 
bool highlightCaretScope () const
 
void setHighlightCaretScope (bool value)
 
virtual void onInstall (CodeEditor *editor)
 
virtual void onStateChanged (bool state)
 
virtual QSize sizeHint () const
 
void collapseAll ()
 
void expandAll ()
 
void toggleFold (bool topLevelOnly)
 
void toggleFoldTrigger (const QTextBlock &block, bool refreshEditor=true)
 
void refreshDecorations (bool force=false)
 
- Public Member Functions inherited from ito::Panel
 Panel (const QString &name, bool dynamic, const QString &description="", QWidget *parent=NULL)
 
void setVisible (bool visible)
 
bool scrollable () const
 
void setScrollable (bool value)
 
int orderInZone () const
 
void setOrderInZone (int orderInZone)
 
Position position () const
 
void setPosition (Position pos)
 
QBrush backgroundBrush () const
 
QPen foregroundPen () const
 
- 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 onUninstall ()
 
QString name () const
 
bool enabled () const
 
void setEnabled (bool enabled)
 
CodeEditoreditor () const
 
bool onClose () const
 
virtual QList< QAction * > actions () const
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void leaveEvent (QEvent *e)
 
void drawFoldRegionBackground (const QTextBlock &block, QPainter &painter) const
 
void drawRect (const QRectF &rect, QPainter &painter) const
 
void drawFoldIndicator (int top, bool mouseOver, bool collapsed, QPainter *painter) const
 
void addFoldDecoration (const QTextBlock &block, const FoldScope &region)
 
void addScopeDecorations (const QTextBlock &block, int start, int end)
 
QColor getScopeHighlightColor () const
 
void clearScopeDecos ()
 
void addScopeDeco (int start, int end, int parentStart, int parentEnd, const QColor &baseColor, int factor)
 
void refreshEditorAndScrollbars ()
 
void highlightSurroundingScopes (QTextBlock block)
 

Static Protected Member Functions

static QColor getSystemBckColor ()
 
static void showPreviousBlankLines (const QTextBlock &block)
 
static QTextBlock findParentScope (const QTextBlock &block)
 

Private Slots

void clearBlockDeco ()
 
void highlightCaretScopeSlot ()
 
void onFoldDecoClicked (TextDecoration::Ptr deco)
 
void onKeyPressed (QKeyEvent *e)
 

Private Attributes

bool m_native
 
QStringList m_customIndicators
 
FoldScope m_currentScope
 
QColor m_customColor
 
bool m_highlightCaret
 
bool m_highlightCaretScope
 
int m_blockNbr
 
int m_indicSize
 
QList< TextDecoration::Ptr > m_scopeDecos
 
QList< TextDecoration::Ptr > m_blockDecos
 
int m_mouseOverLine
 
DelayJobRunnerBasem_pHighlightRunner
 
QTextCursor m_prevCursor
 

Additional Inherited Members

- Public Types inherited from ito::Panel
enum  Position {
  Top = 0, Left = 1, Right = 2, Bottom = 3,
  Floating = 4
}
 
typedef QSharedPointer< PanelPtr
 
- Public Types inherited from ito::Mode
typedef QSharedPointer< ModePtr
 

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