{
viewman = ViewMan::getInstance();
- create(460, 190);
+ create(460, 200);
if (Video::getInstance()->getFormat() == Video::PAL)
{
setScreenPos(140, 170);
wb = new WButton();
wb->setText("General");
wb->setSurface(surface);
- wb->setSurfaceOffset(160, 70);
+ wb->setSurfaceOffset(160, 60);
wb->setDimensions(140, fontHeight);
wb->setTag(1);
buttons.push_back(wb);
wb = new WButton();
wb->setText("Timers");
wb->setSurface(surface);
- wb->setSurfaceOffset(160, 110);
+ wb->setSurfaceOffset(160, 100);
wb->setDimensions(140, fontHeight);
wb->setTag(2);
buttons.push_back(wb);
+ wb = new WButton();
+ wb->setText("Advanced");
+ wb->setSurface(surface);
+ wb->setSurfaceOffset(160, 140);
+ wb->setDimensions(140, fontHeight);
+ wb->setTag(3);
+ buttons.push_back(wb);
+
+
selectedButton = buttons.begin();
(*selectedButton)->setActive(1);
}
{
case 1: doGeneral(); break;
case 2: doTimers(); break;
+ case 3: doAdvanced(); break;
}
return 2;
}
}
break;
}
+ case 13:
+ {
+ size_t newTCPsize = 2048;
+
+ if (i->second == 0) newTCPsize = 1024;
+ else if (i->second == 1) newTCPsize = 2048;
+ else if (i->second == 2) newTCPsize = 4096;
+ else if (i->second == 3) newTCPsize = 8192;
+ else if (i->second == 4) newTCPsize = 16384;
+ else if (i->second == 5) newTCPsize = 32768;
+ else if (i->second == 6) newTCPsize = 65536;
+
+ Log::getInstance()->log("Options", Log::DEBUG, "Setting TCP window size %i", newTCPsize);
+ vdr->setReceiveWindow(newTCPsize);
+ break;
+ }
}
}
void VOptionsMenu::doGeneral()
{
- static const int numOptions = 8;
+ static const int numOptions = 7;
static const char* options1[] = {"Old", "New"};
static const char* options3[] = {"RGB+composite", "S-Video"};
{5, "16:9 on 4:3 display mode", "TV", "Widemode", OPTIONTYPE_TEXT, 2, 0, 0, options5 },
{6, "Power state after bootup", "General", "Power After Boot", OPTIONTYPE_TEXT, 3, 0, 0, options6 },
{7, "Display channels", "General", "Channels", OPTIONTYPE_TEXT, 2, 0, 0, options7 },
- {8, "VDR-Pri 0=OK !See forums!","General", "Live priority", OPTIONTYPE_INT, 100, 0, 0, NULL }
};
// As all the above data is const static, it can be sent to the new View, this stack frame can
// quit and the pointers will all still be valid. I think. (Hope).
- VOptions* v = new VOptions(this, "General Options", optionData, numOptions);
+ VOptions* v = new VOptions(this, tr("General Options"), optionData, numOptions);
v->draw();
viewman->add(v);
viewman->updateView(v);
{9, "Default start margin (minutes)", "Timers", "Start margin", OPTIONTYPE_INT, 20, 5, 0, NULL },
{10, "Default end margin (minutes)", "Timers", "End margin", OPTIONTYPE_INT, 20, 5, 0, NULL },
{11, "Default priority", "Timers", "Priority", OPTIONTYPE_INT, 100, 99, 0, NULL },
- {12, "Default lifetime", "Timers", "Lifetime", OPTIONTYPE_INT, 100, 99, 0, NULL }
+ {12, "Default lifetime", "Timers", "Lifetime", OPTIONTYPE_INT, 100, 99, 0, NULL },
+ };
+
+ // As all the above data is const static, it can be sent to the new View, this stack frame can
+ // quit and the pointers will all still be valid. I think. (Hope).
+
+ VOptions* v = new VOptions(this, tr("Timer Options"), optionData, numOptions);
+ v->draw();
+ viewman->add(v);
+ viewman->updateView(v);
+}
+
+void VOptionsMenu::doAdvanced()
+{
+ static const int numOptions = 2;
+
+ static const char* options13[] = {"1024", "2048", "4096", "8192", "16384", "32768", "65536"};
+
+ const static OPTIONDATA optionData[numOptions] =
+ {
+ {8, "VDR-Pri 0=OK !See forums!", "General", "Live priority", OPTIONTYPE_INT, 100, 0, 0, NULL },
+ {13, "TCP receive window size", "Advanced", "TCP receive window", OPTIONTYPE_TEXT, 7, 1, 0, options13 }
};
// As all the above data is const static, it can be sent to the new View, this stack frame can
// quit and the pointers will all still be valid. I think. (Hope).
- VOptions* v = new VOptions(this, "Timer Options", optionData, numOptions);
+ VOptions* v = new VOptions(this, tr("Advanced Options"), optionData, numOptions);
v->draw();
viewman->add(v);
viewman->updateView(v);