Skip to content

Commit 51f6ed2

Browse files
committed
Add onboarding dialog
1 parent a56c256 commit 51f6ed2

8 files changed

Lines changed: 1274 additions & 26 deletions

File tree

Source/Dialogs/AdvancedSettingsPanel.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ class AdvancedSettingsPanel final : public SettingsDialogPanel
4040
interfaceProperties.add(new PropertiesPanel::BoolComponent("Open patches in new window", openPatchesInWindow, { "No", "Yes" }));
4141
}
4242
#endif
43-
44-
showPalettesValue.referTo(settingsFile->getPropertyAsValue("show_palettes"));
45-
showPalettesValue.addListener(this);
46-
interfaceProperties.add(new PropertiesPanel::BoolComponent("Show palette bar", showPalettesValue, { "No", "Yes" }));
47-
43+
4844
floatingPanelsValue.referTo(settingsFile->getPropertyAsValue("floating_panels"));
4945
floatingPanelsValue.addListener(this);
5046
interfaceProperties.add(new PropertiesPanel::BoolComponent("Floating panels", floatingPanelsValue, { "No", "Yes" }));

Source/Dialogs/Dialogs.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "ObjectBrowserDialog.h"
3434
#include "ObjectReferenceDialog.h"
3535
#include "AudioExportDialog.h"
36+
#include "OnboardingDialog.h"
3637
#include "Heavy/HeavyExportDialog.h"
3738
#include "MainMenu.h"
3839
#include "AddObjectMenu.h"
@@ -424,6 +425,17 @@ void Dialogs::showHeavyExportDialog(std::unique_ptr<Dialog>* target, Component*
424425
target->reset(dialog);
425426
}
426427

428+
void Dialogs::showOnboardingDialog(std::unique_ptr<Dialog>* target, Component* parent)
429+
{
430+
auto* dialog = new Dialog(target, parent, 625, 430, false);
431+
auto* editor = dynamic_cast<PluginEditor*>(parent);
432+
auto* dialogContent = new OnboardingDialog(dialog, editor);
433+
434+
dialog->setViewedComponent(dialogContent);
435+
dialog->setBlockFromClosing(true);
436+
target->reset(dialog);
437+
}
438+
427439
void Dialogs::showAudioExportDialog(std::unique_ptr<Dialog>* target, Component* parent, File const& recording)
428440
{
429441
auto* dialog = new Dialog(target, parent, 520, 285, true);

Source/Dialogs/Dialogs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ struct Dialogs {
180180

181181
static void showHeavyExportDialog(std::unique_ptr<Dialog>* target, Component* parent);
182182

183+
static void showOnboardingDialog(std::unique_ptr<Dialog>* target, Component* parent);
184+
183185
static void showAudioExportDialog(std::unique_ptr<Dialog>* target, Component* parent, File const& recording);
184186

185187
static void showObjectBrowserDialog(std::unique_ptr<Dialog>* target, Component* parent);

0 commit comments

Comments
 (0)