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

Helper class encapsulating plugin operations for MainWindow. More...

#include <MainWindowPluginOpsHelper.hpp>

Collaboration diagram for ui::qt::MainWindowPluginOpsHelper:
Collaboration graph

Public Member Functions

 MainWindowPluginOpsHelper (MainWindow *mainWindow)
 
 ~MainWindowPluginOpsHelper ()=default
 
void LoadPlugins ()
 
void ReloadPlugins ()
 
void SetupPluginManager ()
 
void OnPluginEvent (const QString &pluginName, const QString &eventType)
 
bool TryAddPluginBottomPanel (QWidget *widget, const QString &title)
 
bool TryAddPluginMainPanel (QWidget *widget, const QString &title)
 
bool TryAddPluginRightPanel (QWidget *widget, const QString &title)
 
void RemovePluginLeftTab (const QString &tabName)
 
void RemovePluginTab (const QString &tabName)
 
void RefreshPluginPanels ()
 
int GetLoadedPluginCount () const
 
bool IsPluginLoaded (const QString &name) const
 

Private Member Functions

void InitializePluginPanels ()
 
void ConnectPluginSignals ()
 

Private Attributes

MainWindow * m_mainWindow
 
plugin::PluginManager * m_pluginManager
 
std::vector< QString > m_loadedPlugins
 

Detailed Description

Helper class encapsulating plugin operations for MainWindow.

Delegates plugin management from MainWindow, reducing its complexity. Manages:

  • Plugin loading and initialization
  • Plugin unloading and cleanup
  • Plugin UI panel integration (main, left, right, bottom)
  • Plugin lifecycle events

Maintains reference to PluginManager for state management.

Constructor & Destructor Documentation

◆ MainWindowPluginOpsHelper()

ui::qt::MainWindowPluginOpsHelper::MainWindowPluginOpsHelper ( MainWindow *  mainWindow)
explicit
Here is the call graph for this function:

◆ ~MainWindowPluginOpsHelper()

ui::qt::MainWindowPluginOpsHelper::~MainWindowPluginOpsHelper ( )
default

Member Function Documentation

◆ ConnectPluginSignals()

void ui::qt::MainWindowPluginOpsHelper::ConnectPluginSignals ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLoadedPluginCount()

int ui::qt::MainWindowPluginOpsHelper::GetLoadedPluginCount ( ) const

◆ InitializePluginPanels()

void ui::qt::MainWindowPluginOpsHelper::InitializePluginPanels ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPluginLoaded()

bool ui::qt::MainWindowPluginOpsHelper::IsPluginLoaded ( const QString &  name) const

◆ LoadPlugins()

void ui::qt::MainWindowPluginOpsHelper::LoadPlugins ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPluginEvent()

void ui::qt::MainWindowPluginOpsHelper::OnPluginEvent ( const QString &  pluginName,
const QString &  eventType 
)
Here is the call graph for this function:

◆ RefreshPluginPanels()

void ui::qt::MainWindowPluginOpsHelper::RefreshPluginPanels ( )
Here is the call graph for this function:

◆ ReloadPlugins()

void ui::qt::MainWindowPluginOpsHelper::ReloadPlugins ( )
Here is the call graph for this function:

◆ RemovePluginLeftTab()

void ui::qt::MainWindowPluginOpsHelper::RemovePluginLeftTab ( const QString &  tabName)
Here is the call graph for this function:

◆ RemovePluginTab()

void ui::qt::MainWindowPluginOpsHelper::RemovePluginTab ( const QString &  tabName)
Here is the call graph for this function:

◆ SetupPluginManager()

void ui::qt::MainWindowPluginOpsHelper::SetupPluginManager ( )
Here is the call graph for this function:

◆ TryAddPluginBottomPanel()

bool ui::qt::MainWindowPluginOpsHelper::TryAddPluginBottomPanel ( QWidget *  widget,
const QString &  title 
)
Here is the call graph for this function:

◆ TryAddPluginMainPanel()

bool ui::qt::MainWindowPluginOpsHelper::TryAddPluginMainPanel ( QWidget *  widget,
const QString &  title 
)
Here is the call graph for this function:

◆ TryAddPluginRightPanel()

bool ui::qt::MainWindowPluginOpsHelper::TryAddPluginRightPanel ( QWidget *  widget,
const QString &  title 
)
Here is the call graph for this function:

Member Data Documentation

◆ m_loadedPlugins

std::vector<QString> ui::qt::MainWindowPluginOpsHelper::m_loadedPlugins
private

◆ m_mainWindow

MainWindow* ui::qt::MainWindowPluginOpsHelper::m_mainWindow
private

◆ m_pluginManager

plugin::PluginManager* ui::qt::MainWindowPluginOpsHelper::m_pluginManager
private

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