Andrew Belt
76331f350c
Implement the "modules" half of RackWidget::pasteJsonAction().
3 years ago
Andrew Belt
4fb2c9ac7c
Add RackWidget::fromJsonAction(), ModuleWidget::fromJsonAction(), and replace CableWidget::toJson() with CableWidget::mergeJson().
3 years ago
Andrew Belt
9cbf65f48c
Don't propagate Hover and DragHover events on ModuleWidget if selected.
3 years ago
Andrew Belt
c5374a878e
Move ModuleWidget::createSelectionContextMenu() to RackWidget::appendSelectionContextMenu(). Add selection context menu to Edit in menu bar.
3 years ago
Andrew Belt
297561705a
Add key commands to selected modules.
3 years ago
Andrew Belt
bcc22eba61
Add actions to ModuleWidget::createSelectionContextMenu(). Refactor RackWidget and ModuleWidget as necessary.
3 years ago
Andrew Belt
6d539f04e5
Add Shift-click module selecting. When dragging modules, always set the y position to the rack row the mouse is hovering.
3 years ago
Andrew Belt
2a5180f101
Clean up RackWidget and ModuleWidget members.
3 years ago
Andrew Belt
7d2ce0a6bb
Add ModuleWidget selection. (Currently does nothing.)
3 years ago
Andrew Belt
ac29571db3
Rearrange ModuleWidget methods.
3 years ago
Andrew Belt
5484126aaa
Change `event::Foo` to `FooEvent`.
3 years ago
Andrew Belt
4ae79f662d
Fix crash when saving/loading module presets. Add "Clear template" menu item to module presets menu. Rename `system::doesExist()` to `exists()`.
3 years ago
Andrew Belt
357bd847bf
Rename PRIVATE macro to INTERNAL.
3 years ago
Andrew Belt
50ec209578
Only wait for mouse to move before dragging module if it was just created with the module browser.
3 years ago
Andrew Belt
fd4479f992
Use a ~15px dragging threshold when dragging a Module from the Module Browser, so that clicking it makes it stay in the last right-clicked position. Make event framework trigger DragHover before DragMove.
3 years ago
Andrew Belt
5bbd32ccac
When Module Browser creates a module, set the ModuleWidget's dragPos to its center, so dragging is more predictable.
3 years ago
Andrew Belt
5e4124f66a
Rename bypassed to bypass everywhere.
4 years ago
Andrew Belt
c9a08c7b24
Add CableWidget::releaseCable() and ModuleWidget::releaseModule().
4 years ago
Andrew Belt
73c2ecaea2
Remove ModuleWidget::params, inputs, and outputs arrays. Instead, search recursively for those widgets.
4 years ago
Andrew Belt
8423ce87aa
Add template preset for modules, which are loaded when created from the Module Browser.
4 years ago
Andrew Belt
15ea154602
Remove Dark mode.
4 years ago
Andrew Belt
f2ec0af4b0
Restructure SvgPanel to handle dark mode.
4 years ago
Andrew Belt
c33dc3c842
Rename module disabling to bypassing.
5 years ago
Andrew Belt
05df47fbd1
Add Internal struct to ModuleWidget.
5 years ago
Andrew Belt
99b17727ab
WIP:
- Make ParamWidget hold module/paramId instead of paramQuantity.
- Add configInput/configOutput.
- Add engine::PortInfo.
- Avoid calling particular events when cursor is locked.
- Add PortTooltip.
5 years ago
Andrew Belt
e4b6056ded
Massive WIP v2 overhaul:
- Add Engine::fromJson which can be called without the GUI at all.
- Make RackWidget::fromJson attach itself to existing Engine state. However, once attached, they own their Engine objects (Module, Cable).
- Remove Engine thread. Now Engine must be stepped by other threads, such as the audio thread. This is fantastic because there is no longer a mutex lock every audio buffer.
- Add concept of the "primary module", which is allowed to call Engine::step().
- Add many Module events.
5 years ago
Andrew Belt
dca30e2b53
Auto-format code with astyle.
5 years ago
Andrew Belt
696939069d
Use <> instead of "" for include directive.
5 years ago
Andrew Belt
212404c664
Add Widget::addChildBottom(). Change ModuleWidget::setPanel behavior. Improve event docstrings. Temporarily disable glibc 2.23 header on Linux.
5 years ago
Andrew Belt
5e0378cb5a
Clean up app namespace.
5 years ago
Andrew Belt
1a0b3c657d
Add RACK_HELD key action to SelectKey and HoverKey. Consume arrow keys in RackScrollWidget and delete/backspace in ModuleWidget using HoverKey RACK_HELD instead of Hover.
5 years ago
Andrew Belt
9d609fee2b
Rename `widget::*Event` to `event::*`.
5 years ago
Andrew Belt
4d36193cf2
Fix ModuleWidget::getParam(), getInput(), and getOutput() returning incorrect object.
5 years ago
Andrew Belt
b84e2f57fa
Merge event:: namespace with widget:: namespace. Rename event::* to widget::*Event.
5 years ago
Andrew Belt
a509fab1c1
Move and rename widget::DrawContext to widget::Widget::DrawArgs. Rename Module::ProcessContext to Module::ProcessArgs.
5 years ago
Andrew Belt
13dadef857
ModuleBrowser WIP. Add Widget::show/hide().
5 years ago
Andrew Belt
52151a709d
Add various API documentation
5 years ago
Andrew Belt
822c525d6b
Change "SVG" to "Svg" for correct capitalization style. Create Window::loadSvg, loadImage, and loadFont.
5 years ago
Andrew Belt
64602576b0
Create `engine::` namespace
5 years ago
Andrew Belt
c60339bcd3
Create `plugin::` namespace
5 years ago
Andrew Belt
8a5a806425
Add app::, ui::, and widget:: namespaces.
5 years ago
Andrew Belt
6d1142b449
Add new Widget::draw() method. Deprecate old method.
5 years ago
Andrew Belt
c6f8153d74
Use various other history actions when interacting with the rack
5 years ago
Andrew Belt
94c33c5e77
Use cable history actions when interacting with cables
5 years ago
Andrew Belt
a77a04ad22
Move ModuleWidget cloning code from RackWidget to ModuleWidget. Make ModuleWidget position based on mouse position.
5 years ago
Andrew Belt
f73dae1384
Refactor ParamWidget and ModuleWidget. Add context menu to ParamWidget on right-click.
5 years ago
Andrew Belt
ede6295516
Set zoom every few frames. Add ModuleWidget::setModule(). Add Port::set/getChannels().
5 years ago
Andrew Belt
19d9fdd041
Add ModuleBypass. Serialize Module::bypass.
5 years ago
Andrew Belt
c59b9ba67d
Add history actions: ModuleAdd, ModuleRemove, ModuleMove, ParamChange, WireAdd, WireRemove, WireMove
5 years ago
Andrew Belt
de2b5a92af
Clean up event documentation, change event::PathDrop::path type to const reference, make event::Zoom recurse regardless of being consumed
5 years ago