1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

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
This commit is contained in:
Felix Faire 2014-11-13 11:47:47 +00:00
parent b5d2a74ff9
commit afe5928467
4 changed files with 9 additions and 4 deletions

View file

@ -292,7 +292,7 @@ void MainWindow::showNewProjectWizard()
{
jassert (currentProject == nullptr);
setContentOwned (createNewProjectWizardComponent(), true);
setSize (800, 650);
setSize (900, 630);
setVisible (true);
addToDesktop();
getContentComponent()->grabKeyboardFocus();

View file

@ -27,7 +27,7 @@
//==============================================================================
static void createFileCreationOptionComboBox (Component& setupComp,
static ComboBox& createFileCreationOptionComboBox (Component& setupComp,
OwnedArray<Component>& 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)

View file

@ -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)

View file

@ -28,7 +28,7 @@ class StartPageComponent : public Component
public:
StartPageComponent()
{
setSize (800, 650);
setSize (900, 650);
WizardComp* projectWizard = new WizardComp();