1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:08:12 +00:00

LibDSP: Rename library namespace to DSP

That's the standard naming convention, but I didn't follow it when
originally creating LibDSP and nobody corrected me, so here I am one
year later :^)
This commit is contained in:
kleines Filmröllchen 2022-07-17 11:35:31 +02:00 committed by Linus Groh
parent 3f59356c79
commit 00e13b5b27
36 changed files with 92 additions and 92 deletions

View file

@ -7,13 +7,13 @@
*/
#include "KeysWidget.h"
#include "LibDSP/Keyboard.h"
#include "TrackManager.h"
#include <AK/Array.h>
#include <AK/StringView.h>
#include <LibDSP/Keyboard.h>
#include <LibGUI/Painter.h>
KeysWidget::KeysWidget(NonnullRefPtr<LibDSP::Keyboard> keyboard)
KeysWidget::KeysWidget(NonnullRefPtr<DSP::Keyboard> keyboard)
: m_keyboard(move(keyboard))
{
set_fill_with_background_color(true);
@ -27,7 +27,7 @@ int KeysWidget::mouse_note() const
return -1;
}
void KeysWidget::set_key(i8 key, LibDSP::Keyboard::Switch switch_note)
void KeysWidget::set_key(i8 key, DSP::Keyboard::Switch switch_note)
{
m_keyboard->set_keyboard_note_in_active_octave(key, switch_note);
}
@ -253,7 +253,7 @@ void KeysWidget::mousedown_event(GUI::MouseEvent& event)
m_mouse_note = note_for_event_position(event.position());
set_key(m_mouse_note, LibDSP::Keyboard::Switch::On);
set_key(m_mouse_note, DSP::Keyboard::Switch::On);
update();
}
@ -264,7 +264,7 @@ void KeysWidget::mouseup_event(GUI::MouseEvent& event)
m_mouse_down = false;
set_key(m_mouse_note, LibDSP::Keyboard::Switch::Off);
set_key(m_mouse_note, DSP::Keyboard::Switch::Off);
update();
}
@ -278,8 +278,8 @@ void KeysWidget::mousemove_event(GUI::MouseEvent& event)
if (m_mouse_note == new_mouse_note)
return;
set_key(m_mouse_note, LibDSP::Keyboard::Switch::Off);
set_key(new_mouse_note, LibDSP::Keyboard::Switch::On);
set_key(m_mouse_note, DSP::Keyboard::Switch::Off);
set_key(new_mouse_note, DSP::Keyboard::Switch::On);
update();
m_mouse_note = new_mouse_note;