*neutrino scansetup: use unified menu width

make width usable also for transponder selector

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1334 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-03-24 10:13:39 +00:00
parent 91071d38f8
commit 27dcf63884
2 changed files with 6 additions and 3 deletions

View File

@@ -790,7 +790,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/
old_position = position;
}
CMenuWidget menu(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS);
CMenuWidget menu(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS, width);
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
menu.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); //add cancel button, ensures that we have enought space left from item caption

View File

@@ -45,6 +45,9 @@
class CScanSetup : public CMenuTarget
{
protected:
int width;
private:
CSatelliteSetupNotifier *satNotify;
CAllUsalsNotifier *usalsNotify;
@@ -53,7 +56,7 @@ class CScanSetup : public CMenuTarget
bool is_wizard;
int width, selected;
int selected;
int dmode;
int sfound;
int fec_count;
@@ -100,7 +103,7 @@ class CScanSetup : public CMenuTarget
int exec(CMenuTarget* parent, const std::string & actionKey = "");
};
class CTPSelectHandler : public CMenuTarget
class CTPSelectHandler : public CScanSetup
{
public:
int exec(CMenuTarget* parent, const std::string &actionkey);