LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::ItemDetailsView Class Reference

#include <ItemDetailsView.hpp>

Inheritance diagram for ui::qt::ItemDetailsView:
Inheritance graph
Collaboration diagram for ui::qt::ItemDetailsView:
Collaboration graph

Public Slots

void OnActualRowChanged (int actualRow)
 

Public Member Functions

 ItemDetailsView (db::EventsContainer &events, QWidget *parent=nullptr)
 
void RefreshView () override
 Refreshes the details view content.
 
void ShowControl (bool show) override
 Show or hide the panel's visual control.
 
void OnDataUpdated () override
 Called when the model's data is updated.
 
void OnCurrentIndexUpdated (const int index) override
 Called when the current item index in the model is updated.
 
virtual void OnAttachedToModel (class IModelObservable *)
 Called when the view is attached to a model.
 
virtual void OnDetachedFromModel ()
 Called when the view is detached from a model.
 

Private Member Functions

void DisplayEvent (int actualRow)
 
void ShowCurrentEvent ()
 Shows the container's current event (or nothing).
 

Private Attributes

db::EventsContainer & m_events
 
QTableWidget * m_details {nullptr}
 
int m_currentlyDisplayedRow {-1}
 

Constructor & Destructor Documentation

◆ ItemDetailsView()

ui::qt::ItemDetailsView::ItemDetailsView ( db::EventsContainer &  events,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ DisplayEvent()

void ui::qt::ItemDetailsView::DisplayEvent ( int  actualRow)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnActualRowChanged

void ui::qt::ItemDetailsView::OnActualRowChanged ( int  actualRow)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnAttachedToModel()

virtual void mvc::IView::OnAttachedToModel ( class IModelObservable *  )
inlinevirtualinherited

Called when the view is attached to a model.

This method is called after the view is registered with a model. Views can use this to initialize model-specific state.

Parameters
modelThe model the view was attached to (optional)

◆ OnCurrentIndexUpdated()

void ui::qt::ItemDetailsView::OnCurrentIndexUpdated ( const int  index)
overridevirtual

Called when the current item index in the model is updated.

This method should be implemented to update the view based on the new current item index.

Parameters
indexThe new current item index in the model

Implements mvc::IView.

Here is the call graph for this function:

◆ OnDataUpdated()

void ui::qt::ItemDetailsView::OnDataUpdated ( )
overridevirtual

Called when the model's data is updated.

This method should be implemented to refresh the view with the latest data from the model.

Implements mvc::IView.

Here is the call graph for this function:

◆ OnDetachedFromModel()

virtual void mvc::IView::OnDetachedFromModel ( )
inlinevirtualinherited

Called when the view is detached from a model.

This method is called when the view is unregistered from a model. Views can use this to clean up model-specific state.

◆ RefreshView()

void ui::qt::ItemDetailsView::RefreshView ( )
overridevirtual

Refreshes the details view content.

Implements ui::IEventDetailsView.

Here is the call graph for this function:

◆ ShowControl()

void ui::qt::ItemDetailsView::ShowControl ( bool  show)
overridevirtual

Show or hide the panel's visual control.

Implements ui::IItemDetailsView.

◆ ShowCurrentEvent()

void ui::qt::ItemDetailsView::ShowCurrentEvent ( )
private

Shows the container's current event (or nothing).

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

Member Data Documentation

◆ m_currentlyDisplayedRow

int ui::qt::ItemDetailsView::m_currentlyDisplayedRow {-1}
private

◆ m_details

QTableWidget* ui::qt::ItemDetailsView::m_details {nullptr}
private

◆ m_events

db::EventsContainer& ui::qt::ItemDetailsView::m_events
private

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