labstreaminglayer / AppTemplate_cpp_qt

An example application to stream data from a device via the Labstreaminglayer
Other
5 stars 1 forks source link

Autolink option. #2

Open cboulay opened 6 years ago

cboulay commented 6 years ago

At the end of load_config, something like the following:

if(settings.value("BPG/autolink", false).toBool())
    toggleRecording();

Then the appropriate setting in the example cfg. This should probably default to false.

tstenner commented 4 years ago

I have a slightly different vision: the reader code should be separate from the GUI code so there's the GUI to change all the settings, start a recording etc. and a CLI that just loads a config file and starts the recording.

This needs:

In a perfect world, the CLI wouldn't depend on Qt and *deployqt, but having the reader subclass QObject would make logging, status messages etc. via signals and slots a lot easier.

cboulay commented 4 years ago

Restructuring the app to further separate out device logic and GUI logic is fine. Having a CLI target is fine.

Both of these are orthogonal to having an autolink option in the GUI-based app.