mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Added versions of Component::addAndMakeVisible and addChildComponent which take a reference instead of a pointer.
This commit is contained in:
parent
9aeefa5ebe
commit
4d79bed3d1
82 changed files with 305 additions and 272 deletions
|
|
@ -33,15 +33,15 @@ public:
|
|||
newFolderButton (TRANS ("New Folder")),
|
||||
instructions (desc)
|
||||
{
|
||||
addAndMakeVisible (&chooserComponent);
|
||||
addAndMakeVisible (chooserComponent);
|
||||
|
||||
addAndMakeVisible (&okButton);
|
||||
addAndMakeVisible (okButton);
|
||||
okButton.addShortcut (KeyPress (KeyPress::returnKey));
|
||||
|
||||
addAndMakeVisible (&cancelButton);
|
||||
addAndMakeVisible (cancelButton);
|
||||
cancelButton.addShortcut (KeyPress (KeyPress::escapeKey));
|
||||
|
||||
addChildComponent (&newFolderButton);
|
||||
addChildComponent (newFolderButton);
|
||||
|
||||
setInterceptsMouseClicks (false, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue