mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
rewrite property engine
Property class is gone; logic is now done with Layers, Stack and Filter
This commit is contained in:
parent
7562dc8ecb
commit
c83d8580ba
12 changed files with 298 additions and 176 deletions
|
|
@ -9,6 +9,7 @@ import signal
|
|||
from abc import ABC, abstractmethod
|
||||
from owrx.command import CommandMapper
|
||||
from owrx.socket import getAvailablePort
|
||||
from owrx.property import PropertyStack
|
||||
|
||||
import logging
|
||||
|
||||
|
|
@ -35,7 +36,10 @@ class SdrSource(ABC):
|
|||
self.props = props
|
||||
self.profile_id = None
|
||||
self.activateProfile()
|
||||
self.rtlProps = self.props.collect(*self.getEventNames()).defaults(Config.get())
|
||||
stack = PropertyStack()
|
||||
stack.addLayer(0, self.props)
|
||||
stack.addLayer(1, Config.get())
|
||||
self.rtlProps = stack.collect(*self.getEventNames())
|
||||
self.wireEvents()
|
||||
self.commandMapper = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue