mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Introjucer: wizards for auto-generating new Component classes
This commit is contained in:
parent
6e631bceb1
commit
d24ee139d3
21 changed files with 582 additions and 77 deletions
|
|
@ -230,7 +230,7 @@ void FileChooserDialogBox::createNewFolderCallback (int result, FileChooserDialo
|
|||
if (result != 0 && alert != nullptr && box != nullptr)
|
||||
{
|
||||
alert->setVisible (false);
|
||||
box->createNewFolderConfirmed (alert->getTextEditorContents ("name"));
|
||||
box->createNewFolderConfirmed (alert->getTextEditorContents ("Folder Name"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -244,9 +244,9 @@ void FileChooserDialogBox::createNewFolder()
|
|||
TRANS("Please enter the name for the folder"),
|
||||
AlertWindow::NoIcon, this);
|
||||
|
||||
aw->addTextEditor ("name", String::empty, String::empty, false);
|
||||
aw->addButton (TRANS("ok"), 1, KeyPress (KeyPress::returnKey));
|
||||
aw->addButton (TRANS("cancel"), 0, KeyPress (KeyPress::escapeKey));
|
||||
aw->addTextEditor ("Folder Name", String::empty, String::empty, false);
|
||||
aw->addButton (TRANS("Create Folder"), 1, KeyPress (KeyPress::returnKey));
|
||||
aw->addButton (TRANS("Cancel"), 0, KeyPress (KeyPress::escapeKey));
|
||||
|
||||
aw->enterModalState (true,
|
||||
ModalCallbackFunction::forComponent (createNewFolderCallback, this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue