[Commits] : Tuxbox-GIT: apps branch master updated. CVS-Final-398-ge34c5ad
Tuxbox Sources
Brought to you by:
dbt1
|
From: Thilo G. <tux...@ne...> - 2014-07-03 18:34:30
|
Project "Tuxbox-GIT: apps":
The branch, master has been updated
via e34c5ad4e29132d04bbc4ae5b0fe0aadae18b644 (commit)
via 3aea153f13360ff308e93b86b1f0af7b47e97e34 (commit)
via caf47a2488ad2f93d634defaa76ca0d6011af8aa (commit)
via a3eba28ffb2fcb6248a88e3f01dd27d11f74be01 (commit)
via e656a5ceab0bc16a5a814471456d5565b75f7816 (commit)
via bdfff6797ce8ab6c48b2a22ba4b5d8769c3291df (commit)
via 86c724eeec86e6376de85d10c2a65eef44b722a0 (commit)
via 72ea568b77248d37551e42e6e0d4608c148ea5f6 (commit)
via 7d2b13dc4f6909e9cd257701205727ef324cddd1 (commit)
via 7e87a6f9389019c7717e622de6b54fa18819f198 (commit)
via 691578491d37c66dcc45e905ba1f110ba2af9683 (commit)
via e4d3f8bb065c80a2d66dc23ba492096881568666 (commit)
via 7d5f5e9f04f38e3064d9c97a437d28bd4971e29c (commit)
via f3767d7ecde1ebeb5511bdf1659b1b5790649737 (commit)
via 2315d9e695d40a05d1c6d63fd4dd0882aacdac5e (commit)
via 2414c6c9e827d2041b3a22fcc221af3c6e5eb60d (commit)
via d6a9bf3f11c34a89ae98d9064256446de602f0ba (commit)
via a7e6b21659868746d2c5aa4e3e73e22e64b7c0ba (commit)
via 211d760fd09d9737e9d868b27c330ef9738e35b0 (commit)
via 5333d110be07709dd9e465002089ec2a9a330cf3 (commit)
via 612044f1e767b3f746c52274fe5e8a18f70061f6 (commit)
from ffea7f69cec8b47d66d4dc027371fb6b1ad32012 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e34c5ad4e29132d04bbc4ae5b0fe0aadae18b644
Author: Christian Schuett <Gau...@ho...>
Date: Thu Jun 19 20:30:39 2014 +0200
Neutrino movieinfo: don't show epgInfo2 if it equals epgInfo1
based on patch by martii <m4...@gm...> in Neutrino-MP Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/movieinfo.cpp b/tuxbox/neutrino/src/gui/movieinfo.cpp
index d995888..f004d7a 100644
--- a/tuxbox/neutrino/src/gui/movieinfo.cpp
+++ b/tuxbox/neutrino/src/gui/movieinfo.cpp
@@ -497,8 +497,11 @@ void CMovieInfo::showMovieInfo(MI_MOVIE_INFO& movie_info)
char date_char[100];
// prepare print buffer
print_buffer = movie_info.epgInfo1;
- print_buffer += "\n";
- print_buffer += movie_info.epgInfo2;
+ if (movie_info.epgInfo1 != movie_info.epgInfo2)
+ {
+ print_buffer += "\n";
+ print_buffer += movie_info.epgInfo2;
+ }
if( !movie_info.productionCountry.empty() || movie_info.productionDate != 0)
{
commit 3aea153f13360ff308e93b86b1f0af7b47e97e34
Author: Christian Schuett <Gau...@ho...>
Date: Wed Jun 18 19:33:18 2014 +0200
Neutrino eventlist: make alphabetically sorted list case insensitive
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/eventlist.cpp b/tuxbox/neutrino/src/gui/eventlist.cpp
index 5b51751..8cbcf8e 100644
--- a/tuxbox/neutrino/src/gui/eventlist.cpp
+++ b/tuxbox/neutrino/src/gui/eventlist.cpp
@@ -69,12 +69,13 @@ bool sortById (const CChannelEvent& a, const CChannelEvent& b)
return a.eventID < b.eventID ;
}
#endif
-bool sortByDescription (const CChannelEvent& a, const CChannelEvent& b)
+static bool sortByDescription (const CChannelEvent& a, const CChannelEvent& b)
{
- if(a.description == b.description)
+ int i = strcasecmp(a.description.c_str(), b.description.c_str());
+ if (i == 0)
return a.startTime < b.startTime;
else
- return a.description < b.description ;
+ return (i < 0);
}
static bool sortByDateTime (const CChannelEvent& a, const CChannelEvent& b)
{
commit caf47a2488ad2f93d634defaa76ca0d6011af8aa
Author: Christian Schuett <Gau...@ho...>
Date: Fri Jun 13 23:49:47 2014 +0200
Neutrino EPG viewer: replace left/right chars with corresponding icons
based on idea by martii <m4...@gm...> in Neutrino-MP Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/epgview.cpp b/tuxbox/neutrino/src/gui/epgview.cpp
index 588ee0b..012c502 100644
--- a/tuxbox/neutrino/src/gui/epgview.cpp
+++ b/tuxbox/neutrino/src/gui/epgview.cpp
@@ -128,10 +128,11 @@ void CEpgData::start()
ox = w_max (720, 70);
oy = h_max (576, 50);
+ frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_LEFT, &boticonwidth, &boticonheight);
topheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_TITLE]->getHeight();
topboxheight = topheight + 6;
botheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->getHeight();
- botboxheight = botheight + 6;
+ botboxheight = std::max(botheight, boticonheight) + 6;
buttonheight = std::max(16, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()) + BUTTONBAR_FONT_OFFSET;
sx = getScreenStartX (ox);
@@ -654,16 +655,13 @@ int CEpgData::show(const t_channel_id channel_id, unsigned long long a_id, time_
}
GetPrevNextEPGData( epgData.eventID, &epgData.epg_times.startzeit );
- if ((prev_id != 0) && !call_fromfollowlist)
+ if (!call_fromfollowlist)
{
- frameBuffer->paintBoxRel(sx+ 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_3);
- g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ 10, sy+ oy- 3, widthr, "<", COL_MENUCONTENT + 3);
- }
-
- if ((next_id != 0) && !call_fromfollowlist)
- {
- frameBuffer->paintBoxRel(sx+ ox- botboxheight+ 8- 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_3);
- g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ ox- botboxheight+ 8, sy+ oy- 3, widthr, ">", COL_MENUCONTENT + 3);
+ int iy = sy + oy - botboxheight/2 - boticonheight/2;
+ if (prev_id != 0)
+ frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_LEFT, sx + 6, iy);
+ if (next_id != 0)
+ frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_RIGHT, sx + ox - boticonwidth - 6, iy);
}
if ( doLoop )
@@ -688,9 +686,6 @@ int CEpgData::show(const t_channel_id channel_id, unsigned long long a_id, time_
case CRCInput::RC_left:
if ((prev_id != 0) && !call_fromfollowlist)
{
- frameBuffer->paintBoxRel(sx+ 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_1);
- g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ 10, sy+ oy- 3, widthr, "<", COL_MENUCONTENT + 1);
-
show(channel_id, prev_id, &prev_zeit, false);
showPos=0;
}
@@ -699,9 +694,6 @@ int CEpgData::show(const t_channel_id channel_id, unsigned long long a_id, time_
case CRCInput::RC_right:
if ((next_id != 0) && !call_fromfollowlist)
{
- frameBuffer->paintBoxRel(sx+ ox- botboxheight+ 8- 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_1);
- g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ ox- botboxheight+ 8, sy+ oy- 3, widthr, ">", COL_MENUCONTENT + 1);
-
show(channel_id, next_id, &next_zeit, false);
showPos=0;
}
@@ -1016,7 +1008,7 @@ const struct button_label epgviewButtons[3] =
void CEpgData::showTimerEventBar(bool _show)
{
- int ButtonWidth = (ox - 16) / 4; // 4 cells
+ int ButtonWidth = (ox - 12) / 4; // 4 cells
int by = sy + oy + 2;
// hide only?
@@ -1030,14 +1022,14 @@ void CEpgData::showTimerEventBar(bool _show)
// Button: Timer Record & Channelswitch
if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF)
- ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 8, by, ButtonWidth, 1, &epgviewButtons[0]);
+ ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 6, by, ButtonWidth, 1, &epgviewButtons[0]);
// Button: Timer Channelswitch
- ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 8 + ButtonWidth, by, ButtonWidth, 1, &epgviewButtons[1]);
+ ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 6 + ButtonWidth, by, ButtonWidth, 1, &epgviewButtons[1]);
// Button: more screenings
if (!followlist.empty() && !call_fromfollowlist)
- ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 8 + 2 * ButtonWidth, by, ButtonWidth, 1, &epgviewButtons[2], 2 * ButtonWidth - 2 * (ICON_LARGE_WIDTH + 2) - 4);
+ ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, sx + 6 + 2 * ButtonWidth, by, ButtonWidth, 1, &epgviewButtons[2], 2 * ButtonWidth - 2 * (ICON_LARGE_WIDTH + 2) - 4);
}
diff --git a/tuxbox/neutrino/src/gui/epgview.h b/tuxbox/neutrino/src/gui/epgview.h
index dc23a5a..5e46982 100644
--- a/tuxbox/neutrino/src/gui/epgview.h
+++ b/tuxbox/neutrino/src/gui/epgview.h
@@ -83,6 +83,7 @@ class CEpgData
std::vector<epg_pair> epgText;
int topheight,topboxheight;
int botheight,botboxheight;
+ int boticonwidth,boticonheight;
int buttonheight;
int medlineheight,medlinecount;
bool bigFonts;
commit a3eba28ffb2fcb6248a88e3f01dd27d11f74be01
Author: Christian Schuett <Gau...@ho...>
Date: Fri Jun 13 21:00:55 2014 +0200
Neutrino: remove unnecessary std::string::c_str() calls
there is no need to do this conversion when calling Font::RenderString()
or Font::getRenderWidth()
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/bedit/bouqueteditor_channels.cpp b/tuxbox/neutrino/src/gui/bedit/bouqueteditor_channels.cpp
index 4430bb5..4ba5b87 100644
--- a/tuxbox/neutrino/src/gui/bedit/bouqueteditor_channels.cpp
+++ b/tuxbox/neutrino/src/gui/bedit/bouqueteditor_channels.cpp
@@ -128,7 +128,7 @@ void CBEChannelWidget::paint()
void CBEChannelWidget::paintHead()
{
frameBuffer->paintBoxRel(x,y, width,theight+0, COL_MENUHEAD_PLUS_0, RADIUS_MID, CORNER_TOP);
- g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+10,y+theight+2, width, caption.c_str() , COL_MENUHEAD);
+ g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+10,y+theight+2, width, caption, COL_MENUHEAD);
}
const struct button_label CBEChannelWidgetButtons[4] =
diff --git a/tuxbox/neutrino/src/gui/bedit/bouqueteditor_chanselect.cpp b/tuxbox/neutrino/src/gui/bedit/bouqueteditor_chanselect.cpp
index d841168..29e0bb8 100644
--- a/tuxbox/neutrino/src/gui/bedit/bouqueteditor_chanselect.cpp
+++ b/tuxbox/neutrino/src/gui/bedit/bouqueteditor_chanselect.cpp
@@ -159,7 +159,7 @@ void CBEChannelSelectWidget::paintHead()
{
// paint head
frameBuffer->paintBoxRel(x,y, width, theight, COL_MENUHEAD_PLUS_0, RADIUS_MID, CORNER_TOP);
- g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+10,y+theight+2, width, caption.c_str() , COL_MENUHEAD);
+ g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+10,y+theight+2, width, caption, COL_MENUHEAD);
}
const struct button_label CBEBouquetSelectWidgetButtons[2] =
diff --git a/tuxbox/neutrino/src/gui/channellist.cpp b/tuxbox/neutrino/src/gui/channellist.cpp
index 378d3c2..8d0ca3d 100644
--- a/tuxbox/neutrino/src/gui/channellist.cpp
+++ b/tuxbox/neutrino/src/gui/channellist.cpp
@@ -1214,7 +1214,7 @@ void CChannelList::paintDetails(unsigned int index)
desc = desc + " (" + satpos_str + ")";
}
- g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x+ 10, y+ height+ 5+ 3*fheight, full_width - 30, desc.c_str(), COL_MENUCONTENTDARK, 0, true);
+ g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x+ 10, y+ height+ 5+ 3*fheight, full_width - 30, desc, COL_MENUCONTENTDARK, 0, true);
}
else if( !displayNext && g_settings.channellist_foot == FOOT_NEXT) {
char buf[128] = {0};
diff --git a/tuxbox/neutrino/src/gui/imageinfo.cpp b/tuxbox/neutrino/src/gui/imageinfo.cpp
index 9e52ef5..327ef95 100644
--- a/tuxbox/neutrino/src/gui/imageinfo.cpp
+++ b/tuxbox/neutrino/src/gui/imageinfo.cpp
@@ -295,7 +295,7 @@ void CImageInfo::paintLicense(int y_startposition)
int fh = ssheight+12;
for (int i = 0; i<13; i++) // paint all lines
{
- g_Font[font_small_text]->RenderString(xpos, y_startposition, width-10, LLine[i].c_str(), COL_MENUCONTENT, 0, true);
+ g_Font[font_small_text]->RenderString(xpos, y_startposition, width-10, LLine[i], COL_MENUCONTENT, 0, true);
y_startposition += (fh >>1);
}
diff --git a/tuxbox/neutrino/src/gui/infoviewer.cpp b/tuxbox/neutrino/src/gui/infoviewer.cpp
index 759ceb9..0cf4ffb 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.cpp
+++ b/tuxbox/neutrino/src/gui/infoviewer.cpp
@@ -1856,7 +1856,7 @@ void CInfoViewer::showInfoFile()
// text
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->RenderString(
- xStart + RADIUS_SMALL, BoxStartY + height, xEnd - xStart - RADIUS_SMALL*2, (std::string)infotext, COL_INFOBAR, height, false);
+ xStart + RADIUS_SMALL, BoxStartY + height, xEnd - xStart - RADIUS_SMALL*2, infotext, COL_INFOBAR, height);
}
void CInfoViewer::killTitle()
diff --git a/tuxbox/neutrino/src/gui/widget/listbox.cpp b/tuxbox/neutrino/src/gui/widget/listbox.cpp
index 7d115a8..35840f7 100644
--- a/tuxbox/neutrino/src/gui/widget/listbox.cpp
+++ b/tuxbox/neutrino/src/gui/widget/listbox.cpp
@@ -81,7 +81,7 @@ void CListBox::paint()
void CListBox::paintHead()
{
frameBuffer->paintBoxRel(x,y, width,theight+0, COL_MENUHEAD_PLUS_0);
- g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x + 10, y + theight + 2, width, caption.c_str(), COL_MENUHEAD);
+ g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x + 10, y + theight + 2, width, caption, COL_MENUHEAD);
}
const struct button_label CListBoxButtons[4] =
diff --git a/tuxbox/neutrino/src/gui/widget/menue.cpp b/tuxbox/neutrino/src/gui/widget/menue.cpp
index 9c10e88..914a166 100644
--- a/tuxbox/neutrino/src/gui/widget/menue.cpp
+++ b/tuxbox/neutrino/src/gui/widget/menue.cpp
@@ -554,7 +554,7 @@ void CMenuWidget::paint()
height = h_max(wanted_height, 0);
- int neededWidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(nameString.c_str(), true); // UTF-8
+ int neededWidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getRenderWidth(nameString, true); // UTF-8
if (neededWidth > width - 48)
width = w_max(neededWidth + 49, 0);
@@ -622,7 +622,7 @@ void CMenuWidget::paint()
if (!iconfile.empty())
frameBuffer->paintIcon(iconfile, x + 8, y + hheight / 2 - hiconheight / 2);
- g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x + hiconoffset + 10, y + hheight + 2, width - hiconoffset - 10, nameString.c_str(), COL_MENUHEAD, 0, true); // UTF-8
+ g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x + hiconoffset + 10, y + hheight + 2, width - hiconoffset - 10, nameString, COL_MENUHEAD, 0, true); // UTF-8
item_start_y = y+hheight;
paintItems();
commit e656a5ceab0bc16a5a814471456d5565b75f7816
Author: Christian Schuett <Gau...@ho...>
Date: Sun Jun 1 17:35:02 2014 +0200
Neutrino filebrowser: update footer if filelist is empty now or was before
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/filebrowser.cpp b/tuxbox/neutrino/src/gui/filebrowser.cpp
index a2b720a..222dd6d 100644
--- a/tuxbox/neutrino/src/gui/filebrowser.cpp
+++ b/tuxbox/neutrino/src/gui/filebrowser.cpp
@@ -369,6 +369,8 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
{
newpath += '/';
}
+
+ bool filelistWasEmpty = filelist.empty();
filelist.clear();
Path = newpath;
name = newpath;
@@ -397,8 +399,11 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
selected = 0;
if ((selection != -1) && (selection < (int)filelist.size()))
selected = selection;
+
paintHead();
paint();
+ if (filelistWasEmpty != filelist.empty())
+ paintFoot();
}
//------------------------------------------------------------------------
@@ -761,9 +766,9 @@ bool CFileBrowser::exec(const char * const dirname)
selection = selected;
paintHead();
+ m_SMSKeyInput.resetOldKey();
ChangeDir(name, selection);
//paint();
- m_SMSKeyInput.resetOldKey();
paintFoot();
int oldselected = selected;
commit bdfff6797ce8ab6c48b2a22ba4b5d8769c3291df
Author: Christian Schuett <Gau...@ho...>
Date: Thu May 29 21:23:00 2014 +0200
Neutrino eventlist: use correct width and height when painting 1st line
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/eventlist.cpp b/tuxbox/neutrino/src/gui/eventlist.cpp
index 729023f..5b51751 100644
--- a/tuxbox/neutrino/src/gui/eventlist.cpp
+++ b/tuxbox/neutrino/src/gui/eventlist.cpp
@@ -121,11 +121,7 @@ void EventList::init()
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_HELP, &iconw, &iconh);
theight = std::max(iconh, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE]->getHeight());
fheight1 = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]->getHeight();
- {
- int h1 = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->getHeight();
- int h2 = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->getHeight();
- fheight2 = (h1 > h2) ? h1 : h2;
- }
+ fheight2 = std::max(g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->getHeight(), g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->getHeight());
fheight = fheight1 + fheight2 + 2;
fwidth1 = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->getRenderWidth("DDD, 00:00, ");
fwidth2 = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->getRenderWidth("[999 min] ");
@@ -698,8 +694,8 @@ void EventList::paintItem(unsigned int pos)
}
// 1st line
- g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->RenderString(x+5, ypos+ fheight1+3, fwidth1+5, datetime1_str, color, 0, true); // UTF-8
- g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->RenderString(x+5+fwidth1, ypos+ fheight1+3, width-fwidth1-10- 20, datetime2_str, color, 0, true); // UTF-8
+ g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->RenderString(x+5, ypos+ fheight2+3, fwidth1+5, datetime1_str, color, 0, true); // UTF-8
+ g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_DATETIME]->RenderString(x+5+fwidth1, ypos+ fheight2+3, width-fwidth1-10- 20, datetime2_str, color, 0, true); // UTF-8
int seit = (evtlist[curpos].startTime - time(NULL)) / 60;
if ( (seit> 0) && (seit<100) && (duration_str.length()!=0) )
@@ -708,13 +704,14 @@ void EventList::paintItem(unsigned int pos)
sprintf((char*) &beginnt, "in %d min", seit);
int w = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->getRenderWidth(beginnt) + 10;
- g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->RenderString(x+width-fwidth2-5- 20- w, ypos+ fheight1+3, fwidth2, beginnt, color);
+ g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->RenderString(x+width-fwidth2-5- 20- w, ypos+ fheight2+3, w, beginnt, color);
}
- g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->RenderString(x+width-fwidth2-5- 20, ypos+ fheight1+3, fwidth2, duration_str, color, 0, true); // UTF-8
+ g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMSMALL]->RenderString(x+width-fwidth2-5- 20, ypos+ fheight2+3, fwidth2, duration_str, color, 0, true); // UTF-8
// 2nd line
g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]->RenderString(x+ 20, ypos+ fheight, width- 25- 20, evtlist[curpos].description, color);
unsigned char is_timer = isTimer(evtlist[curpos].startTime,evtlist[curpos].duration,evtlist[curpos].get_channel_id());
+ ypos -= 3;
if(is_timer == (EventList::CONFLICT<<4))
{
commit 86c724eeec86e6376de85d10c2a65eef44b722a0
Author: Christian Schuett <Gau...@ho...>
Date: Sat May 10 20:51:25 2014 +0200
Neutrino infoviewer: check for time being set
partly based on patch by martii <m4...@gm...> in Neutrino-MP Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/infoviewer.cpp b/tuxbox/neutrino/src/gui/infoviewer.cpp
index 45aa4cd..759ceb9 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.cpp
+++ b/tuxbox/neutrino/src/gui/infoviewer.cpp
@@ -211,6 +211,9 @@ void CInfoViewer::showSatfind()
void CInfoViewer::paintTime( bool show_dot, bool firstPaint )
{
+ if (!gotTime)
+ gotTime = g_Sectionsd->getIsTimeSet();
+
if ( gotTime )
{
ChanNameY = BoxStartY + (ChanHeight>>1) + SHADOW_OFFSET; //oberkante schatten?
@@ -358,6 +361,9 @@ void CInfoViewer::showMovieTitle(const int _playstate, const std::string &title,
BoxStartY = g_settings.screen_EndY - 20 - InfoHeightY - InfoHeightY_Info;
BoxEndY = g_settings.screen_EndY - 20 - InfoHeightY_Info;
+ if (!gotTime)
+ gotTime = g_Sectionsd->getIsTimeSet();
+
if (fadeIn)
{
frameBuffer->setAlphaFade(COL_INFOBAR, 8, convertSetupAlpha2Alpha(100));
commit 72ea568b77248d37551e42e6e0d4608c148ea5f6
Author: Christian Schuett <Gau...@ho...>
Date: Sat May 10 20:21:18 2014 +0200
Neutrino infoviewer: only show remaining time if time is set
based on patch by Stefan Seyfried <se...@tu...> in
Neutrino-MP Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/infoviewer.cpp b/tuxbox/neutrino/src/gui/infoviewer.cpp
index 167431d..45aa4cd 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.cpp
+++ b/tuxbox/neutrino/src/gui/infoviewer.cpp
@@ -1723,11 +1723,11 @@ void CInfoViewer::show_Data(bool calledFromEvent)
{
int seit = (abs(jetzt - info_CurrentNext.current_zeit.startzeit) + 30) / 60;
int rest = (info_CurrentNext.current_zeit.dauer / 60) - seit;
- if (jetzt < info_CurrentNext.current_zeit.startzeit)
- {
- progressbarPos = 0;
+ progressbarPos = 0;
+ if (!gotTime)
+ sprintf((char*)&runningRest, "%d min", info_CurrentNext.current_zeit.dauer / 60);
+ else if (jetzt < info_CurrentNext.current_zeit.startzeit)
sprintf((char*)&runningRest, "in %d min", seit);
- }
else
{
progressbarPos = (jetzt - info_CurrentNext.current_zeit.startzeit) * 112 / info_CurrentNext.current_zeit.dauer;
commit 7d2b13dc4f6909e9cd257701205727ef324cddd1
Author: Christian Schuett <Gau...@ho...>
Date: Sat May 10 19:55:26 2014 +0200
Neutrino listbox: use paintButtons in foot
based on patch by Jacek Jendrzej <cra...@go...> in Coolstream Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/widget/listbox.cpp b/tuxbox/neutrino/src/gui/widget/listbox.cpp
index 79ad79f..7d115a8 100644
--- a/tuxbox/neutrino/src/gui/widget/listbox.cpp
+++ b/tuxbox/neutrino/src/gui/widget/listbox.cpp
@@ -30,6 +30,7 @@
#include <global.h>
#include <neutrino.h>
+#include <gui/widget/buttons.h>
#include <gui/widget/icons.h>
#include <driver/screen_max.h>
@@ -83,25 +84,21 @@ void CListBox::paintHead()
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x + 10, y + theight + 2, width, caption.c_str(), COL_MENUHEAD);
}
+const struct button_label CListBoxButtons[4] =
+{
+ { NEUTRINO_ICON_BUTTON_OKAY , LOCALE_TIMERLIST_MODIFY },
+ { NEUTRINO_ICON_BUTTON_GREEN, LOCALE_BOUQUETEDITOR_ADD },
+ { NEUTRINO_ICON_BUTTON_RED , LOCALE_BOUQUETEDITOR_DELETE },
+ { NEUTRINO_ICON_BUTTON_HOME , LOCALE_BOUQUETEDITOR_RETURN }
+};
+
void CListBox::paintFoot()
{
int y_foot = y + height - ButtonHeight;
- int y_text = y + height - 2;
- int ButtonWidth = width / 4;
+ int ButtonWidth = (width - 16) / 4;
frameBuffer->paintBoxRel(x, y_foot, width, ButtonHeight, COL_MENUHEAD_PLUS_0);
frameBuffer->paintHLine(x, x+width, y, COL_INFOBAR_SHADOW_PLUS_0);
-
- frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_OKAY, x + width - 4 * ButtonWidth + 8, y_foot + 1);
- g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString(x + width - 4 * ButtonWidth + 38, y_text, width, "edit", COL_INFOBAR);
-
- frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_GREEN, x + width - 3 * ButtonWidth + 8, y_foot + 4);
- g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString(x + width - 3 * ButtonWidth + 29, y_text, width - 26, "add", COL_INFOBAR);
-
- frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_RED, x + width - 2 * ButtonWidth + 8, y_foot + 4);
- g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString(x + width - 2 * ButtonWidth + 29, y_text, width - 26, "remove", COL_INFOBAR);
-
- frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_HOME, x + width - ButtonWidth + 8, y_foot + 1);
- g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString(x + width - ButtonWidth + 38, y_text, width, "ready", COL_INFOBAR);
+ ::paintButtons(frameBuffer, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL], g_Locale, x + 8, y_foot + 2, ButtonWidth, 4, CListBoxButtons, 0, false, COL_MENUHEAD_PLUS_0);
}
void CListBox::paintItem(int pos)
commit 7e87a6f9389019c7717e622de6b54fa18819f198
Author: Christian Schuett <Gau...@ho...>
Date: Mon May 5 21:38:40 2014 +0200
Neutrino: don't leave SCART mode when recording starts
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/driver/vcrcontrol.cpp b/tuxbox/neutrino/src/driver/vcrcontrol.cpp
index c3a1a6b..cfe01ac 100644
--- a/tuxbox/neutrino/src/driver/vcrcontrol.cpp
+++ b/tuxbox/neutrino/src/driver/vcrcontrol.cpp
@@ -362,8 +362,10 @@ void CVCRControl::CFileAndServerDevice::RestoreNeutrino(void)
g_Sectionsd->setServiceChanged(g_RemoteControl->current_channel_id, false);
}
- // alten mode wieder herstellen (ausser wen zwischenzeitlich auf oder aus sb geschalten wurde)
+ // alten mode wiederherstellen (ausser wenn zwischenzeitlich auf oder aus standby oder SCART geschaltet wurde)
if(CNeutrinoApp::getInstance()->getMode() != last_mode &&
+ CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_scart &&
+ last_mode != NeutrinoMessages::mode_scart &&
CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby &&
last_mode != NeutrinoMessages::mode_standby)
g_RCInput->postMsg( NeutrinoMessages::CHANGEMODE , last_mode);
@@ -392,12 +394,15 @@ void CVCRControl::CFileAndServerDevice::CutBackNeutrino(const t_channel_id chann
if (channel_id != 0) // wenn ein channel angegeben ist
{
last_mode = CNeutrinoApp::getInstance()->getMode();
- if (mode != last_mode && (last_mode != NeutrinoMessages::mode_standby || mode != CNeutrinoApp::getInstance()->getLastMode()))
+ if (mode != last_mode && (mode != CNeutrinoApp::getInstance()->getLastMode() ||
+ last_mode != NeutrinoMessages::mode_standby && last_mode != NeutrinoMessages::mode_scart))
{
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , mode | NeutrinoMessages::norezap );
// Wenn wir im Standby waren, dann brauchen wir f�rs streamen nicht aufwachen...
if(last_mode == NeutrinoMessages::mode_standby)
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , NeutrinoMessages::mode_standby);
+ else if(last_mode == NeutrinoMessages::mode_scart) // possibly switch back to SCART mode
+ CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::VCR_ON, 0 );
}
if(g_Zapit->getCurrentServiceID() != channel_id) // und momentan noch nicht getuned ist
{
commit 691578491d37c66dcc45e905ba1f110ba2af9683
Author: GetAway <get...@t-...>
Date: Sun Apr 27 16:29:26 2014 +0200
Neutrino: remove deprecated USE_VBI_INTERFACE
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/pluginlist.cpp b/tuxbox/neutrino/src/gui/pluginlist.cpp
index d17d7a1..56b242f 100644
--- a/tuxbox/neutrino/src/gui/pluginlist.cpp
+++ b/tuxbox/neutrino/src/gui/pluginlist.cpp
@@ -57,16 +57,6 @@
#include <driver/screen_max.h>
#include <zapit/client/zapittools.h>
-
-/* for alexW images with old drivers:
- * #define USE_VBI_INTERFACE 1
- */
-
-#ifdef USE_VBI_INTERFACE
- #define AVIA_VBI_START_VTXT 1
- #define AVIA_VBI_STOP_VTXT 2
-#endif
-
#include <daemonc/remotecontrol.h>
CPluginList::CPluginList(const neutrino_locale_t Name, const uint listtype)
diff --git a/tuxbox/neutrino/src/gui/plugins.cpp b/tuxbox/neutrino/src/gui/plugins.cpp
index e86b8a8..2b9f36d 100644
--- a/tuxbox/neutrino/src/gui/plugins.cpp
+++ b/tuxbox/neutrino/src/gui/plugins.cpp
@@ -51,16 +51,6 @@
#include <neutrino.h>
#include <zapit/client/zapittools.h>
-
-/* for alexW images with old drivers:
- * #define USE_VBI_INTERFACE 1
- */
-
-#ifdef USE_VBI_INTERFACE
- #define AVIA_VBI_START_VTXT 1
- #define AVIA_VBI_STOP_VTXT 2
-#endif
-
#include <daemonc/remotecontrol.h>
#define PLUGINDIR_MNT "/mnt/plugins"
@@ -409,14 +399,7 @@ void CPlugins::startPlugin(int number, int param, int param2)
if (plugin_list[number].vtxtpid)
{
vtpid = g_RemoteControl->current_PIDs.PIDs.vtxtpid;
-#ifdef USE_VBI_INTERFACE
- int fd = open("/dev/dbox/vbi0", O_RDWR);
- if (fd > 0)
- {
- ioctl(fd, AVIA_VBI_STOP_VTXT, 0);
- close(fd);
- }
-#endif
+
if(param>0)
vtpid=param;
startparam = makeParam(P_ID_VTXTPID, vtpid, startparam);
@@ -529,22 +512,6 @@ void CPlugins::startPlugin(int number, int param, int param2)
frameBuffer->paletteSet();
frameBuffer->paintBackgroundBox(0,0,720,576);
}
-
-#ifdef USE_VBI_INTERFACE
- if (plugin_list[number].vtxtpid)
- {
- if (vtpid != 0)
- {
- // versuche, den gtx/enx_vbi wieder zu starten
- int fd = open("/dev/dbox/vbi0", O_RDWR);
- if (fd > 0)
- {
- ioctl(fd, AVIA_VBI_START_VTXT, vtpid);
- close(fd);
- }
- }
- }
-#endif
}
/* unload shared libs */
commit e4d3f8bb065c80a2d66dc23ba492096881568666
Author: Christian Schuett <Gau...@ho...>
Date: Wed Apr 23 22:16:11 2014 +0200
Neutrino EPG Plus: simplify page change code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/epgplus.cpp b/tuxbox/neutrino/src/gui/epgplus.cpp
index 21108e1..0b3fd63 100644
--- a/tuxbox/neutrino/src/gui/epgplus.cpp
+++ b/tuxbox/neutrino/src/gui/epgplus.cpp
@@ -958,69 +958,24 @@ int EpgPlus::exec(CChannelList* _channelList, int selectedChannelIndex, CBouquet
refreshAll = true;
break;
}
- if (msg == g_settings.key_channelList_pagedown || msg == CRCInput::RC_yellow)
+ if (msg == g_settings.key_channelList_pageup || msg == CRCInput::RC_green ||
+ msg == g_settings.key_channelList_pagedown || msg == CRCInput::RC_yellow)
{
if (!channelList->isEmpty())
{
- switch (currentSwapMode)
- {
- case SwapMode_ByPage:
- {
- int selectedChannelEntryIndex = selectedChannelEntry->index;
- selectedChannelEntryIndex += maxNumberOfDisplayableEntries;
-
- if (selectedChannelEntryIndex > channelList->getSize() - 1)
- selectedChannelEntryIndex = 0;
-
- createChannelEntries(selectedChannelEntryIndex);
- paint();
- break;
- }
+ int direction = (msg == g_settings.key_channelList_pageup || msg == CRCInput::RC_green) ? -1 : 1;
- case SwapMode_ByBouquet:
- {
- unsigned int currentBouquetNumber = bouquetList->getActiveBouquetNumber();
-#ifdef DEBUG_
- std::cout << "ViewMode_Bouquets " << currentBouquetNumber << std::endl;
-#endif
- ++currentBouquetNumber;
-
- if (currentBouquetNumber == bouquetList->Bouquets.size())
- currentBouquetNumber = 0;
-
- CBouquet* bouquet = bouquetList->Bouquets[currentBouquetNumber];
-#ifdef DEBUG_
- std::cout << "bouquet->unique_key " << bouquet->unique_key << " " << bouquet->channelList->getName() << std::endl;
-#endif
- if (!bouquet->channelList->isEmpty())
- {
- // select first channel of bouquet
-#ifdef DEBUG_
- std::cout << "(*bouquet->channelList)[0]->number " << (*bouquet->channelList)[0]->number << std::endl;
-#endif
- bouquetList->activateBouquet(currentBouquetNumber);
- channelListStartIndex = (*bouquet->channelList)[0]->number - 1;
- createChannelEntries(channelListStartIndex);
- paint();
- }
- break;
- }
- }
- }
- }
- else if (msg == g_settings.key_channelList_pageup || msg == CRCInput::RC_green)
- {
- if (!channelList->isEmpty())
- {
switch (currentSwapMode)
{
case SwapMode_ByPage:
{
int selectedChannelEntryIndex = selectedChannelEntry->index;
- selectedChannelEntryIndex -= maxNumberOfDisplayableEntries;
+ selectedChannelEntryIndex += maxNumberOfDisplayableEntries * direction;
if (selectedChannelEntryIndex < 0)
selectedChannelEntryIndex = channelList->getSize() - 1;
+ else if (selectedChannelEntryIndex > channelList->getSize() - 1)
+ selectedChannelEntryIndex = 0;
createChannelEntries(selectedChannelEntryIndex);
paint();
@@ -1033,10 +988,7 @@ int EpgPlus::exec(CChannelList* _channelList, int selectedChannelIndex, CBouquet
#ifdef DEBUG_
std::cout << "ViewMode_Bouquets " << currentBouquetNumber << std::endl;
#endif
- --currentBouquetNumber;
-
- if (currentBouquetNumber == unsigned(-1))
- currentBouquetNumber = bouquetList->Bouquets.size() - 1;
+ currentBouquetNumber = (currentBouquetNumber + bouquetList->Bouquets.size() + direction) % bouquetList->Bouquets.size();
CBouquet* bouquet = bouquetList->Bouquets[currentBouquetNumber];
#ifdef DEBUG_
commit 7d5f5e9f04f38e3064d9c97a437d28bd4971e29c
Author: Christian Schuett <Gau...@ho...>
Date: Wed Apr 23 20:05:14 2014 +0200
Neutrino EPG Plus: simplify channel selection code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/epgplus.cpp b/tuxbox/neutrino/src/gui/epgplus.cpp
index 7954d7d..21108e1 100644
--- a/tuxbox/neutrino/src/gui/epgplus.cpp
+++ b/tuxbox/neutrino/src/gui/epgplus.cpp
@@ -1135,51 +1135,14 @@ int EpgPlus::exec(CChannelList* _channelList, int selectedChannelIndex, CBouquet
paint();
}
}
- else if (msg_repeatok == CRCInput::RC_up)
+ else if (msg_repeatok == CRCInput::RC_up || msg_repeatok == CRCInput::RC_down)
{
if (!channelList->isEmpty()) {
-#ifdef DEBUG_
- std::cout << "RC_up" << std::endl;
-#endif
int selectedChannelEntryIndex = selectedChannelEntry->index;
int prevSelectedChannelEntryIndex = selectedChannelEntryIndex;
- --selectedChannelEntryIndex;
- if (selectedChannelEntryIndex < 0)
- {
-#ifdef DEBUG_
- std::cout << "this->selectedChannelEntry->index < 0" << std::endl;
-#endif
- selectedChannelEntryIndex = channelList->getSize() - 1;
- }
-
- int oldChannelListStartIndex = channelListStartIndex;
- channelListStartIndex = (selectedChannelEntryIndex / maxNumberOfDisplayableEntries) * maxNumberOfDisplayableEntries;
-
- if (oldChannelListStartIndex != channelListStartIndex)
- {
-#ifdef DEBUG_
- std::cout << "oldChannelListStartIndex != this->channelListStartIndex" << std::endl;
-#endif
- createChannelEntries(selectedChannelEntryIndex);
- paint();
- g_RCInput->clearRCMsg();
- }
- else
- {
- selectedChannelEntry = displayedChannelEntries[selectedChannelEntryIndex - channelListStartIndex];
- paintChannelEntry(prevSelectedChannelEntryIndex - channelListStartIndex);
- paintChannelEntry(selectedChannelEntryIndex - channelListStartIndex);
- }
- }
- }
- else if (msg_repeatok == CRCInput::RC_down)
- {
- if (!channelList->isEmpty()) {
- int selectedChannelEntryIndex = selectedChannelEntry->index;
- int prevSelectedChannelEntryIndex = selectedChannelEntry->index;
-
- selectedChannelEntryIndex = (selectedChannelEntryIndex + 1) % channelList->getSize();
+ int direction = (msg_repeatok == CRCInput::RC_up) ? -1 : 1;
+ selectedChannelEntryIndex = (selectedChannelEntryIndex + channelList->getSize() + direction) % channelList->getSize();
int oldChannelListStartIndex = channelListStartIndex;
channelListStartIndex = (selectedChannelEntryIndex / maxNumberOfDisplayableEntries) * maxNumberOfDisplayableEntries;
@@ -1194,7 +1157,7 @@ int EpgPlus::exec(CChannelList* _channelList, int selectedChannelIndex, CBouquet
{
selectedChannelEntry = displayedChannelEntries[selectedChannelEntryIndex - channelListStartIndex];
paintChannelEntry(prevSelectedChannelEntryIndex - channelListStartIndex);
- paintChannelEntry(selectedChannelEntry->index - channelListStartIndex);
+ paintChannelEntry(selectedChannelEntryIndex - channelListStartIndex);
}
}
}
commit f3767d7ecde1ebeb5511bdf1659b1b5790649737
Author: Christian Schuett <Gau...@ho...>
Date: Wed Apr 23 19:11:42 2014 +0200
Neutrino pictureviewer: simplify playlist selection code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/pictureviewer.cpp b/tuxbox/neutrino/src/gui/pictureviewer.cpp
index fe6c0f8..1a9a514 100644
--- a/tuxbox/neutrino/src/gui/pictureviewer.cpp
+++ b/tuxbox/neutrino/src/gui/pictureviewer.cpp
@@ -296,18 +296,13 @@ int CPictureViewerGui::show()
}
}
}
- else if (msg_repeatok == CRCInput::RC_up)
+ else if (msg_repeatok == CRCInput::RC_up || msg_repeatok == CRCInput::RC_down)
{
if ((m_state == MENU) && (!playlist.empty()))
{
int prevselected = selected;
- if (selected == 0)
- {
- selected = playlist.size() - 1;
- }
- else
- selected--;
- paintItem(prevselected - liststart);
+ int direction = (msg_repeatok == CRCInput::RC_up) ? -1 : 1;
+ selected = (selected + playlist.size() + direction) % playlist.size();
unsigned int oldliststart = liststart;
liststart = (selected / listmaxshow) * listmaxshow;
if (oldliststart != liststart)
@@ -316,25 +311,7 @@ int CPictureViewerGui::show()
}
else
{
- paintItem(selected - liststart);
- }
- }
- }
- else if (msg_repeatok == CRCInput::RC_down)
- {
- if ((m_state == MENU) && (!playlist.empty()))
- {
- int prevselected = selected;
- selected = (selected + 1) %playlist.size();
- paintItem(prevselected - liststart);
- unsigned int oldliststart = liststart;
- liststart = (selected / listmaxshow) * listmaxshow;
- if(oldliststart != liststart)
- {
- update = true;
- }
- else
- {
+ paintItem(prevselected - liststart);
paintItem(selected - liststart);
}
}
commit 2315d9e695d40a05d1c6d63fd4dd0882aacdac5e
Author: Christian Schuett <Gau...@ho...>
Date: Wed Apr 23 19:05:23 2014 +0200
Neutrino audioplayer: simplify playlist selection code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/audioplayer.cpp b/tuxbox/neutrino/src/gui/audioplayer.cpp
index cfa3e86..fedef56 100644
--- a/tuxbox/neutrino/src/gui/audioplayer.cpp
+++ b/tuxbox/neutrino/src/gui/audioplayer.cpp
@@ -439,6 +439,7 @@ int CAudioPlayerGui::show()
paint();
}
g_RCInput->getMsg(&msg, &data, 10); // 1 sec timeout to update play/stop state display
+ neutrino_msg_t msg_repeatok = msg & ~CRCInput::RC_Repeat;
if( msg == CRCInput::RC_timeout || msg == NeutrinoMessages::EVT_TIMER)
{
@@ -524,39 +525,13 @@ int CAudioPlayerGui::show()
}
}
}
- else if((msg &~ CRCInput::RC_Repeat) == CRCInput::RC_up)
+ else if(msg_repeatok == CRCInput::RC_up || msg_repeatok == CRCInput::RC_down)
{
if(m_show_playlist && !m_playlist.empty() )
{
int prevselected = m_selected;
- if(m_selected == 0)
- {
- m_selected = m_playlist.size()-1;
- }
- else
- {
- m_selected--;
- }
- paintItem(prevselected - m_liststart);
- unsigned int oldliststart = m_liststart;
- m_liststart = (m_selected/m_listmaxshow)*m_listmaxshow;
- if(oldliststart != m_liststart)
- {
- update = true;
- }
- else
- {
- paintItem(m_selected - m_liststart);
- }
- }
- }
- else if((msg &~ CRCInput::RC_Repeat) == CRCInput::RC_down)
- {
- if(m_show_playlist && !m_playlist.empty() )
- {
- int prevselected = m_selected;
- m_selected = (m_selected + 1) % m_playlist.size();
- paintItem(prevselected - m_liststart);
+ int direction = (msg_repeatok == CRCInput::RC_up) ? -1 : 1;
+ m_selected = (m_selected + m_playlist.size() + direction) % m_playlist.size();
unsigned int oldliststart = m_liststart;
m_liststart = (m_selected/m_listmaxshow)*m_listmaxshow;
if(oldliststart != m_liststart)
@@ -565,6 +540,7 @@ int CAudioPlayerGui::show()
}
else
{
+ paintItem(prevselected - m_liststart);
paintItem(m_selected - m_liststart);
}
}
commit 2414c6c9e827d2041b3a22fcc221af3c6e5eb60d
Author: Christian Schuett <Gau...@ho...>
Date: Tue Apr 22 21:53:38 2014 +0200
Neutrino movieplayer: add some missing play time hide calls
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/movieplayer.cpp b/tuxbox/neutrino/src/gui/movieplayer.cpp
index 61245a1..575ca8f 100644
--- a/tuxbox/neutrino/src/gui/movieplayer.cpp
+++ b/tuxbox/neutrino/src/gui/movieplayer.cpp
@@ -4237,6 +4237,7 @@ CMoviePlayerGui::PlayStream (int streamtype)
open_filebrowser = true;
aborted = false;
}
+ StreamTime.hide();
}
if(exit)
@@ -4526,6 +4527,7 @@ CMoviePlayerGui::PlayStream (int streamtype)
curl_free (tmp);
printf ("[movieplayer.cpp] Generated FILE MRL: %s\n", mrl);
+ StreamTime.hide();
update_info = true;
start_play = true;
}
diff --git a/tuxbox/neutrino/src/gui/movieplayer2.cpp b/tuxbox/neutrino/src/gui/movieplayer2.cpp
index 100c0e7..d5bcd80 100644
--- a/tuxbox/neutrino/src/gui/movieplayer2.cpp
+++ b/tuxbox/neutrino/src/gui/movieplayer2.cpp
@@ -2822,11 +2822,14 @@ CMoviePlayerGui::PlayStream(int streamtype)
mrl_str = filelist[selected].Name;
INFO ("Generated FILE MRL: %s\n", mrl_str.c_str());
+ if (stream) // stream time is only counting seconds...
+ StreamTime.hide();
update_info = true;
start_play = true;
}
else
{
+ StreamTime.hide();
open_filebrowser = true;
aborted = false;
}
@@ -3327,7 +3330,7 @@ CMoviePlayerGui::PlayStream(int streamtype)
if (g_playstate == CMoviePlayerGui::PLAY)
g_playstate = CMoviePlayerGui::SOFTRESET;
// g_playstate = CMoviePlayerGui::RESYNC;
- if (stream)
+ if (stream) // stream time is only counting seconds...
StreamTime.hide();
}
else if (msg == CRCInput::RC_blue)
@@ -3547,6 +3550,9 @@ CMoviePlayerGui::PlayStream(int streamtype)
else
mrl_str = filelist[selected].Name;
INFO("Generated FILE MRL: %s\n", mrl_str.c_str());
+
+ if (stream) // stream time is only counting seconds...
+ StreamTime.hide();
update_info = true;
start_play = true;
}
commit d6a9bf3f11c34a89ae98d9064256446de602f0ba
Author: Christian Schuett <Gau...@ho...>
Date: Tue Apr 22 21:39:13 2014 +0200
Neutrino movieplayer: simplify playlist selection code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/movieplayer.cpp b/tuxbox/neutrino/src/gui/movieplayer.cpp
index a089965..61245a1 100644
--- a/tuxbox/neutrino/src/gui/movieplayer.cpp
+++ b/tuxbox/neutrino/src/gui/movieplayer.cpp
@@ -4086,39 +4086,22 @@ void CMoviePlayerGui::PlayFile (int parental)
g_playstate = CMoviePlayerGui::JF;
break;
- //-- select previous item (in playlist) --
+ //-- select previous or next item (in playlist) --
case CRCInput::RC_up:
- if(isMovieBrowser == true)
- {
- int new_pos_sec = get_next_movie_info_bookmark_pos_sec(p_movie_info, g_fileposition / g_secondoffset, true);
- if(new_pos_sec >= 0)
- {
- g_jumpseconds = new_pos_sec;
- g_playstate = CMoviePlayerGui::JPOS;
- }
- }
- else
- {
- g_playstate = CMoviePlayerGui::ITEMSELECT;
- g_itno = -2;
- }
- break;
-
- //-- select next item (in playlist) --
case CRCInput::RC_down:
if(isMovieBrowser == true)
{
- int new_pos_sec = get_next_movie_info_bookmark_pos_sec(p_movie_info, g_fileposition / g_secondoffset, false);
+ int new_pos_sec = get_next_movie_info_bookmark_pos_sec(p_movie_info, g_fileposition / g_secondoffset, msg == CRCInput::RC_up);
if(new_pos_sec >= 0)
{
- g_jumpseconds = new_pos_sec ;
+ g_jumpseconds = new_pos_sec;
g_playstate = CMoviePlayerGui::JPOS;
}
}
else
{
g_playstate = CMoviePlayerGui::ITEMSELECT;
- g_itno = -1;
+ g_itno = (msg == CRCInput::RC_up) ? -2 : -1;
}
break;
@@ -4236,17 +4219,17 @@ CMoviePlayerGui::PlayStream (int streamtype)
do
{
if (g_playstate == CMoviePlayerGui::STOPPED && !cdDvd) {
- if(selected + 1 < _filelist.size() && !aborted) {
- selected++;
- filename = _filelist[selected].Name.c_str();
- sel_filename = _filelist[selected].getFileName();
- //printf ("[movieplayer.cpp] sel_filename: %s\n", filename);
- int namepos = _filelist[selected].Name.rfind("vlc://");
- std::string mrl_str = _filelist[selected].Name.substr(namepos + 6);
- char *tmp = curl_escape (mrl_str.c_str (), 0);
- strncpy (mrl, tmp, sizeof (mrl) - 1);
- curl_free (tmp);
- printf ("[movieplayer.cpp] Generated FILE MRL: %s\n", mrl);
+ if(selected + 1 < _filelist.size() && !aborted) {
+ selected++;
+ filename = _filelist[selected].Name.c_str();
+ sel_filename = _filelist[selected].getFileName();
+ //printf ("[movieplayer.cpp] sel_filename: %s\n", filename);
+ int namepos = _filelist[selected].Name.rfind("vlc://");
+ std::string mrl_str = _filelist[selected].Name.substr(namepos + 6);
+ char *tmp = curl_escape (mrl_str.c_str (), 0);
+ strncpy (mrl, tmp, sizeof (mrl) - 1);
+ curl_free (tmp);
+ printf ("[movieplayer.cpp] Generated FILE MRL: %s\n", mrl);
update_info = true;
start_play = true;
@@ -4254,8 +4237,6 @@ CMoviePlayerGui::PlayStream (int streamtype)
open_filebrowser = true;
aborted = false;
}
-
-
}
if(exit)
@@ -4401,7 +4382,8 @@ CMoviePlayerGui::PlayStream (int streamtype)
}
else if(msg == CRCInput::RC_green || msg == CRCInput::RC_0)
{
- if(g_playstate == CMoviePlayerGui::PLAY) g_playstate = CMoviePlayerGui::RESYNC;
+ if(g_playstate == CMoviePlayerGui::PLAY)
+ g_playstate = CMoviePlayerGui::RESYNC;
StreamTime.hide();
}
else if(msg == CRCInput::RC_blue)
@@ -4520,28 +4502,20 @@ CMoviePlayerGui::PlayStream (int streamtype)
static CMovieBrowser mb;
mb.showHelpVLC();
}
- else if(msg == CRCInput::RC_left)
+ else if(msg == CRCInput::RC_left || msg == CRCInput::RC_right)
{
- if(!_filelist.empty() && selected > 0 && g_playstate == CMoviePlayerGui::PLAY) {
- selected--;
- filename = _filelist[selected].Name.c_str();
- sel_filename = _filelist[selected].getFileName();
- //printf ("[movieplayer.cpp] sel_filename: %s\n", filename);
- int namepos = _filelist[selected].Name.rfind("vlc://");
- std::string mrl_str = _filelist[selected].Name.substr(namepos + 6);
- char *tmp = curl_escape (mrl_str.c_str (), 0);
- strncpy (mrl, tmp, sizeof (mrl) - 1);
- curl_free (tmp);
- printf ("[movieplayer.cpp] Generated FILE MRL: %s\n", mrl);
-
- update_info = true;
- start_play = true;
+ unsigned int new_selected = selected;
+ if(!_filelist.empty() && g_playstate == CMoviePlayerGui::PLAY)
+ {
+ if(msg == CRCInput::RC_left && selected > 0)
+ new_selected--;
+ else if(msg == CRCInput::RC_right && selected + 1 < _filelist.size())
+ new_selected++;
}
- }
- else if(msg == CRCInput::RC_right)
- {
- if(!_filelist.empty() && selected + 1 < _filelist.size() && g_playstate == CMoviePlayerGui::PLAY) {
- selected++;
+
+ if(selected != new_selected)
+ {
+ selected = new_selected;
filename = _filelist[selected].Name.c_str();
sel_filename = _filelist[selected].getFileName();
//printf ("[movieplayer.cpp] sel_filename: %s\n", filename);
commit a7e6b21659868746d2c5aa4e3e73e22e64b7c0ba
Author: Christian Schuett <Gau...@ho...>
Date: Sat Apr 19 18:56:39 2014 +0200
Neutrino movieplayer: simplify play time display code
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/movieplayer.cpp b/tuxbox/neutrino/src/gui/movieplayer.cpp
index 308fe54..a089965 100644
--- a/tuxbox/neutrino/src/gui/movieplayer.cpp
+++ b/tuxbox/neutrino/src/gui/movieplayer.cpp
@@ -3359,7 +3359,6 @@ void CMoviePlayerGui::PlayFile (int parental)
}
TRACE("[mp] do jump %d sec\r\n",g_jumpseconds);
- FileTime.hide();
loop = false; // do no further bookmark checks
}
}
@@ -3722,10 +3721,14 @@ void CMoviePlayerGui::PlayFile (int parental)
//-- filetime display --
//----------------------
- if(FileTime.IsVisible() && g_playstate == CMoviePlayerGui::PLAY)
+ if(g_playstate == CMoviePlayerGui::PLAY)
{
FileTime.update();
}
+ else if(g_playstate == CMoviePlayerGui::JPOS || g_playstate == CMoviePlayerGui::JF || g_playstate == CMoviePlayerGui::JB)
+ {
+ FileTime.hide();
+ }
//-- check RC code --
//-------------------
@@ -3975,14 +3978,12 @@ void CMoviePlayerGui::PlayFile (int parental)
case CRCInput::RC_left:
g_jumpseconds = -15;
g_playstate = CMoviePlayerGui::JB;
- FileTime.hide();
break;
//-- jump 1/4 minute forward --
case CRCInput::RC_right:
g_jumpseconds = 15;
g_playstate = CMoviePlayerGui::JF;
- FileTime.hide();
break;
//-- resync A/V --
@@ -4008,28 +4009,24 @@ void CMoviePlayerGui::PlayFile (int parental)
case CRCInput::RC_1:
g_jumpseconds = -60;
g_playstate = CMoviePlayerGui::JB;
- FileTime.hide();
break;
//-- jump to start --
case CRCInput::RC_2:
g_jumpseconds = 0;
g_playstate = CMoviePlayerGui::JPOS;
- FileTime.hide();
break;
//-- jump 1 minute forward --
case CRCInput::RC_3:
g_jumpseconds = 60;
g_playstate = CMoviePlayerGui::JF;
- FileTime.hide();
break;
//-- jump 5 minutes back --
case CRCInput::RC_4:
g_jumpseconds = -5 * 60;
g_playstate = CMoviePlayerGui::JB;
- FileTime.hide();
break;
//-- jump via gui --
@@ -4061,7 +4058,6 @@ void CMoviePlayerGui::PlayFile (int parental)
g_playstate = CMoviePlayerGui::JB;
}
printf("Jump %d\n",g_jumpseconds);
- FileTime.hide();
}
}
break;
@@ -4070,28 +4066,24 @@ void CMoviePlayerGui::PlayFile (int parental)
case CRCInput::RC_6:
g_jumpseconds = 5 * 60;
g_playstate = CMoviePlayerGui::JF;
- FileTime.hide();
break;
//-- jump 10 minutes back --
case CRCInput::RC_7:
g_jumpseconds = -10 * 60;
g_playstate = CMoviePlayerGui::JB;
- FileTime.hide();
break;
//-- jump to end --
case CRCInput::RC_8:
g_jumpseconds = PF_JMP_END; // dirty hack 2
g_playstate = CMoviePlayerGui::JPOS;
- FileTime.hide();
break;
//-- jump 10 minutes forward --
case CRCInput::RC_9:
g_jumpseconds = 10 * 60;
g_playstate = CMoviePlayerGui::JF;
- FileTime.hide();
break;
//-- select previous item (in playlist) --
@@ -4380,7 +4372,7 @@ CMoviePlayerGui::PlayStream (int streamtype)
}
g_RCInput->getMsg (&msg, &data, 10); // 1 secs..
- if(StreamTime.IsVisible() && g_playstate == CMoviePlayerGui::PLAY)
+ if(g_playstate == CMoviePlayerGui::PLAY)
{
StreamTime.update();
}
@@ -4388,6 +4380,7 @@ CMoviePlayerGui::PlayStream (int streamtype)
{
if(g_playstate >= CMoviePlayerGui::PLAY)
{
+ StreamTime.hide();
g_playstate = CMoviePlayerGui::STOPPED;
aborted = true;
if (cdDvd) {
@@ -4439,37 +4432,31 @@ CMoviePlayerGui::PlayStream (int streamtype)
{
skipvalue = "-00:01:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_3)
{
skipvalue = "+00:01:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_4)
{
skipvalue = "-00:05:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_6)
{
skipvalue = "+00:05:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_7)
{
skipvalue = "-00:10:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_9)
{
skipvalue = "+00:10:00";
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
else if(msg == CRCInput::RC_down || msg == CRCInput::RC_5)
{
@@ -4484,7 +4471,6 @@ CMoviePlayerGui::PlayStream (int streamtype)
if(skipvalue[0]== '=')
skipvalue = skipvalue.substr(1);
g_playstate = CMoviePlayerGui::SKIP;
- StreamTime.hide();
}
}
else if(msg == CRCInput::RC_setup)
@@ -4589,6 +4575,10 @@ CMoviePlayerGui::PlayStream (int streamtype)
{
exit = true;
}
+ if(g_playstate == CMoviePlayerGui::SKIP)
+ {
+ StreamTime.hide();
+ }
}
while (true);
remove("/tmp/tmpts");
diff --git a/tuxbox/neutrino/src/gui/timeosd.cpp b/tuxbox/neutrino/src/gui/timeosd.cpp
index 63bf2b0..1af084e 100644
--- a/tuxbox/neutrino/src/gui/timeosd.cpp
+++ b/tuxbox/neutrino/src/gui/timeosd.cpp
@@ -91,6 +91,9 @@ void CTimeOSD::update()
void CTimeOSD::hide()
{
- frameBuffer->paintBackgroundBoxRel(m_xend - m_width -20, m_y - 10 , m_width + 40, m_height + 20);
- visible=false;
+ if(visible)
+ {
+ frameBuffer->paintBackgroundBoxRel(m_xend - m_width -20, m_y - 10 , m_width + 40, m_height + 20);
+ visible=false;
+ }
}
commit 211d760fd09d9737e9d868b27c330ef9738e35b0
Author: Christian Schuett <Gau...@ho...>
Date: Sat Apr 12 21:27:56 2014 +0200
sectionsd: don't use iterator without locking to avoid possible segfault
based on idea by Jacek Jendrzej <cra...@go...> in Coolstream Git
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/daemons/sectionsd/sectionsd.cpp b/tuxbox/neutrino/daemons/sectionsd/sectionsd.cpp
index 0c2b602..3f9c428 100644
--- a/tuxbox/neutrino/daemons/sectionsd/sectionsd.cpp
+++ b/tuxbox/neutrino/daemons/sectionsd/sectionsd.cpp
@@ -876,7 +876,7 @@ static void addEvent(const SIevent &evt, const time_t zeit, bool cn = false)
}
unlockEvents();
- while (! to_delete.empty())
+ while (!to_delete.empty())
{
deleteEvent(to_delete.back());
to_delete.pop_back();
@@ -900,7 +900,7 @@ static void addEvent(const SIevent &evt, const time_t zeit, bool cn = false)
back = true;
}
else
- printf("[sectionsd] addevent: times.size != 1, please report\n");
+ dprintf("[sectionsd] addevent: times.size != 1, please report\n");
if (back)
{
@@ -916,8 +916,9 @@ static void addEvent(const SIevent &evt, const time_t zeit, bool cn = false)
unlockMessaging();
}
+ event_id_t uniqueKey = (*lastEvent)->uniqueKey();
unlockEvents();
- deleteEvent((*lastEvent)->uniqueKey());
+ deleteEvent(uniqueKey);
}
else
unlockEvents();
@@ -1059,8 +1060,10 @@ static void addNVODevent(const SIevent &evt)
--lastEvent;
}
unlockMessaging();
+
+ event_id_t uniqueKey = (*lastEvent)->uniqueKey();
unlockEvents();
- deleteEvent((*lastEvent)->uniqueKey());
+ deleteEvent(uniqueKey);
}
else
unlockEvents();
@@ -1175,6 +1178,7 @@ xmlNodePtr FindTransponder(xmlNodePtr provider, const t_original_network_id onid
static void removeOldEvents(const long seconds)
{
bool goodtimefound;
+ std::vector<event_id_t> to_delete;
// Alte events loeschen
time_t zeit = time(NULL);
@@ -1184,7 +1188,6 @@ static void removeOldEvents(const long seconds)
MySIeventsOrderFirstEndTimeServiceIDEventUniqueKey::iterator e = mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.begin();
while ((e != mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.end()) && (!messaging_zap_detected)) {
- unlockEvents();
goodtimefound = false;
for (SItimes::iterator t = (*e)->times.begin(); t != (*e)->times.end(); ++t) {
if (t->startzeit + (long)t->dauer >= zeit - seconds) {
@@ -1195,13 +1198,17 @@ static void removeOldEvents(const long seconds)
}
if (false == goodtimefound)
- deleteEvent((*(e++))->uniqueKey());
- else
- ++e;
- readLockEvents();
+ to_delete.push_back((*e)->uniqueKey());
+ ++e;
}
unlockEvents();
-
+
+ while (!to_delete.empty())
+ {
+ deleteEvent(to_delete.back());
+ to_delete.pop_back();
+ }
+
return;
}
@@ -1209,6 +1216,7 @@ static void removeWasteEvents()
{
bool haslinkage;
bool validevent;
+ std::vector<event_id_t> to_delete;
xmlDocPtr service_parser = parseXmlFile(SERVICES_XML);
xmlNodePtr services_tp;
@@ -1224,7 +1232,6 @@ static void removeWasteEvents()
MySIeventsOrderUniqueKey::iterator e = mySIeventsOrderUniqueKey.begin();
while ((e != mySIeventsOrderUniqueKey.end()) && (!messaging_zap_detected)) {
- unlockEvents();
validevent = true;
haslinkage = false;
if ((last_original_network_id == e->second->original_network_id) &&
@@ -1281,13 +1288,17 @@ static void removeWasteEvents()
}
if (!validevent)
- deleteEvent((e++)->first);
- else
- ++e;
- readLockEvents();
+ to_delete.push_back(e->first);
+ ++e;
}
unlockEvents();
+ while (!to_delete.empty())
+ {
+ deleteEvent(to_delete.back());
+ to_delete.pop_back();
+ }
+
xmlFreeDoc(service_parser);
return;
}
commit 5333d110be07709dd9e465002089ec2a9a330cf3
Author: Christian Schuett <Gau...@ho...>
Date: Sat Apr 12 00:04:31 2014 +0200
Neutrino CMenuWidget: remove an unnecessary constructor
Signed-off-by: Christian Schuett <Gau...@ho...>
Signed-off-by: Thilo Graf <db...@no...>
diff --git a/tuxbox/neutrino/src/gui/widget/dirchooser.h b/tuxbox/neutrino/src/gui/widget/dirchooser.h
index d24215a..d829219 100755
--- a/tuxbox/neutrino/src/gui/widget/dirchooser.h
+++ b/tuxbox/neutrino/src/gui/widget/dirchooser.h
@@ -41,7 +41,7 @@ extern unsigned int getFreeDiscSpaceGB(const char * dir);
extern int getFirstFreeRecDirNr(int min_free_gb);
#define MAX_ALLOWED_PATHS 2
-class CDirChooser : public CMenuWidget
+class CDirChooser : public CMenuTarget
{
private:
std::string* dirPath;
diff --git a/tuxbox/neutrino/src/gui/widget/menue.cpp b/tuxbox/neutrino/src/gui/widget/menue.cpp
index f90d6ed..9c10e88 100644
--- a/tuxbox/neutrino/src/gui/widget/menue.cpp
+++ b/tuxbox/neutrino/src/gui/widget/menue.cpp
@@ -244,15 +244,6 @@ void CMenuItem::paintItemButton(const bool select_mode, const int &item_height,
}
}
-CMenuWidget::CMenuWidget()
-{
- name = NONEXISTANT_LOCALE;
- nameString = g_Locale->getText(NONEXISTANT_LOCALE);
- iconfile="";
- selected=-1;
- iconOffset= 0;
-}
-
CMenuWidget::CMenuWidget(const neutrino_locale_t Name, const std::string & Icon, const int mwidth, const int mheight)
{
diff --git a/tuxbox/neutrino/src/gui/widget/menue.h b/tuxbox/neutrino/src/gui/widget/menue.h
index 9d0a5e3..6411aff 100644
--- a/tuxbox/neutrino/src/gui/widget/menue.h
+++ b/tuxbox/neutrino/src/gui/widget/menue.h
@@ -322,7 +322,6 @@ class CMenuWidget : public CMenuTarget
virtual bool updateSelection(int pos);
public:
- CMenuWidget();
CMenuWidget(const neutrino_locale_t Name, const std::string & Icon = "", const int mwidth = 400, const int mheight = 576);
CMenuWidget(const char* Name, const std::string & Icon = "", const int mwidth = 400, const int mheight = 576);
~CMenuWidget();
commit 612044f1e767b3f746c52274fe5e8a18f70061f6
Author: Christian Schuett <Gau...@ho...>
Date: Fri Apr 11 20:42:...
[truncated message content] |