populse_mia 3.0.0-dev+85ba6670 documentation

populse_mia.user_interface.data_browser.rapid_search

Contents

populse_mia.user_interface.data_browser.rapid_search¶

Rapid Search Widget Module

This module provides the RapidSearch widget, a specialized QLineEdit component for performing quick searches across visualized tags in the data browser table.

The RapidSearch widget enables users to filter DataBrowser using various search patterns and wildcards. It supports searching for specific text patterns as well as finding entries with undefined or missing values.

Contains:
Class:
  • RapidSearch

Classes

RapidSearch(databrowser)

Widget for pattern searching in table data across visualized tags.

class populse_mia.user_interface.data_browser.rapid_search.QLineEdit(parent: QWidget | None = None)¶
class populse_mia.user_interface.data_browser.rapid_search.QLineEdit(contents: str | None, parent: QWidget | None = None)

Bases: QWidget

class ActionPosition¶

Bases: int

class EchoMode¶

Bases: int

LeadingPosition = 0¶
NoEcho = 1¶
Normal = 0¶
Password = 2¶
PasswordEchoOnEdit = 3¶
TrailingPosition = 1¶
addAction(self, action: QAction | None)¶
addAction(self, action: QAction | None, position: QLineEdit.ActionPosition) → None
addAction(self, icon: QIcon, position: QLineEdit.ActionPosition) → QAction | None
alignment(self) → Qt.Alignment¶
backspace(self)¶
changeEvent(self, a0: QEvent | None)¶
clear(self)¶
completer(self) → QCompleter | None¶
contextMenuEvent(self, a0: QContextMenuEvent | None)¶
copy(self)¶
createStandardContextMenu(self) → QMenu | None¶
cursorBackward(self, mark: bool, steps: int = 1)¶
cursorForward(self, mark: bool, steps: int = 1)¶
cursorMoveStyle(self) → Qt.CursorMoveStyle¶
cursorPosition(self) → int¶
cursorPositionAt(self, pos: QPoint) → int¶
cursorPositionChanged¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

cursorRect(self) → QRect¶
cursorWordBackward(self, mark: bool)¶
cursorWordForward(self, mark: bool)¶
cut(self)¶
del_(self)¶
deselect(self)¶
displayText(self) → str¶
dragEnabled(self) → bool¶
dragEnterEvent(self, a0: QDragEnterEvent | None)¶
dragLeaveEvent(self, e: QDragLeaveEvent | None)¶
dragMoveEvent(self, e: QDragMoveEvent | None)¶
dropEvent(self, a0: QDropEvent | None)¶
echoMode(self) → QLineEdit.EchoMode¶
editingFinished¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

end(self, mark: bool)¶
event(self, a0: QEvent | None) → bool¶
focusInEvent(self, a0: QFocusEvent | None)¶
focusOutEvent(self, a0: QFocusEvent | None)¶
getTextMargins(self)¶
hasAcceptableInput(self) → bool¶
hasFrame(self) → bool¶
hasSelectedText(self) → bool¶
home(self, mark: bool)¶
initStyleOption(self, option: QStyleOptionFrame | None)¶
inputMask(self) → str¶
inputMethodEvent(self, a0: QInputMethodEvent | None)¶
inputMethodQuery(self, a0: Qt.InputMethodQuery) → Any¶
inputMethodQuery(self, property: Qt.InputMethodQuery, argument: Any) → Any
inputRejected¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

insert(self, a0: str | None)¶
isClearButtonEnabled(self) → bool¶
isModified(self) → bool¶
isReadOnly(self) → bool¶
isRedoAvailable(self) → bool¶
isUndoAvailable(self) → bool¶
keyPressEvent(self, a0: QKeyEvent | None)¶
maxLength(self) → int¶
minimumSizeHint(self) → QSize¶
mouseDoubleClickEvent(self, a0: QMouseEvent | None)¶
mouseMoveEvent(self, a0: QMouseEvent | None)¶
mousePressEvent(self, a0: QMouseEvent | None)¶
mouseReleaseEvent(self, a0: QMouseEvent | None)¶
paintEvent(self, a0: QPaintEvent | None)¶
paste(self)¶
placeholderText(self) → str¶
redo(self)¶
returnPressed¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

selectAll(self)¶
selectedText(self) → str¶
selectionChanged¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

selectionEnd(self) → int¶
selectionLength(self) → int¶
selectionStart(self) → int¶
setAlignment(self, flag: Qt.Alignment | Qt.AlignmentFlag)¶
setClearButtonEnabled(self, enable: bool)¶
setCompleter(self, completer: QCompleter | None)¶
setCursorMoveStyle(self, style: Qt.CursorMoveStyle)¶
setCursorPosition(self, a0: int)¶
setDragEnabled(self, b: bool)¶
setEchoMode(self, a0: QLineEdit.EchoMode)¶
setFrame(self, a0: bool)¶
setInputMask(self, inputMask: str | None)¶
setMaxLength(self, a0: int)¶
setModified(self, a0: bool)¶
setPlaceholderText(self, a0: str | None)¶
setReadOnly(self, a0: bool)¶
setSelection(self, a0: int, a1: int)¶
setText(self, a0: str | None)¶
setTextMargins(self, left: int, top: int, right: int, bottom: int)¶
setTextMargins(self, margins: QMargins) → None
setValidator(self, a0: QValidator | None)¶
sizeHint(self) → QSize¶
text(self) → str¶
textChanged¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

textEdited¶

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

textMargins(self) → QMargins¶
undo(self)¶
validator(self) → QValidator | None¶
class populse_mia.user_interface.data_browser.rapid_search.RapidSearch(databrowser)[source]¶

Bases: QLineEdit

Widget for pattern searching in table data across visualized tags.

Supports special search syntax: - ‘%’: Wildcard for any string - ‘_’: Wildcard for any single character - ‘Not Defined’: Matches scans with missing values

Dates should be formatted as: yyyy-mm-dd hh:mm:ss.fff

__init__(databrowser)[source]¶

Initialize the RapidSearch widget.

Parameters:

databrowser – Parent data browser widget

prepare_not_defined_filter(tags)[source]¶

Create a filter for finding entries with undefined values.

Parameters:

(list) (tags) – List of tags to check for null values

Return (str):

QL-like filter expression for finding null values

static prepare_filter(search, tags, scans)[source]¶

Create a filter for searching text across specified tags.

Parameters:
  • (str) (search) – Search pattern to look for

  • (list) (scans) – List of tags to search within

  • (list) – List of scans to restrict the search to

Return (str):

SQL-like filter expression for the search

Contents

© Copyright 2022, populse. Created using Sphinx 7.3.7.