Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add improvements to iio-widget #1601

Merged
merged 10 commits into from
May 15, 2024
Merged

Add improvements to iio-widget #1601

merged 10 commits into from
May 15, 2024

Conversation

Andrei-Fabian-Pop
Copy link
Contributor

@Andrei-Fabian-Pop Andrei-Fabian-Pop commented Apr 9, 2024

  • Change the spinbox used in the range gui strategy
  • Add new methods for reading the timestamp and status of the last operation
  • Add aboutToWrite signal to DataStrategyInterface that returns the old and new value of a write operation
  • Add displayedNewData signal to GuiStrategyInterface for signaling when the result of an operation is finished
  • Rename AttrUiStrategyInterface to GuiStrategyInterface

@Andrei-Fabian-Pop Andrei-Fabian-Pop force-pushed the dev_iiowidgets_improve branch 5 times, most recently from a2081d7 to ddfd89e Compare April 10, 2024 13:53
TitleSpinBox is a class that contains a QSpinBox for displaying values, a QLabel for a title and 2 QPushButtons that for increasing/decreasing the values of said spinbox. The iio-widgets responsible with displaying range values are modified in this commit to use this class.

Signed-off-by: Andrei-Fabian-Pop <[email protected]>

# Conflicts:
#	gui/include/gui/stylehelper.h
#	gui/src/stylehelper.cpp
The aboutToWrite signal from DataStrategyInterface will be emitted before any write operation and will contain the old data (aka the data from before the write op) and the new data that will be written

Signed-off-by: Andrei-Fabian-Pop <[email protected]>
displayedNewData signal is declared in the gui strategy of an iio-widget and is meant to singnal that the ui successfully received the data programmatically and displayed it.

Signed-off-by: Andrei-Fabian-Pop <[email protected]>
…nd more information about the operation

Signed-off-by: Andrei-Fabian-Pop <[email protected]>
The emitStatus signal should be emitted only after the members
that retain the data are refreshed.

Signed-off-by: Andrei-Fabian-Pop <[email protected]>
@Andrei-Fabian-Pop Andrei-Fabian-Pop force-pushed the dev_iiowidgets_improve branch from 40a6845 to 62da555 Compare May 15, 2024 07:09
@Andrei-Fabian-Pop Andrei-Fabian-Pop merged commit 75c6b71 into dev May 15, 2024
19 checks passed
@Andrei-Fabian-Pop Andrei-Fabian-Pop deleted the dev_iiowidgets_improve branch May 15, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants