1#ifndef JOIN_WAVELENGTH_DIALOG_H
2#define JOIN_WAVELENGTH_DIALOG_H
AnimatedDialog(QWidget *parent=nullptr, AnimationType type=kSlideFromBottom)
Constructs an AnimatedDialog. Sets necessary window flags and attributes for transparency and animati...
Definition animated_dialog.cpp:14
A custom QLineEdit styled with a cyberpunk aesthetic.
Definition cyber_line_edit.h:13
void SetCornerGlowProgress(double progress)
Sets the corner glow progress and triggers a repaint.
Definition join_wavelength_dialog.cpp:220
double GetScanlineOpacity() const
Gets the current opacity of the horizontal scanlines.
Definition join_wavelength_dialog.h:60
double GetDigitalizationProgress() const
Gets the current digitalization progress (vertical scanline position).
Definition join_wavelength_dialog.h:48
double scanline_opacity_
Current opacity for the horizontal scanline effect.
Definition join_wavelength_dialog.h:167
TranslationManager * translator_
Pointer to the translation manager for handling UI translations.
Definition join_wavelength_dialog.h:181
void TryJoin()
Attempts to join the wavelength using the entered frequency and password. Shows a wait cursor,...
Definition join_wavelength_dialog.cpp:337
double cornerGlowProgress
Property controlling the visibility/intensity of the corner highlight markers (0.0 to 1....
Definition join_wavelength_dialog.h:30
const int shadow_size_
Size parameter for shadow effects (potentially unused).
Definition join_wavelength_dialog.h:165
void OnAuthFailed()
Slot triggered by WavelengthJoiner when authentication fails (incorrect password)....
Definition join_wavelength_dialog.cpp:378
QTimer * GetRefreshTimer() const
Gets a pointer to the internal refresh timer used for scanline animation updates.
Definition join_wavelength_dialog.h:88
JoinWavelengthDialog(QWidget *parent=nullptr)
Constructs a JoinWavelengthDialog. Sets up the UI elements (labels, input fields, buttons),...
Definition join_wavelength_dialog.cpp:19
QTimer * refresh_timer_
Timer used to trigger repaints for the vertical scanline animation.
Definition join_wavelength_dialog.h:162
void StopRefreshTimer() const
Stops the refresh timer.
Definition join_wavelength_dialog.h:97
void SetScanlineOpacity(double opacity)
Sets the opacity of the horizontal scanlines and triggers a repaint.
Definition join_wavelength_dialog.cpp:225
QString GetPassword() const
Gets the password entered by the user from the input field.
Definition join_wavelength_dialog.cpp:328
QLabel * status_label_
Label to display status or error messages during the join process.
Definition join_wavelength_dialog.h:156
void SetRefreshTimerInterval(const int interval) const
Sets the interval for the refresh timer.
Definition join_wavelength_dialog.h:104
bool animation_started_
Flag indicating if the show animation has started (used to control scanline drawing).
Definition join_wavelength_dialog.h:148
double digitalization_progress_
Current progress for the vertical scanline reveal animation.
Definition join_wavelength_dialog.h:169
void OnConnectionError(const QString &error_message)
Slot triggered by WavelengthJoiner when a connection error occurs. Displays an appropriate error mess...
Definition join_wavelength_dialog.cpp:390
void InitRenderBuffers()
Initializes or reinitializes the QPixmap buffer used for rendering the vertical scanline effect....
Definition join_wavelength_dialog.cpp:414
void StartRefreshTimer() const
Starts the refresh timer.
Definition join_wavelength_dialog.h:90
CyberButton * cancel_button_
Button to cancel the dialog.
Definition join_wavelength_dialog.h:160
QPixmap scanline_buffer_
Buffer holding the pre-rendered vertical scanline gradient.
Definition join_wavelength_dialog.h:173
double corner_glow_progress_
Current progress for the corner highlight animation.
Definition join_wavelength_dialog.h:171
int last_scanline_y_
Stores the last Y position of the scanline to optimize repaint regions.
Definition join_wavelength_dialog.h:177
QComboBox * frequency_unit_combo_
Dropdown for selecting the frequency unit (Hz, kHz, MHz).
Definition join_wavelength_dialog.h:152
double digitalizationProgress
Property controlling the progress of the main vertical scanline reveal animation (0....
Definition join_wavelength_dialog.h:28
QString GetFrequency() const
Gets the frequency entered by the user from the input field. Note: This returns the raw text; unit co...
Definition join_wavelength_dialog.cpp:324
double GetCornerGlowProgress() const
Gets the current corner glow progress.
Definition join_wavelength_dialog.h:54
void paintEvent(QPaintEvent *event) override
Overridden paint event handler. Draws the custom dialog appearance. Renders the background gradient,...
Definition join_wavelength_dialog.cpp:230
CyberLineEdit * password_edit_
Input field for the wavelength password (optional).
Definition join_wavelength_dialog.h:154
void ValidateInput() const
Validates the frequency input field. Enables the "Join" button only if the frequency field is not emp...
Definition join_wavelength_dialog.cpp:332
int previous_height_
Stores the previous height to detect resize events for buffer reinitialization.
Definition join_wavelength_dialog.h:179
bool buffers_initialized_
Flag indicating if the render buffers (scanline_buffer_) have been initialized.
Definition join_wavelength_dialog.h:175
void SetDigitalizationProgress(double progress)
Sets the digitalization progress and triggers a repaint. Starts the refresh timer if needed.
Definition join_wavelength_dialog.cpp:213
CyberLineEdit * frequency_edit_
Input field for the wavelength frequency.
Definition join_wavelength_dialog.h:150
double scanlineOpacity
Property controlling the opacity of the horizontal scanlines effect (0.0 to 1.0). Animatable.
Definition join_wavelength_dialog.h:26
CyberButton * join_button_
Button to initiate the join attempt.
Definition join_wavelength_dialog.h:158
Manages the loading and delivery of translations for applications.
Definition translation_manager.h:15