Skip to content

Commit ad1a763

Browse files
committed
Add tooltip to show full path on mouse hover in RecordNode editor
1 parent 1b250fe commit ad1a763

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Processors/RecordNode/RecordNodeEditor.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RecordNodeEditor::RecordNodeEditor(RecordNode* parentNode, bool useDefaultParame
6262

6363
dataPathLabel = new Label(CoreServices::getRecordingDirectory().getFullPathName());
6464
dataPathLabel->setText(CoreServices::getRecordingDirectory().getFullPathName(), juce::NotificationType::dontSendNotification);
65+
dataPathLabel->setTooltip(dataPathLabel->getText());
6566
dataPathLabel->setBounds(42,35,72,20);
6667
dataPathLabel->setColour(Label::backgroundColourId, Colours::grey);
6768
dataPathLabel->setColour(Label::backgroundWhenEditingColourId, Colours::white);
@@ -350,6 +351,7 @@ void RecordNodeEditor::buttonEvent(Button *button)
350351
{
351352
recordNode->setDataDirectory(chooseWriteDirectory.getResult());
352353
dataPathLabel->setText(chooseWriteDirectory.getResult().getFullPathName(), juce::NotificationType::dontSendNotification);
354+
dataPathLabel->setTooltip(dataPathLabel->getText());
353355
}
354356

355357
}
@@ -358,7 +360,11 @@ void RecordNodeEditor::buttonEvent(Button *button)
358360

359361
void RecordNodeEditor::labelTextChanged(Label* label)
360362
{
361-
recordNode->setDataDirectory(label->getText());
363+
if(label == dataPathLabel)
364+
{
365+
recordNode->setDataDirectory(label->getText());
366+
label->setTooltip(label->getText());
367+
}
362368
}
363369

364370
void RecordNodeEditor::collapsedStateChanged()

0 commit comments

Comments
 (0)