mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +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
|
|
@ -84,19 +84,19 @@ FileBrowserComponent::FileBrowserComponent (int flags_,
|
|||
|
||||
fileListComponent->addListener (this);
|
||||
|
||||
addAndMakeVisible (¤tPathBox);
|
||||
addAndMakeVisible (currentPathBox);
|
||||
currentPathBox.setEditableText (true);
|
||||
resetRecentPaths();
|
||||
currentPathBox.addListener (this);
|
||||
|
||||
addAndMakeVisible (&filenameBox);
|
||||
addAndMakeVisible (filenameBox);
|
||||
filenameBox.setMultiLine (false);
|
||||
filenameBox.setSelectAllWhenFocused (true);
|
||||
filenameBox.setText (filename, false);
|
||||
filenameBox.addListener (this);
|
||||
filenameBox.setReadOnly ((flags & (filenameBoxIsReadOnly | canSelectMultipleItems)) != 0);
|
||||
|
||||
addAndMakeVisible (&fileLabel);
|
||||
addAndMakeVisible (fileLabel);
|
||||
fileLabel.attachToComponent (&filenameBox, true);
|
||||
|
||||
addAndMakeVisible (goUpButton = getLookAndFeel().createFileBrowserGoUpButton());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue