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
[PVR] context menu rewrite & major gui actions refactoring #10870
Conversation
wow, all at once. great work! |
ReloadAddonItems(); | ||
|
||
std::vector<std::shared_ptr<IContextMenuItem>> pvrItems = m_pvrMgr.GetContextMenuItems(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
std::string MarkWatched::GetLabel(const CFileItem &item) const | ||
{ | ||
return g_localizeStrings.Get(16103); /* Mark as watched */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
69b8586
to
96382da
Compare
@tamland thanks for the review. The changes you suggested are now in. |
const CPVRRecordingPtr recording(item.GetPVRRecordingInfoTag()); | ||
if (recording) | ||
{ | ||
if (!recording->IsDeleted()) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if (!recording) | ||
recording = item.GetPVRRecordingInfoTag(); | ||
|
||
if (recording) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
timer = epg->Timer(); | ||
|
||
if (!timer) | ||
timer = item.GetPVRTimerInfoTag(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
CPVRContextMenuManager(); | ||
CPVRContextMenuManager(const CPVRContextMenuManager&) = delete; | ||
CPVRContextMenuManager const& operator=(CPVRContextMenuManager const&) = delete; | ||
virtual ~CPVRContextMenuManager() {} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -150,7 +120,6 @@ bool CGUIWindowPVRChannels::OnAction(const CAction &action) | |||
{ | |||
switch (action.GetID()) | |||
{ | |||
case REMOTE_0: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I know I'm annoying, but I noticed that you kindly added some file reference comments to the strings.po file and now should also know their context. So I wanted to ask if you're also in the mood to add a small contextual help comment to those strings? At least an indication if a certain string is a settings option or a settings label. Thanks. |
@da-anda will do, remember, this is still wip. |
96382da
to
63c9619
Compare
63c9619
to
7eed678
Compare
@Jalle19 thanks for the review. The changes you suggested are now in. |
40220c4
to
b64b7b8
Compare
bb3c868
to
8a8cac6
Compare
@ronie mind taking a look at the strings.po cleanup commit? I inserted several "#. @@@ unused?" comments. maybe you can tell for some of those whether they are actually unused? |
these are used by several skins: |
thanks @ronie. will change remarks accordingly. |
003c241
to
8b108f4
Compare
8b108f4
to
fb8e04c
Compare
jenkins build this please |
…play channel, resume recording
…erived class from base class)
…ms with static labels.
…eader file instead to typedef again and again in several header files.
9d53dbc
to
8c9d4fa
Compare
jenkins build this please |
#include "pvr/timers/PVRTimers.h" | ||
#include "utils/URIUtils.h" | ||
|
||
#include "PVRContextMenus.h" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This all started with the wish to support context menus for the new Estuary PVR home screen widgets and quickly turned big, because i wanted to avoid duplicate code. At the end i was in a rage to eliminate as many duplicate pvr gui actions code as possible.
This is not completely finished, but all runtime tested and working well.
@xhaggi @Jalle19 for review and general comments?
@tamland any comments regarding the new CContextMenuManager related code pieces?