#include <main_window.hpp>
|
| bool | eventFilter (QObject *obj, QEvent *event) override |
| | Event filter to handle keyboard shortcuts and focus events.
|
| |
◆ MainWindow()
| MainWindow::MainWindow |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~MainWindow()
| MainWindow::~MainWindow |
( |
| ) |
|
◆ addToolButton()
| void MainWindow::addToolButton |
( |
const QString & |
text, |
|
|
const QString & |
toolTip, |
|
|
const QIcon & |
icon, |
|
|
const char * |
slot, |
|
|
QObject * |
receiver |
|
) |
| |
Adds a tool button to the toolbar.
- Parameters
-
| text | The button text. |
| toolTip | The tooltip text. |
| icon | The button icon. |
| slot | The slot to connect the button to. |
| receiver | The object receiving the signal. |
◆ addToolSeparator()
| void MainWindow::addToolSeparator |
( |
| ) |
|
Adds a separator to the toolbar.
◆ addWidget()
| void MainWindow::addWidget |
( |
QWidget * |
widget, |
|
|
Qt::Alignment |
alignment = Qt::Alignment() |
|
) |
| |
Adds a widget to the main layout.
- Parameters
-
| widget | The widget to add. |
| alignment | The alignment of the widget. |
◆ animateHighlight()
| void MainWindow::animateHighlight |
( |
const QTextCursor & |
cursor, |
|
|
const QString & |
severity |
|
) |
| |
|
private |
Creates an animated highlight effect for the specified cursor position.
- Parameters
-
| cursor | The text cursor indicating the position to animate. |
| severity | The severity level for color selection. |
◆ clearSecurityHighlights()
| void MainWindow::clearSecurityHighlights |
( |
| ) |
|
Clears all security issue highlights from the text editor.
◆ createSecurityNotificationWidget()
| void MainWindow::createSecurityNotificationWidget |
( |
| ) |
|
|
private |
Creates and sets up the security notification widget.
◆ eventFilter()
| bool MainWindow::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
Event filter to handle keyboard shortcuts and focus events.
- Parameters
-
| obj | The object receiving the event. |
| event | The event to be processed. |
- Returns
- True if the event was handled, otherwise false.
◆ findNext
| void MainWindow::findNext |
( |
| ) |
|
|
slot |
Opens a search dialog and highlights all occurrences of the search term.
◆ getFileTreeView()
◆ getTextEditor()
| QTextEdit * MainWindow::getTextEditor |
( |
| ) |
const |
|
inline |
◆ hideSecurityNotification
| void MainWindow::hideSecurityNotification |
( |
| ) |
|
|
slot |
Hides the security notification with fade-out animation.
◆ highlightSecurityIssue()
| void MainWindow::highlightSecurityIssue |
( |
const AuditResult & |
result | ) |
|
Highlights a security issue in the text editor with enhanced visual effects.
- Parameters
-
| result | The audit result containing location information. |
◆ importFile
| void MainWindow::importFile |
( |
| ) |
|
|
slot |
Opens a folder and sets it as the project root.
◆ saveCurrentFile
| void MainWindow::saveCurrentFile |
( |
| ) |
|
|
slot |
Saves the current file being edited.
◆ setProjectRoot()
| void MainWindow::setProjectRoot |
( |
const QString & |
path | ) |
|
Sets the root path for the project.
- Parameters
-
| path | The root path to set. |
◆ setupCentralWidget()
| void MainWindow::setupCentralWidget |
( |
| ) |
|
|
private |
Sets up the central widget and its layout.
◆ setupMenuBar()
| void MainWindow::setupMenuBar |
( |
| ) |
|
|
private |
Sets up the menu bar and its actions.
◆ setupStatusBar()
| void MainWindow::setupStatusBar |
( |
| ) |
|
|
private |
◆ setupToolBar()
| void MainWindow::setupToolBar |
( |
| ) |
|
|
private |
Sets up the toolbar and its actions.
◆ setupUi()
| void MainWindow::setupUi |
( |
| ) |
|
|
private |
Sets up the UI for the main window.
◆ show()
| void MainWindow::show |
( |
| ) |
|
Displays the main window.
◆ showSecurityNotification()
| void MainWindow::showSecurityNotification |
( |
const AuditResult & |
result | ) |
|
Shows a prominent security notification for the given result.
- Parameters
-
| result | The audit result to display. |
◆ toggleAutosave
| void MainWindow::toggleAutosave |
( |
| ) |
|
|
slot |
Toggles the autosave feature.
◆ toggleCliPanel
| void MainWindow::toggleCliPanel |
( |
| ) |
|
|
slot |
Toggles the visibility of the CLI panel.
◆ updateAuditResults()
| void MainWindow::updateAuditResults |
( |
const QList< AuditResult > & |
results | ) |
|
Updates the audit results in the UI.
- Parameters
-
| results | The list of audit results to display. |
◆ autosaveAction
| QAction* MainWindow::autosaveAction |
|
private |
◆ autosaveEnabled
| bool MainWindow::autosaveEnabled |
|
private |
◆ blinkState
| bool MainWindow::blinkState |
|
private |
◆ blinkTimer
| QTimer* MainWindow::blinkTimer |
|
private |
◆ centralWidget
| QWidget* MainWindow::centralWidget |
|
private |
◆ cliPanel
◆ currentFilePath
| QString MainWindow::currentFilePath |
|
private |
◆ currentHighlights
| QList<QTextEdit::ExtraSelection> MainWindow::currentHighlights |
|
private |
◆ fileSystemModel
| QFileSystemModel* MainWindow::fileSystemModel |
|
private |
◆ fileTree
◆ importAction
| QAction* MainWindow::importAction |
|
private |
◆ mainLayout
| QVBoxLayout* MainWindow::mainLayout |
|
private |
◆ mainSplitter
| QSplitter* MainWindow::mainSplitter |
|
private |
◆ mainToolBar
| QToolBar* MainWindow::mainToolBar |
|
private |
◆ notificationAnimation
| QPropertyAnimation* MainWindow::notificationAnimation |
|
private |
◆ notificationOpacity
| QGraphicsOpacityEffect* MainWindow::notificationOpacity |
|
private |
◆ notificationTimer
| QTimer* MainWindow::notificationTimer |
|
private |
◆ outputDisplay
◆ saveAction
| QAction* MainWindow::saveAction |
|
private |
◆ securityNotificationFrame
| QFrame* MainWindow::securityNotificationFrame |
|
private |
◆ securityNotificationIcon
| QLabel* MainWindow::securityNotificationIcon |
|
private |
◆ securityNotificationText
| QLabel* MainWindow::securityNotificationText |
|
private |
◆ syntaxHighlighter
◆ textEditor
| QTextEdit* MainWindow::textEditor |
|
private |
◆ toggleCliPanelAction
| QAction* MainWindow::toggleCliPanelAction |
|
private |
◆ uiComponents
The documentation for this class was generated from the following files: