mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
add a bunch of logging, temporarily, since this is often where
resource problems show themselves
This commit is contained in:
parent
f099cfaa69
commit
0d8993f90e
1 changed files with 16 additions and 3 deletions
|
@ -100,38 +100,44 @@ TGameInfoBuf::CopyToL( MPFORMAL CurGameInfo* aGi
|
||||||
CXWGameInfoDlg::CXWGameInfoDlg( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame )
|
CXWGameInfoDlg::CXWGameInfoDlg( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame )
|
||||||
: iIsNewGame(aNewGame), iGib(aGib)
|
: iIsNewGame(aNewGame), iGib(aGib)
|
||||||
{
|
{
|
||||||
|
XP_LOGF( "CXWGameInfoDlg::CXWGameInfoDlg" );
|
||||||
MPASSIGN( this->mpool, mpool );
|
MPASSIGN( this->mpool, mpool );
|
||||||
}
|
}
|
||||||
|
|
||||||
CXWGameInfoDlg::~CXWGameInfoDlg()
|
CXWGameInfoDlg::~CXWGameInfoDlg()
|
||||||
{
|
{
|
||||||
|
XP_LOGF( "CXWGameInfoDlg::~CXWGameInfoDlg" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CXWGameInfoDlg::PreLayoutDynInitL()
|
CXWGameInfoDlg::PreLayoutDynInitL()
|
||||||
{
|
{
|
||||||
|
XP_LOGF( "CXWGameInfoDlg::PreLayoutDynInitL" );
|
||||||
#if defined SERIES_80
|
#if defined SERIES_80
|
||||||
XP_U16 i;
|
|
||||||
CEikChoiceList* list;
|
|
||||||
|
|
||||||
/* This likely belongs in its own method */
|
/* This likely belongs in its own method */
|
||||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||||
const TInt deps[] = {
|
const TInt deps[] = {
|
||||||
EConnectionRole
|
EConnectionRole
|
||||||
};
|
};
|
||||||
|
TInt i;
|
||||||
for ( i = 0; i < sizeof(deps)/sizeof(deps[0]); ++i ) {
|
for ( i = 0; i < sizeof(deps)/sizeof(deps[0]); ++i ) {
|
||||||
HandleControlStateChangeL( deps[i] );
|
HandleControlStateChangeL( deps[i] );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CEikChoiceList* list;
|
||||||
list = static_cast<CEikChoiceList*>(Control(ENPlayersList));
|
list = static_cast<CEikChoiceList*>(Control(ENPlayersList));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
list->SetCurrentItem( iGib->iNPlayers - 1 );
|
list->SetCurrentItem( iGib->iNPlayers - 1 );
|
||||||
|
|
||||||
list = static_cast<CEikChoiceList*>(Control(ENPlayersWhichList));
|
list = static_cast<CEikChoiceList*>(Control(ENPlayersWhichList));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
list->SetArrayExternalOwnership( EFalse );
|
list->SetArrayExternalOwnership( EFalse );
|
||||||
list->SetArrayL( MakeNumListL( 1, iGib->iNPlayers ) );
|
list->SetArrayL( MakeNumListL( 1, iGib->iNPlayers ) );
|
||||||
|
|
||||||
list = static_cast<CEikChoiceList*>(Control(ESelDictChoice));
|
list = static_cast<CEikChoiceList*>(Control(ESelDictChoice));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
list->SetArrayL( iGib->iDictList );
|
list->SetArrayL( iGib->iDictList );
|
||||||
list->SetCurrentItem( iGib->iDictIndex );
|
list->SetCurrentItem( iGib->iDictIndex );
|
||||||
|
|
||||||
|
@ -140,11 +146,13 @@ CXWGameInfoDlg::PreLayoutDynInitL()
|
||||||
|
|
||||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||||
list = static_cast<CEikChoiceList*>(Control(EConnectionRole));
|
list = static_cast<CEikChoiceList*>(Control(EConnectionRole));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
TInt sel = (TInt)iGib->iServerRole;
|
TInt sel = (TInt)iGib->iServerRole;
|
||||||
list->SetCurrentItem( sel );
|
list->SetCurrentItem( sel );
|
||||||
list->DrawDeferred();
|
list->DrawDeferred();
|
||||||
|
|
||||||
list = static_cast<CEikChoiceList*>(Control(EConnectionType));
|
list = static_cast<CEikChoiceList*>(Control(EConnectionType));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
sel = (TInt)(iGib->iCommsAddr.conType) - 1;
|
sel = (TInt)(iGib->iCommsAddr.conType) - 1;
|
||||||
XP_ASSERT( sel >= 0 );
|
XP_ASSERT( sel >= 0 );
|
||||||
list->SetCurrentItem( sel );
|
list->SetCurrentItem( sel );
|
||||||
|
@ -170,6 +178,7 @@ CXWGameInfoDlg::PreLayoutDynInitL()
|
||||||
void
|
void
|
||||||
CXWGameInfoDlg::HideAndShow()
|
CXWGameInfoDlg::HideAndShow()
|
||||||
{
|
{
|
||||||
|
XP_LOGF( "HideAndShow" );
|
||||||
#if defined SERIES_80
|
#if defined SERIES_80
|
||||||
CEikChoiceList* list;
|
CEikChoiceList* list;
|
||||||
/* if it's standalone, hide all else. Then if it's not IP, hide all
|
/* if it's standalone, hide all else. Then if it's not IP, hide all
|
||||||
|
@ -178,11 +187,13 @@ CXWGameInfoDlg::HideAndShow()
|
||||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||||
TBool showConnect;
|
TBool showConnect;
|
||||||
list = static_cast<CEikChoiceList*>(Control(EConnectionRole));
|
list = static_cast<CEikChoiceList*>(Control(EConnectionRole));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
showConnect = list->CurrentItem() != 0;
|
showConnect = list->CurrentItem() != 0;
|
||||||
|
|
||||||
TBool showIP = showConnect;
|
TBool showIP = showConnect;
|
||||||
if ( showIP ) {
|
if ( showIP ) {
|
||||||
list = static_cast<CEikChoiceList*>(Control(EConnectionType));
|
list = static_cast<CEikChoiceList*>(Control(EConnectionType));
|
||||||
|
XP_ASSERT( list != NULL );
|
||||||
showIP = list->CurrentItem() == 0;
|
showIP = list->CurrentItem() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,8 +207,8 @@ CXWGameInfoDlg::HideAndShow()
|
||||||
void
|
void
|
||||||
CXWGameInfoDlg::HandleControlStateChangeL( TInt aControlId )
|
CXWGameInfoDlg::HandleControlStateChangeL( TInt aControlId )
|
||||||
{
|
{
|
||||||
#if defined SERIES_80
|
|
||||||
XP_LOGF( "HandleControlStateChangeL got %d", aControlId );
|
XP_LOGF( "HandleControlStateChangeL got %d", aControlId );
|
||||||
|
#if defined SERIES_80
|
||||||
CEikChoiceList* list;
|
CEikChoiceList* list;
|
||||||
CEikChoiceList* whichList;
|
CEikChoiceList* whichList;
|
||||||
TInt item;
|
TInt item;
|
||||||
|
@ -380,7 +391,9 @@ CXWGameInfoDlg::MakeNumListL( TInt aFirst, TInt aLast )
|
||||||
/* static*/ TBool
|
/* static*/ TBool
|
||||||
CXWGameInfoDlg::DoGameInfoDlgL( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame )
|
CXWGameInfoDlg::DoGameInfoDlgL( MPFORMAL TGameInfoBuf* aGib, TBool aNewGame )
|
||||||
{
|
{
|
||||||
|
XP_LOGF( "CXWGameInfoDlg::DoGameInfoDlgL called" );
|
||||||
CXWGameInfoDlg* me =
|
CXWGameInfoDlg* me =
|
||||||
new(ELeave)CXWGameInfoDlg( MPPARM(mpool) aGib, aNewGame );
|
new(ELeave)CXWGameInfoDlg( MPPARM(mpool) aGib, aNewGame );
|
||||||
|
XP_LOGF( "calling ExecuteLD" );
|
||||||
return me->ExecuteLD( R_XWORDS_NEWGAME_DLG );
|
return me->ExecuteLD( R_XWORDS_NEWGAME_DLG );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue