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

Dialog showing every registered keyboard shortcut, grouped by category (File, Tools, Analysis, View, Help). More...

#include <ShortcutsDialog.hpp>

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

Public Member Functions

 ShortcutsDialog (QWidget *parent=nullptr)
 
 ~ShortcutsDialog () override
 

Private Slots

void HandleCellDoubleClicked (int row, int column)
 
void HandleEditSelected ()
 
void HandleResetSelected ()
 
void HandleResetAll ()
 
void HandlePrint ()
 

Private Member Functions

void setupUI ()
 
void populateShortcuts ()
 
void EditRow (int row)
 

Private Attributes

QTableWidget * m_table {nullptr}
 
QPushButton * m_editBtn {nullptr}
 
QPushButton * m_resetBtn {nullptr}
 
std::vector< std::string > m_rowIds
 

Detailed Description

Dialog showing every registered keyboard shortcut, grouped by category (File, Tools, Analysis, View, Help).

Data source
Rows are populated from ShortcutManager::GetAll(), so the list always reflects the application's actual current bindings — not a hand-maintained copy that can drift out of sync.
Customization
Double-clicking a shortcut cell (or selecting a row and clicking Edit Shortcut…) opens a small capture dialog. The new binding is rejected if it's already used by another action. Reset restores the selected row's default; Reset All restores every shortcut.
Printing
Print… renders the current table as a simple HTML document and sends it to the system print dialog — a print-friendly cheat sheet.

Constructor & Destructor Documentation

◆ ShortcutsDialog()

ui::qt::ShortcutsDialog::ShortcutsDialog ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~ShortcutsDialog()

ui::qt::ShortcutsDialog::~ShortcutsDialog ( )
overridedefault

Member Function Documentation

◆ EditRow()

void ui::qt::ShortcutsDialog::EditRow ( int  row)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleCellDoubleClicked

void ui::qt::ShortcutsDialog::HandleCellDoubleClicked ( int  row,
int  column 
)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleEditSelected

void ui::qt::ShortcutsDialog::HandleEditSelected ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandlePrint

void ui::qt::ShortcutsDialog::HandlePrint ( )
privateslot
Here is the caller graph for this function:

◆ HandleResetAll

void ui::qt::ShortcutsDialog::HandleResetAll ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleResetSelected

void ui::qt::ShortcutsDialog::HandleResetSelected ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateShortcuts()

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

◆ setupUI()

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

Member Data Documentation

◆ m_editBtn

QPushButton* ui::qt::ShortcutsDialog::m_editBtn {nullptr}
private

◆ m_resetBtn

QPushButton* ui::qt::ShortcutsDialog::m_resetBtn {nullptr}
private

◆ m_rowIds

std::vector<std::string> ui::qt::ShortcutsDialog::m_rowIds
private

Shortcut id for each table row, parallel to m_table's rows. Rows for non-editable reference entries (e.g. standard "Copy") hold an empty id.

◆ m_table

QTableWidget* ui::qt::ShortcutsDialog::m_table {nullptr}
private

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