Opened 14 years ago
Closed 13 years ago
#9395 closed Patch - Feature (fixed)
New system events: watch rec, watch video, listen to music
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | Master Head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
Trigger system events when entering the watch recordings screen, the watch videos screen, and the play music screen.
My use case is that I control my receiver via rs232 and had different audio settings for tv, movies, and music. The rs232 scripts take 4-5 seconds to execute hence the "early" trigger when selecting watch recordings (as opposed to when a recording is selected) and watch videos
Depends on #9394
Attachments (3)
Change History (12)
Changed 14 years ago by
Attachment: | newevent.diff added |
---|
comment:1 Changed 14 years ago by
Owner: | changed from beirdo to cpinkham |
---|---|
Status: | new → assigned |
Changed 14 years ago by
Attachment: | newevent2.diff added |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Component: | MythTV - MythSystem → MythTV - General |
---|
comment:4 Changed 14 years ago by
Milestone: | unknown → 0.25 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Add a new EventCmdScreenType? MythSystemEvent?.
Add a new System Event that is sent out whenever a new screen is created or an existing screen is destroyed. This will allow users to take external actions whenever an application enters or leaves a screen/dialog.
The system event is SCREEN_TYPE and the setting name is EventCmdScreenType?. The first argument in the %ARGS% value is either 'CREATED' or 'DESTROYED' depending on whether a MythScreenType? was created or destroyed.
Fixes #9395.
Branch: master Changeset: 87b89dee6c8c6a4ffd89ca5857de4a4e791fcd82
comment:5 Changed 13 years ago by
Milestone: | 0.25 → 0.26 |
---|---|
Resolution: | fixed |
Severity: | medium → low |
Status: | closed → new |
Version: | Unspecified → Master Head |
This commit was reverted in changeset b603bf39.
If you compile from source, and want to test a fix, you can uncomment those lines yourself. To fix the issue that caused the revert commit, you should be able to uncomment and add the following before each of the SendSystemEvent? lines that are commented out.
if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
Once we cut 0.25, we should be able to get this code re-enabled in git master.
comment:6 Changed 13 years ago by
Thanks for the info on this, it all makes sense. I went ahead and made the changes you outlined. Tested it here and it all works well, including being able to run mythtv-setup. I'll attach a diff of the change against master in case it's helpful for the future work.
Changed 13 years ago by
Attachment: | screen-event.diff added |
---|
Changes outline by Chris to re-enable this
comment:7 Changed 13 years ago by
Milestone: | 0.26 → 0.27 |
---|
comment:8 Changed 13 years ago by
Owner: | changed from cpinkham to stuartm |
---|---|
Status: | new → accepted |
comment:9 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
newevent2.diff to fix typo in menu