4.43. umbra.ui.views

views.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the Application Views classes.

Others:

4.43.1. Module Attributes

umbra.ui.views.LOGGER

4.43.2. Functions

umbra.ui.views.getNodes(view)[source]

This method returns the given View nodes.

Parameters:view – View. ( QWidget )
Returns:View nodes. ( List )
umbra.ui.views.filterNodes(view, pattern, attribute, flags=2)[source]

This method filters the given View nodes on given attribute using given pattern.

Parameters:
  • view – View. ( QWidget )
  • pattern – Filtering pattern. ( String )
  • attribute – Filtering attribute. ( String )
  • flags – Regex filtering flags. ( Integer )
Returns:

View filtered nodes. ( List )

umbra.ui.views.getViewNodesFromIndexes(view, *indexes)[source]

This method returns the given View nodes from given indexes.

Parameters:
  • view – View. ( QWidget )
  • *indexes – Indexes. ( List )
Returns:

View nodes. ( Dictionary )

umbra.ui.views.getViewSelectedNodes(view)[source]

This method returns the given View selected nodes.

Parameters:view – View. ( QWidget )
Returns:View selected nodes. ( Dictionary )
umbra.ui.views.selectViewIndexes(view, indexes, flags=<PyQt4.QtGui.SelectionFlags object at 0x10683e830>)[source]

This method selects given view indexes.

Parameters:
  • view – View. ( QWidget )
  • indexes – Indexes to select. ( List )
  • flags – Selection flags. ( QItemSelectionModel.SelectionFlags )
Returns:

Definition success. ( Boolean )

4.43.3. Classes

class umbra.ui.views.ReadOnlyFilter[source]

Bases: PyQt4.QtCore.QObject

This class is a QObject subclass used as an event filter for the Abstract_QListView and Abstract_QTreeView classes.

eventFilter(object, event)[source]

This method reimplements the QObject.eventFilter method.

Parameters:
  • object – Object. ( QObject )
  • event – Event. ( QEvent )
Returns:

Event filtered. ( Boolean )

class umbra.ui.views.Abstract_QListView(parent=None, readOnly=False)[source]

Bases: PyQt4.QtGui.QListView

This class is a QListView subclass used as base by others Application views classes.

Parameters:
  • parent – Object parent. ( QObject )
  • readOnly – View is read only. ( Boolean )
readOnly[source]

This method is the property for self.__readOnly attribute.

Returns:self.__readOnly. ( Boolean )
getNodes()[source]

This method returns the View nodes.

Returns:View nodes. ( List )
filterNodes(pattern, attribute, flags=2)[source]

This method filters the View nodes on given attribute using given pattern.

Parameters:
  • pattern – Filtering pattern. ( String )
  • attribute – Filtering attribute. ( String )
  • flags – Regex filtering flags. ( Integer )
Returns:

View filtered nodes. ( List )

getSelectedNodes()[source]

This method returns the View selected nodes.

Returns:View selected nodes. ( Dictionary )
selectIndexes(indexes, flags=<PyQt4.QtGui.SelectionFlags object at 0x10683ea60>)[source]

This method selects given indexes.

Parameters:
  • indexes – Indexes to select. ( List )
  • flags – Selection flags. ( QItemSelectionModel.SelectionFlags )
Returns:

Method success. ( Boolean )

class umbra.ui.views.Abstract_QTreeView(parent=None, readOnly=False)[source]

Bases: PyQt4.QtGui.QTreeView

This class is a QTreeView subclass used as base by others Application views classes.

Parameters:
  • parent – Object parent. ( QObject )
  • readOnly – View is read only. ( Boolean )
readOnly[source]

This method is the property for self.__readOnly attribute.

Returns:self.__readOnly. ( Boolean )
getNodes()[source]

This method returns the View nodes.

Returns:View nodes. ( List )
filterNodes(pattern, attribute, flags=2)[source]

This method filters the View nodes on given attribute using given pattern.

Parameters:
  • pattern – Filtering pattern. ( String )
  • attribute – Filtering attribute. ( String )
  • flags – Regex filtering flags. ( Integer )
Returns:

View filtered nodes. ( List )

getSelectedNodes()[source]

This method returns the View selected nodes.

Returns:View selected nodes. ( Dictionary )
selectIndexes(indexes, flags=<PyQt4.QtGui.SelectionFlags object at 0x10683ead0>)[source]

This method selects given indexes.

Parameters:
  • indexes – Indexes to select. ( List )
  • flags – Selection flags. ( QItemSelectionModel.SelectionFlags )
Returns:

Method success. ( Boolean )

Table Of Contents

Previous topic

4.42. umbra.ui.themes

Next topic

4.44. umbra.ui.visualAccelerators

This Page