|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Interface for view components in the MVC architecture. More...
#include <IView.hpp>


Public Member Functions | |
| IView () | |
| Default constructor. | |
| virtual | ~IView () |
| Default destructor. | |
| virtual void | OnDataUpdated ()=0 |
| Called when the model's data is updated. | |
| virtual void | OnCurrentIndexUpdated (const int index)=0 |
| 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. | |
Interface for view components in the MVC architecture.
This interface defines the methods that any view component must implement to receive updates from the model. It allows the model to notify views about data changes and current index updates.
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
Ensures proper cleanup of resources when the view is destroyed.
|
inlinevirtual |
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.
| model | The model the view was attached to (optional) |
|
pure virtual |
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.
| index | The new current item index in the model |
Implemented in ui::qt::EventsTableView, ui::qt::ItemDetailsView, and ui::qt::SignalPlotPanel.
|
pure virtual |
Called when the model's data is updated.
This method should be implemented to refresh the view with the latest data from the model.
Implemented in ui::qt::EventsTableView, ui::qt::ItemDetailsView, and ui::qt::SignalPlotPanel.
|
inlinevirtual |
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.