Skip to content

Commit 5f04c02

Browse files
committed
Merge branch 'develop' prior to 1.7.0 release
2 parents c9d9fd8 + 8653086 commit 5f04c02

File tree

1,516 files changed

+292410
-58964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,516 files changed

+292410
-58964
lines changed

CMakeLists.txt

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ endif()
3636
# `project()` command. `project()` sets up some helpful variables that describe source/binary
3737
# directories, and the current project version. This is a standard CMake command.
3838

39-
project(SonoBus VERSION 1.6.2)
39+
project(SonoBus VERSION 1.7.0)
4040

41-
set(BUILDVERSION 77)
41+
set(BUILDVERSION 79)
4242

4343

4444
# If you've installed JUCE somehow (via a package manager, or directly using the CMake install
@@ -89,6 +89,11 @@ if (APPLE)
8989
list (APPEND FormatsToBuild AU)
9090
endif()
9191

92+
# On Linux, LV2 will be built too
93+
if (UNIX)
94+
list (APPEND FormatsToBuild LV2)
95+
endif()
96+
9297
# If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs on your
9398
# system. This setup should be done before calling `juce_add_plugin`.
9499

@@ -161,7 +166,8 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
161166
VST3_CATEGORIES "${vst3cats}"
162167
AAX_CATEGORY "AAX_ePlugInCategory_None"
163168

164-
169+
LV2URI "https://sonobus.net/lv2/sonobus"
170+
165171
# mac settings
166172
HARDENED_RUNTIME_ENABLED TRUE
167173
HARDENED_RUNTIME_OPTIONS "com.apple.security.device.audio-input"
@@ -281,6 +287,8 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
281287
Source/RunningCumulant.h
282288
Source/SampleEditView.cpp
283289
Source/SampleEditView.h
290+
Source/SonoCallOutBox.cpp
291+
Source/SonoCallOutBox.h
284292
Source/SonoChoiceButton.cpp
285293
Source/SonoChoiceButton.h
286294
Source/SonoDrawableButton.cpp
@@ -314,6 +322,8 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
314322
Source/SonobusPluginProcessor.cpp
315323
Source/SonobusPluginProcessor.h
316324
Source/SonobusTypes.h
325+
Source/SuggestNewGroupView.cpp
326+
Source/SuggestNewGroupView.h
317327
Source/VDONinjaView.h
318328
Source/VersionInfo.cpp
319329
Source/VersionInfo.h
@@ -449,7 +459,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
449459

