fosKeyMan
Loading...
Searching...
No Matches
src.frontend.hoverinfo.HoverInfo Class Reference

A tooltip dialog that provides detailed information about a table cell when the mouse hovers over it. More...

Inheritance diagram for src.frontend.hoverinfo.HoverInfo:

Public Member Functions

 __init__ (self, table_widget, parent=None)
 Initialize the HoverInfo dialog with the table widget to monitor.
 
 eventFilter (self, source, event)
 Capture mouse hover events and display hover info.
 
 show_hover_info (self, item, pos)
 Show the hover info dialog with details about the cell.
 

Public Attributes

 activate_label = QLabel(self.tr("Activation Status: "))
 
 cell_label = QLabel(self.tr("Cell: "))
 
 table_widget = table_widget
 
 timer = QTimer(self)
 
bool timer_signal_connected = False
 

Detailed Description

A tooltip dialog that provides detailed information about a table cell when the mouse hovers over it.

This class creates a small hover window that displays information such as the cell's content, the activation status of the keyfile, and its status in the database. It is triggered when the mouse hovers over a cell in the associated table widget.

Definition at line 6 of file hoverinfo.py.

Constructor & Destructor Documentation

◆ __init__()

src.frontend.hoverinfo.HoverInfo.__init__ ( self,
table_widget,
parent = None )

Initialize the HoverInfo dialog with the table widget to monitor.

Parameters
table_widget(QTableWidget): The table widget to track mouse hover events on.
parent(QWidget, optional): The parent widget.

Definition at line 14 of file hoverinfo.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ eventFilter()

src.frontend.hoverinfo.HoverInfo.eventFilter ( self,
source,
event )

Capture mouse hover events and display hover info.

This method handles mouse movement over the table widget to determine which cell the mouse is over, and then triggers the tooltip display after a delay.

Parameters
source(QObject): The source widget that the event is coming from (table widget viewport).
event(QEvent): The event being processed (mouse movement).
Returns
(bool): Returns True if the event is handled, otherwise False to pass the event to the base class.

Definition at line 44 of file hoverinfo.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_hover_info()

src.frontend.hoverinfo.HoverInfo.show_hover_info ( self,
item,
pos )

Show the hover info dialog with details about the cell.

Hover info includes the table header name of this column, cell value, activation status, and database status.

Parameters
item(QTableWidgetItem): The table cell item that is being hovered over.
pos(QPoint): The current position of the mouse cursor.

Definition at line 82 of file hoverinfo.py.

Here is the caller graph for this function:

Member Data Documentation

◆ activate_label

src.frontend.hoverinfo.HoverInfo.activate_label = QLabel(self.tr("Activation Status: "))

Definition at line 30 of file hoverinfo.py.

◆ cell_label

src.frontend.hoverinfo.HoverInfo.cell_label = QLabel(self.tr("Cell: "))

Definition at line 27 of file hoverinfo.py.

◆ table_widget

src.frontend.hoverinfo.HoverInfo.table_widget = table_widget

Definition at line 40 of file hoverinfo.py.

◆ timer

src.frontend.hoverinfo.HoverInfo.timer = QTimer(self)

Definition at line 36 of file hoverinfo.py.

◆ timer_signal_connected

bool src.frontend.hoverinfo.HoverInfo.timer_signal_connected = False

Definition at line 37 of file hoverinfo.py.


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