From afe5928467297c6bdd607601ebc040c18d760d4f Mon Sep 17 00:00:00 2001 From: Felix Faire Date: Thu, 13 Nov 2014 11:47:47 +0000 Subject: [PATCH] Introjucer "new project" UX Update Changed the default GUI App wizard to make a window component by default. Widened the project creator to stop the text squishing --- extras/Introjucer/Source/Application/jucer_MainWindow.cpp | 2 +- extras/Introjucer/Source/Wizards/jucer_NewProjectWizard.h | 4 +++- .../Introjucer/Source/Wizards/jucer_ProjectWizard_GUIApp.h | 5 ++++- extras/Introjucer/Source/Wizards/jucer_StartPageComponent.h | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/extras/Introjucer/Source/Application/jucer_MainWindow.cpp b/extras/Introjucer/Source/Application/jucer_MainWindow.cpp index f2085c9c3e..5bf88e2db6 100644 --- a/extras/Introjucer/Source/Application/jucer_MainWindow.cpp +++ b/extras/Introjucer/Source/Application/jucer_MainWindow.cpp @@ -292,7 +292,7 @@ void MainWindow::showNewProjectWizard() { jassert (currentProject == nullptr); setContentOwned (createNewProjectWizardComponent(), true); - setSize (800, 650); + setSize (900, 630); setVisible (true); addToDesktop(); getContentComponent()->grabKeyboardFocus(); diff --git a/extras/Introjucer/Source/Wizards/jucer_NewProjectWizard.h b/extras/Introjucer/Source/Wizards/jucer_NewProjectWizard.h index 9d42a7ad6a..afe1aaae06 100644 --- a/extras/Introjucer/Source/Wizards/jucer_NewProjectWizard.h +++ b/extras/Introjucer/Source/Wizards/jucer_NewProjectWizard.h @@ -27,7 +27,7 @@ //============================================================================== -static void createFileCreationOptionComboBox (Component& setupComp, +static ComboBox& createFileCreationOptionComboBox (Component& setupComp, OwnedArray& itemsCreated, const StringArray& fileOptions) { @@ -43,6 +43,8 @@ static void createFileCreationOptionComboBox (Component& setupComp, itemsCreated.add (l); c->setBounds ("parent.width / 2 + 160, 30, parent.width - 30, top + 22"); + + return *c; } static int getFileCreationComboResult (WizardComp& setupComp) diff --git a/extras/Introjucer/Source/Wizards/jucer_ProjectWizard_GUIApp.h b/extras/Introjucer/Source/Wizards/jucer_ProjectWizard_GUIApp.h index 0767ccf396..719f2b92e2 100644 --- a/extras/Introjucer/Source/Wizards/jucer_ProjectWizard_GUIApp.h +++ b/extras/Introjucer/Source/Wizards/jucer_ProjectWizard_GUIApp.h @@ -38,7 +38,10 @@ struct GUIAppWizard : public NewProjectWizard TRANS("Don't create any files") }; createFileCreationOptionComboBox (setupComp, itemsCreated, - StringArray (fileOptions, numElementsInArray (fileOptions))); + StringArray (fileOptions, numElementsInArray (fileOptions))) + .setSelectedId (2); + + } Result processResultsFromSetupItems (WizardComp& setupComp) diff --git a/extras/Introjucer/Source/Wizards/jucer_StartPageComponent.h b/extras/Introjucer/Source/Wizards/jucer_StartPageComponent.h index c7f18dfa3e..42a3d79666 100644 --- a/extras/Introjucer/Source/Wizards/jucer_StartPageComponent.h +++ b/extras/Introjucer/Source/Wizards/jucer_StartPageComponent.h @@ -28,7 +28,7 @@ class StartPageComponent : public Component public: StartPageComponent() { - setSize (800, 650); + setSize (900, 650); WizardComp* projectWizard = new WizardComp();