450460
juce_add_binary_data("${target_name}_SBData" SOURCES
451461
Source/wordmaker.g
452-
Source/DejaVuSans.ttf
462+
Source/GoNotoKurrent-Regular.ttf
453463
localization/localized_de.txt
454464
localization/localized_es.txt
455465
localization/localized_fr.txt
@@ -460,6 +470,10 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
460470
localization/localized_pt-pt.txt
461471
localization/localized_ko.txt
462472
localization/localized_ru.txt
473+
localization/localized_zh-hans.txt
474+
images/arrow-up-narrow.svg
475+
images/arrow-down-narrow.svg
476+
images/dots.svg
463477
images/bar_click.wav
464478
images/beat_click.wav
465479
images/chat.svg
@@ -487,8 +501,8 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
487501
images/incoming_disallowed.svg
488502
images/keyboard.svg
489503
images/keyboard_disabled.svg
490-
images/keypad-num-disabled.svg
491-
images/keypad-num.svg
504+
images/keypad-num-disabled.svg
505+
images/keypad-num.svg
492506
images/lgc_bar.wav
493507
images/link.svg
494508
images/link_all.svg

Source/ChannelGroupsView.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ void ChannelGroupsView::configLabel(Label *label, int ltype)
10661066
label->setMinimumHorizontalScale(0.3);
10671067
}
10681068
else if (ltype == LabelTypeSmall) {
1069-
label->setFont(12);
1069+
label->setFont(12 );
10701070
label->setColour(Label::textColourId, regularTextColor);
10711071
label->setJustificationType(Justification::centredRight);
10721072
label->setMinimumHorizontalScale(0.3);
@@ -1166,7 +1166,7 @@ void ChannelGroupsView::showPopTip(const String & message, int timeoutMs, Compon
11661166
AttributedString text(message);
11671167
text.setJustification (Justification::centred);
11681168
text.setColour (findColour (TextButton::textColourOffId));
1169-
text.setFont(Font(12));
1169+
text.setFont(Font(12* SonoLookAndFeel::getFontScale()));
11701170
if (target) {
11711171
popTip->showAt(target, text, timeoutMs);
11721172
}
@@ -1203,7 +1203,7 @@ ChannelGroupView * ChannelGroupsView::createChannelGroupView(bool first)
12031203
pvf->nameLabel->setFont(15);
12041204

12051205
pvf->nameEditor = std::make_unique<TextEditor>("name");
1206-
pvf->nameEditor->setFont(15);
1206+
pvf->nameEditor->setFont(15 * SonoLookAndFeel::getFontScale());
12071207
//pvf->nameEditor->setReadOnly(mPeerMode);
12081208
auto edcb = [this,pvf]() {
12091209
auto changroup = pvf->group;
@@ -1298,7 +1298,7 @@ ChannelGroupView * ChannelGroupsView::createChannelGroupView(bool first)
12981298
pvf->levelSlider->setLookAndFeel(&pvf->sonoSliderLNF);
12991299

13001300
pvf->monitorSlider = std::make_unique<Slider>(Slider::RotaryHorizontalVerticalDrag, Slider::TextBoxRight);
1301-
pvf->monitorSlider->setName("level");
1301+
pvf->monitorSlider->setName("monitor");
13021302
pvf->monitorSlider->addListener(this);
13031303

13041304
configLevelSlider(pvf->monitorSlider.get(), true);

Source/ChatView.cpp

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "ChatView.h"
77
#include "GenericItemChooser.h"
8+
#include "SonoLookAndFeel.h"
89

910
void FocusTextEditor::focusGained (FocusChangeType gtype)
1011
{
@@ -282,10 +283,10 @@ void ChatView::updateFontSizes()
282283
{
283284
auto offset = processor.getChatFontSizeOffset();
284285

285-
mChatNameFont = Font(13 + offset);
286-
mChatMesgFont = Font(16 + offset);
286+
mChatNameFont = Font((13 + offset) * SonoLookAndFeel::getFontScale());
287+
mChatMesgFont = Font((16 + offset) * SonoLookAndFeel::getFontScale());
287288
mChatMesgFixedFont = Font(Font::getDefaultMonospacedFontName(), 15+offset, Font::plain);
288-
mChatEditFont = Font(14 + offset);
289+
mChatEditFont = Font((14 + offset) * SonoLookAndFeel::getFontScale());
289290
mChatEditFixedFont = Font(Font::getDefaultMonospacedFontName(), 15+offset, Font::plain);
290291
mChatSpacerFont = Font(6+offset);
291292

@@ -312,7 +313,7 @@ void ChatView::updateTitles()
312313

313314
mChatSendTextEditor->setEnabled(enabled);
314315
if (enabled) {
315-
mesg = TRANS("Enter message here...") + String(juce::CharPointer_UTF8 (" \xe2\x86\x92 ")) + name;
316+
mesg = TRANS("Enter message here...") + String(" -> ") + name;
316317
}
317318
else {
318319
mesg = name + TRANS(" is not connected");
@@ -648,50 +649,44 @@ void ChatView::showSaveChat()
648649
{
649650
SafePointer<ChatView> safeThis (this);
650651

651-
if (FileChooser::isPlatformDialogAvailable())
652-
{
653-
File recdir; // = File::getSpecialLocation(File::userDocumentsDirectory).getChildFile("SonoBus Setups");
652+
File recdir; // = File::getSpecialLocation(File::userDocumentsDirectory).getChildFile("SonoBus Setups");
654653

655-
// TODO - on iOS we need to give it a name first
654+
// TODO - on iOS we need to give it a name first
656655
//#if (JUCE_IOS || JUCE_ANDROID)
657-
String filename = String("SonoBusChat_") + Time::getCurrentTime().formatted("%Y-%m-%d_%H.%M.%S");
658-
recdir = File::getSpecialLocation(File::userDocumentsDirectory).getNonexistentChildFile (filename, ".txt");
656+
String filename = String("SonoBusChat_") + Time::getCurrentTime().formatted("%Y-%m-%d_%H.%M.%S");
657+
recdir = File::getSpecialLocation(File::userDocumentsDirectory).getNonexistentChildFile (filename, ".txt");
659658
//#endif
660659

661-
mFileChooser.reset(new FileChooser(TRANS("Choose a location and name to store the setup"),
662-
recdir,
663-
"*.txt",
664-
true, false, getTopLevelComponent()));
660+
mFileChooser.reset(new FileChooser(TRANS("Choose a location and name to store the setup"),
661+
recdir,
662+
"*.txt",
663+
true, false, getTopLevelComponent()));
665664

666665

667666

668-
mFileChooser->launchAsync (FileBrowserComponent::saveMode | FileBrowserComponent::doNotClearFileNameOnRootChange,
669-
[safeThis] (const FileChooser& chooser) mutable
670-
{
671-
auto results = chooser.getURLResults();
672-
if (safeThis != nullptr && results.size() > 0)
673-
{
674-
auto url = results.getReference (0);
667+
mFileChooser->launchAsync (FileBrowserComponent::saveMode | FileBrowserComponent::doNotClearFileNameOnRootChange,
668+
[safeThis] (const FileChooser& chooser) mutable
669+
{
670+
auto results = chooser.getURLResults();
671+
if (safeThis != nullptr && results.size() > 0)
672+
{
673+
auto url = results.getReference (0);
675674

676-
DBG("Chose file to save chat: " << url.toString(false));
675+
DBG("Chose file to save chat: " << url.toString(false));
677676

678-
if (url.isLocalFile()) {
679-
File lfile = url.getLocalFile();
677+
if (url.isLocalFile()) {
678+
File lfile = url.getLocalFile();
680679

681-
lfile.replaceWithText(safeThis->mChatTextEditor->getText());
682-
}
680+
lfile.replaceWithText(safeThis->mChatTextEditor->getText());
683681
}
682+
}
684683

685-
if (safeThis) {
686-
safeThis->mFileChooser.reset();
687-
}
684+
if (safeThis) {
685+
safeThis->mFileChooser.reset();
686+
}
688687

689-
}, nullptr);
688+
}, nullptr);
690689

691-
}
692-
else {
693-
DBG("Need to enable code signing");
694-
}
695690
}
696691

697692

0 commit comments

Comments
 (0)