Closed MasterTailer closed 5 years ago
Please could you describe the task in more details?
It is my vision of the task:
We are at the screen
User clicks to Alarm
button and we should show him new Alarm
view.
At this view user should choose one of the moving actions, like this:
And he should set up a time when this action should be passed to device (in relative or absolute time)
We store these actions in C++ backend, in persistent storage, like QSettings (it is all new classes and we should realize them from scratch)
When timer is triggered we should transmit these commands to device
@MasterTailer, @leinir, please check it, am I right?
That looks good to me!
The Master Tailer
On 5 Feb 2019, 11:15, at 11:15, Gilmanov Ildar notifications@github.com wrote:
Please could you describe the task in more details?
It is my vision of the task:
We are at the screen
User clicks to
Alarm
button and we should show him newAlarm
view.At this view user should choose on of the moving actions, like this:
And he should set up a time when this action should be passed to device (in relative or absolute time)
We store these actions in C++ backend, in persistent storage, like QSettings (it is all new classes and we should realize them from scratch)
@MasterTailer, @leinir, please check it, am I right?
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/MasterTailer/DIGITAiL/issues/21#issuecomment-460600741
Much good thinking there, that sounds about right for the logic of it all, yes :) A couple of details that might make life easier:
Hope that's helpful :)
@MasterTailer or @leinir, could you please record a video how it works with a real device. For example, we open Tail Moves
view, click to Slow Wag 1
and what is happen after? The video will help me a lot :)
Just pushed a change so BaseMovesPage only blocks input when the tail is moving when it is told to do so (and have told it to do so only on the TailMoves page). This will make it easier for you to do that picking thing i mentioned in my first point above :)
i don't have a real tail right now, but i am unsure how a video of that would really help you do this... though i can totally see why having a video of the thing in action would be cool anyway ;)
I offer to reuse MoveLists
component for alarms. In this case we just need to add time settings to move lists and save them at persistent storage. And it is much better then do only one action on time.
@leinir, @MasterTailer, What do you think about that?
Hmm, but it seems we use Move Lists
only as a library for complex actions, so it would be not nice to add a concrete time to that complex action. But later we can add that actions as sources to the Alarms.
Done:
NamePicker
component from MoveList
AlarmList.qml
Alarm
and AlarmList
C++ classesAt the next week:
Hmm, but it seems we use
Move Lists
only as a library for complex actions, so it would be not nice to add a concrete time to that complex action. But later we can add that actions as sources to the Alarms.
Indeed, it would not make a lot of sense to add specific times into Move Lists, however it certainly would be nice for the alarm function to be able to also accept a move list as well as a single command for the alarm action :)
MoveLists.qml
and MoveListEditor.qml
MessageBox.qml
component. Now we can easily show message boxes with the one command: showMessageBox(qsTr(""))
DatePicker.qml
and TimePicker.qml
Now user can only setup absolute date and time for alarm, but I think you want to add periodic tasks (each day, for example). And now we do not send the commands from app to devices.
We dont need periodic ones, nice idea though.
.. Absolute and Relative time
So choose a move and set it to go at 4pm, or +3 hours