itom
Loading...
Searching...
No Matches
ito::OutlineSelectorWidget Class Reference

framless dialog, shown as popup over a script editor, to display the outline. More...

#include <outlineSelectorWidget.h>

Inheritance diagram for ito::OutlineSelectorWidget:

Classes

struct  EditorOutline
 

Public Member Functions

 OutlineSelectorWidget (const QList< EditorOutline > &outlines, int currentOutlineIndex, ScriptDockWidget *scriptDockWidget, QWidget *parent=nullptr)
 

Protected Types

enum  Scope { AllScripts , SingleScript }
 

Protected Member Functions

void setDialogPosition ()
 
void fillContent ()
 
QList< QTreeWidgetItem * > parseTree (const QString &filename, int editorUID, const QSharedPointer< OutlineItem > &root) const
 
bool filterItemRec (QTreeWidgetItem *root, const QString &text)
 
QString renderTooltipText (const QSharedPointer< OutlineItem > &item) const
 
QString argsWordWrap (QString argText, int maxLineLength) const
 < wraps the arguments text of a signature with a maximum line length
 
bool selectFirstVisibleChild (QTreeWidgetItem *parent)
 
void keyReleaseEvent (QKeyEvent *ev)
 
void keyPressEvent (QKeyEvent *ev)
 
void focusOutEvent (QFocusEvent *ev)
 
bool eventFilter (QObject *obj, QEvent *ev)
 

Private Slots

void filterTextChanged (const QString &text)
 
void itemActivated (QTreeWidgetItem *item, int column)
 
void actSort (bool triggered)
 
void actScopeChanged (bool triggered)
 

Private Attributes

ScriptDockWidgetm_pScriptDockWidget
 
QTreeWidget * m_pTreeWidget
 
QLineEdit * m_pLineEdit
 
Scope m_currentScope
 
QList< EditorOutlinem_outlines
 
int m_currentOutlineIndex
 
bool m_sortItems
 
QAction * m_actScopeChange
 

Detailed Description

framless dialog, shown as popup over a script editor, to display the outline.


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