2#include <NDEVR/String.h>
8 class NDEVRActivationDialogUI;
13 class FileChooserDialog;
17 class NDEVRActivationDialog :
public QWidget
21 NDEVRActivationDialog(QWidget* parent =
nullptr);
22 ~NDEVRActivationDialog();
23 static void PerformActivationCheck();
24 virtual void showEvent(QShowEvent* event)
override;
25 virtual void hideEvent(QHideEvent* event)
override;
26 void updateInformationUI();
27 void setActivationID(
const String&
id);
30 void showButtons(
bool buttons);
31 void onActivationFileSelected(
const File& file);
32 void updateInternetTime();
33 void updateDemoTimes();
34 String activationCode()
const;
36 static void SetActivationDialogShowing(
bool is_showing);
37 static void SetShowActivationOverride(std::function<
void()> function);
41 void onActivatedSignal();
42 void onActivationFailedSignal();
43 void onAcceptedSignal();
45 void onIncorrectActivation();
46 void onCorrectActivation();
48 static bool s_is_activation_showing;
49 static bool s_has_shown_activation_dialog;
50 Ui::NDEVRActivationDialogUI* ui;
51 FileChooserDialog* m_selection_dialog =
nullptr;
52 bool m_showing_file_browser =
false;
53 String m_activation_id;
54 static std::function<void()> s_show_activation_override;
Definition FontEditor.h:6