language/duchain
KDevelop::UsesWidget::UsesWidgetCollector Struct Reference
This class can be overridden to do additional processing while the uses-widget shows the uses. More...
#include <useswidget.h>

Public Member Functions | |
| UsesWidgetCollector (IndexedDeclaration decl) | |
| virtual void | maximumProgress (uint max) |
| virtual void | processUses (KDevelop::ReferencedTopDUContext topContext) |
| virtual void | progress (uint processed, uint total) |
| void | setWidget (UsesWidget *widget) |
Public Attributes | |
| UsesWidget * | m_widget |
Detailed Description
This class can be overridden to do additional processing while the uses-widget shows the uses.
Definition at line 133 of file useswidget.h.
Member Function Documentation
| void UsesWidget::UsesWidgetCollector::maximumProgress | ( | uint | max | ) | [virtual] |
Indicates the maximum progress this collector can make.
If zero is given, this collector is not going to do any progress, and progress(..) is never called.
Reimplemented from KDevelop::UsesCollector.
Definition at line 529 of file useswidget.cpp.
| void UsesWidget::UsesWidgetCollector::processUses | ( | KDevelop::ReferencedTopDUContext | topContext | ) | [virtual] |
Called with every top-context that can contain uses of the declaration, or if setProcessDeclarations(false) has not been called also with all contexts that contain declarations used as base for the search.
Override this to do your custom processing. You do not need to recurse into imports, that's done for you. The duchain is not locked when this is called.
Implements KDevelop::UsesCollector.
Definition at line 555 of file useswidget.cpp.
| void UsesWidget::UsesWidgetCollector::progress | ( | uint | processed, | |
| uint | max | |||
| ) | [virtual] |
Called whenever progress has been made. max equals the value given initially by maximumProgress.
Reimplemented from KDevelop::UsesCollector.
Definition at line 539 of file useswidget.cpp.
The documentation for this struct was generated from the following files:
KDE 4.4 API Reference