eye.widgets.locationlist module¶
Location list widget
A location is a file path and an optional line number. Locations are typically used for directory-wide search results (like with grep), or for compile errors/warnings messages, since a location can be accompanied with various attributes, like a message or a search snippet.
- class eye.widgets.locationlist.LocationList(**kwargs)[source]¶
Bases:
QTreeView
,WidgetMixin
Location list widget
A location is a file path, an optional line number, and various optional attributes. A location list widgets displays clickable locations coming from a search, or a compilation.
- activateNext()[source]¶
Select and activate next item
If an item is selected in this LocationList, selects the next item and activates it. If no item was currently select, uses the first element.
This slot has signature
activateNext()
.
- activatePrevious()[source]¶
Select and activate previous item
If an item is selected in this LocationList, selects the previous item and activates it. If no item was currently select, uses the last element.
This slot has signature
activatePrevious()
.
- locationActivated = Signal(str, object)¶
Signal locationActivated(path, line)
- Parameters:
path (str) – the path of the activated location
line (int or None) – the file line number of the activated location