Skip to content

Commit c113bd3

Browse files
committed
Update button locations and text
- Move the Save/Load settings buttons in all Neuropixels tabs to be in the right bottom corner - Update text to remove all caps from Load/Save from/to JSON buttons for the Probe Interface files
1 parent e76d2f2 commit c113bd3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Source/UI/NeuropixelsV1Interface.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,23 @@ NeuropixelsV1Interface::NeuropixelsV1Interface(std::shared_ptr<Neuropixels1> d,
129129
probeInterfaceLabel->setColour(Label::textColourId, Colours::black);
130130
addAndMakeVisible(probeInterfaceLabel.get());
131131

132-
saveJsonButton = std::make_unique<UtilityButton>("SAVE TO JSON");
132+
saveJsonButton = std::make_unique<UtilityButton>("Save to JSON");
133133
saveJsonButton->setRadius(3.0f);
134134
saveJsonButton->setBounds(probeInterfaceRectangle->getX() + 3, probeInterfaceRectangle->getY() + 20, 120, 22);
135135
saveJsonButton->addListener(this);
136-
saveJsonButton->setTooltip("Save channel map to probeinterface .json file");
136+
saveJsonButton->setTooltip("Save channel map to ProbeInterface .json file");
137137
addAndMakeVisible(saveJsonButton.get());
138138

139-
loadJsonButton = std::make_unique<UtilityButton>("LOAD FROM JSON");
139+
loadJsonButton = std::make_unique<UtilityButton>("Load from JSON");
140140
loadJsonButton->setRadius(3.0f);
141141
loadJsonButton->setBounds(saveJsonButton->getRight() + 5, saveJsonButton->getY(), 120, 22);
142142
loadJsonButton->addListener(this);
143-
loadJsonButton->setTooltip("Load channel map from probeinterface .json file");
143+
loadJsonButton->setTooltip("Load channel map from ProbeInterface .json file");
144144
addAndMakeVisible(loadJsonButton.get());
145145

146146
saveSettingsButton = std::make_unique<UtilityButton>("Save Settings");
147147
saveSettingsButton->setRadius(3.0f);
148-
saveSettingsButton->setBounds(saveJsonButton->getX(), saveJsonButton->getBottom() + 20, 120, 22);
148+
saveSettingsButton->setBounds(saveJsonButton->getX(), probeBrowser->getBottom() - 80, 120, 22);
149149
saveSettingsButton->addListener(this);
150150
saveSettingsButton->setTooltip("Save all Neuropixels settings to file.");
151151
addAndMakeVisible(saveSettingsButton.get());

Source/UI/NeuropixelsV2eProbeInterface.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ NeuropixelsV2eProbeInterface::NeuropixelsV2eProbeInterface(std::shared_ptr<Neuro
9797
probeInterfaceLabel->setColour(Label::textColourId, Colours::black);
9898
addAndMakeVisible(probeInterfaceLabel.get());
9999

100-
saveJsonButton = std::make_unique<UtilityButton>("SAVE TO JSON");
100+
saveJsonButton = std::make_unique<UtilityButton>("Save to JSON");
101101
saveJsonButton->setRadius(3.0f);
102102
saveJsonButton->setBounds(probeInterfaceRectangle->getX() + 3, probeInterfaceRectangle->getY() + 20, 120, 22);
103103
saveJsonButton->addListener(this);
104-
saveJsonButton->setTooltip("Save channel map to probeinterface .json file");
104+
saveJsonButton->setTooltip("Save channel map to ProbeInterface .json file");
105105
addAndMakeVisible(saveJsonButton.get());
106106

107-
loadJsonButton = std::make_unique<UtilityButton>("LOAD FROM JSON");
107+
loadJsonButton = std::make_unique<UtilityButton>("Load from JSON");
108108
loadJsonButton->setRadius(3.0f);
109109
loadJsonButton->setBounds(saveJsonButton->getRight() + 5, saveJsonButton->getY(), 120, 22);
110110
loadJsonButton->addListener(this);
111-
loadJsonButton->setTooltip("Load channel map from probeinterface .json file");
111+
loadJsonButton->setTooltip("Load channel map from ProbeInterface .json file");
112112
addAndMakeVisible(loadJsonButton.get());
113113

114114
saveSettingsButton = std::make_unique<UtilityButton>("Save Settings");
115115
saveSettingsButton->setRadius(3.0f);
116-
saveSettingsButton->setBounds(saveJsonButton->getX(), saveJsonButton->getBottom() + 20, 120, 22);
116+
saveSettingsButton->setBounds(saveJsonButton->getX(), probeBrowser->getBottom() - 80, 120, 22);
117117
saveSettingsButton->addListener(this);
118118
saveSettingsButton->setTooltip("Save all Neuropixels settings to file.");
119119
addAndMakeVisible(saveSettingsButton.get());

0 commit comments

Comments
 (0)