4#include <QStackedWidget>
80 void showEvent(QShowEvent *event)
override;
A security layer simulating fingerprint authentication.
Definition fingerprint_layer.h:19
A security layer simulating handprint authentication.
Definition handprint_layer.h:19
A security layer simulating a retina scan process.
Definition retina_scan_layer.h:17
A security layer requiring the user to enter a 4-character security code.
Definition security_code_layer.h:19
A security layer simulating a security question challenge.
Definition security_question_layer.h:20
SnakeGameLayer * snake_game_layer_
Security layer implementing a Snake game challenge.
Definition settings_view.h:203
void SetupNextSecurityLayer()
Advances to the next security layer in the CLASSIFIED tab sequence. Updates the current_layer_index_,...
Definition settings_view.cpp:401
VoiceRecognitionLayer * voice_recognition_layer_
Security layer simulating voice recognition.
Definition settings_view.h:199
HandprintLayer * handprint_layer_
Security layer simulating handprint scanning.
Definition settings_view.h:191
void HandleBackButton()
Handles the click event of the "BACK" button. Resets the CLASSIFIED tab's security layers and emits t...
Definition settings_view.cpp:541
~SettingsView() override
Destructor. Stops the refresh timer and cleans up the SystemOverrideManager.
Definition settings_view.cpp:97
QWidget * tab_bar_
Container widget for the horizontal row of tab buttons.
Definition settings_view.h:165
void SetupClassifiedTab()
Creates and configures the "CLASSIFIED" tab. Sets up the stacked widget containing all the security l...
Definition settings_view.cpp:212
TranslationManager * translator_
Pointer to the TranslationManager singleton instance for UI translations.
Definition settings_view.h:234
void ResetSecurityLayers()
Resets all security layers in the CLASSIFIED tab to their initial state. Calls Reset() on each layer....
Definition settings_view.cpp:547
QWidget * access_granted_widget_
Widget displayed after successfully completing all security layers. Contains classified features.
Definition settings_view.h:205
void LoadSettingsFromRegistry() const
Loads settings from the WavelengthConfig object into the UI elements of all tabs. Delegates loading t...
Definition settings_view.cpp:469
QWidget * classified_features_widget_
Widget containing the classified features (currently just the override button). Same as access_grante...
Definition settings_view.h:228
void SwitchToTab(int tab_index)
Switches the visible tab content based on the clicked tab button. Updates the active state of tab but...
Definition settings_view.cpp:526
SystemOverrideManager * system_override_manager_
Manages the system override sequence (wallpaper change, window minimize, input blocking,...
Definition settings_view.h:232
CyberButton * back_button_
Button to navigate back to the previous view.
Definition settings_view.h:183
RetinaScanLayer * retina_scan_layer_
Security layer simulating a retina scan.
Definition settings_view.h:197
ShortcutsSettingsWidget * shortcuts_tab_widget_
Widget for configuring keyboard shortcuts.
Definition settings_view.h:176
CyberButton * save_button_
Button to save the current settings.
Definition settings_view.h:179
QStackedWidget * tab_content_
Stacked widget holding the content widgets for each settings tab.
Definition settings_view.h:157
void SetDebugMode(bool enabled)
Enables or disables the debug mode for the CLASSIFIED tab. When enabled, the security layers are bypa...
Definition settings_view.cpp:90
SettingsView(QWidget *parent=nullptr)
Constructs the SettingsView. Initializes the UI, sets up all tabs including the security layers for t...
Definition settings_view.cpp:33
CyberButton * defaults_button_
Button to restore default settings.
Definition settings_view.h:181
SecurityLayerIndex current_layer_index_
Index of the currently active security layer in the CLASSIFIED tab sequence.
Definition settings_view.h:223
QPushButton * override_button_
Button within the classified features widget to initiate the system override sequence.
Definition settings_view.h:230
QLabel * time_label_
Label displaying the current time, updated periodically.
Definition settings_view.h:163
SecurityLayerIndex
Enum defining the order and indices of the security layers within the stack.
Definition settings_view.h:210
@ SnakeGameIndex
Definition settings_view.h:218
@ RetinaScanIndex
Definition settings_view.h:215
@ VoiceRecognitionIndex
Definition settings_view.h:216
@ SecurityQuestionIndex
Definition settings_view.h:214
@ HandprintIndex
Definition settings_view.h:212
@ FingerprintIndex
Definition settings_view.h:211
@ TypingTestIndex
Definition settings_view.h:217
@ AccessGrantedIndex
Definition settings_view.h:219
@ SecurityCodeIndex
Definition settings_view.h:213
void SaveSettings()
Saves all current settings from the various tabs to the WavelengthConfig object and persists them....
Definition settings_view.cpp:483
WavelengthSettingsWidget * wavelength_tab_widget_
Widget for configuring Wavelength-specific settings (e.g., preferred frequency).
Definition settings_view.h:170
void backToMainView()
Emitted when the user clicks the "BACK" button, requesting a return to the previous view.
void showEvent(QShowEvent *event) override
Overridden show event handler. Loads settings from the configuration and resets the CLASSIFIED tab's ...
Definition settings_view.cpp:462
TypingTestLayer * typing_test_layer_
Security layer implementing a typing verification test.
Definition settings_view.h:201
void SetupUi()
Creates and arranges the main UI elements of the SettingsView. Sets up the main layout,...
Definition settings_view.cpp:103
SecurityCodeLayer * security_code_layer_
Security layer requiring a 4-character code entry.
Definition settings_view.h:193
QLabel * session_label_
Label displaying a randomly generated session ID.
Definition settings_view.h:161
QList< TabButton * > tab_buttons_
List of buttons used for switching between settings tabs.
Definition settings_view.h:167
SecurityQuestionLayer * security_question_layer_
Security layer simulating a security question challenge.
Definition settings_view.h:195
NetworkSettingsWidget * advanced_tab_widget_
Widget for configuring network settings (relay server, timeouts).
Definition settings_view.h:174
AppearanceSettingsWidget * appearance_tab_widget_
Widget for configuring appearance settings (colors, etc.).
Definition settings_view.h:172
QStackedWidget * security_layers_stack_
Stacked widget holding all the security layers and the final access granted widget.
Definition settings_view.h:207
FingerprintLayer * fingerprint_layer_
Security layer simulating fingerprint scanning.
Definition settings_view.h:189
QLabel * title_label_
Label displaying the main title "SYSTEM SETTINGS".
Definition settings_view.h:159
WavelengthConfig * config_
Pointer to the WavelengthConfig singleton instance.
Definition settings_view.h:154
void CreateHeaderPanel()
Creates the header panel containing the view title, session ID, and current time labels.
Definition settings_view.cpp:425
bool debug_mode_enabled_
Flag indicating if debug mode is enabled (bypasses security layers).
Definition settings_view.h:225
QTimer * refresh_timer_
Timer used to periodically update the time_label_.
Definition settings_view.h:186
void settingsChanged()
Emitted when settings are saved or restored to defaults, indicating that other parts of the applicati...
void RestoreDefaults()
Restores all settings across all tabs to their default values. Prompts the user for confirmation befo...
Definition settings_view.cpp:508
A security layer implementing a classic Snake game as a challenge.
Definition snake_game_layer.h:19
Manages a "system override" sequence involving visual and system-level changes.
Definition system_override_manager.h:29
Manages the loading and delivery of translations for applications.
Definition translation_manager.h:15
A security layer implementing a typing verification test.
Definition typing_test_layer.h:19
A security layer simulating voice recognition verification.
Definition voice_recognition_layer.h:20
Manages application configuration settings using a singleton pattern.
Definition wavelength_config.h:36