mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
protect stuff that won't compile for series 60. Need to figure out
equivalents.
This commit is contained in:
parent
3a018e5504
commit
1df73a0010
1 changed files with 43 additions and 5 deletions
|
@ -28,8 +28,12 @@ NAME XWRD
|
||||||
#include <eikon.rh>
|
#include <eikon.rh>
|
||||||
#include <eikon.rsg>
|
#include <eikon.rsg>
|
||||||
|
|
||||||
#include "xwords.hrh"
|
#if defined SERIES_60
|
||||||
|
# include <avkon.rh>
|
||||||
|
# include <avkon.hrh>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "xwords.hrh"
|
||||||
|
|
||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -331,7 +335,9 @@ RESOURCE ARRAY r_xwords_newgame_page_conn
|
||||||
{
|
{
|
||||||
prompt = "Role";
|
prompt = "Role";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { array_id = r_conn_roles; };
|
control = CHOICELIST { array_id = r_conn_roles; };
|
||||||
|
#endif
|
||||||
id = EConnectionRole;
|
id = EConnectionRole;
|
||||||
// itemflags =
|
// itemflags =
|
||||||
},
|
},
|
||||||
|
@ -339,7 +345,20 @@ RESOURCE ARRAY r_xwords_newgame_page_conn
|
||||||
{
|
{
|
||||||
prompt = "Connect via";
|
prompt = "Connect via";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { array_id = r_conn_types; };
|
control = CHOICELIST { array_id = r_conn_types; };
|
||||||
|
#elif defined SERIES_60
|
||||||
|
control = AVKON_LIST_QUERY_CONTROL {
|
||||||
|
listtype = EAknCtSingleHeadingPopupMenuListBox;
|
||||||
|
listbox = LISTBOX {
|
||||||
|
flags = EAknListBoxMenuList;
|
||||||
|
height = 5;
|
||||||
|
width = 20;
|
||||||
|
array_id = r_conn_types;
|
||||||
|
};
|
||||||
|
/* heading = qtn_aknexquery_list_title; */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
id = EConnectionType;
|
id = EConnectionType;
|
||||||
// itemflags =
|
// itemflags =
|
||||||
},
|
},
|
||||||
|
@ -377,21 +396,27 @@ RESOURCE ARRAY r_xwords_newgame_page_players
|
||||||
|
|
||||||
prompt = "Number of players";
|
prompt = "Number of players";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { array_id = r_four_nums; };
|
control = CHOICELIST { array_id = r_four_nums; };
|
||||||
|
#endif
|
||||||
id = ENPlayersList;
|
id = ENPlayersList;
|
||||||
|
|
||||||
}, DLG_LINE {
|
}, DLG_LINE {
|
||||||
|
|
||||||
prompt = "Show player";
|
prompt = "Show player";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { maxdisplaychar = 2; };
|
control = CHOICELIST { maxdisplaychar = 2; };
|
||||||
|
#endif
|
||||||
id = ENPlayersWhichList;
|
id = ENPlayersWhichList;
|
||||||
|
|
||||||
}, DLG_LINE {
|
}, DLG_LINE {
|
||||||
|
|
||||||
prompt = "Location";
|
prompt = "Location";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { array_id = r_location_choices; };
|
control = CHOICELIST { array_id = r_location_choices; };
|
||||||
|
#endif
|
||||||
id = EPlayerLocationChoice;
|
id = EPlayerLocationChoice;
|
||||||
|
|
||||||
} ,DLG_LINE {
|
} ,DLG_LINE {
|
||||||
|
@ -405,7 +430,9 @@ RESOURCE ARRAY r_xwords_newgame_page_players
|
||||||
|
|
||||||
prompt = "Species";
|
prompt = "Species";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { array_id = r_player_species; };
|
control = CHOICELIST { array_id = r_player_species; };
|
||||||
|
#endif
|
||||||
id = EPlayerSpeciesChoice;
|
id = EPlayerSpeciesChoice;
|
||||||
|
|
||||||
} ,DLG_LINE {
|
} ,DLG_LINE {
|
||||||
|
@ -446,7 +473,7 @@ RESOURCE DLG_BUTTONS r_dict_browse_button
|
||||||
{
|
{
|
||||||
id = EDictBrowseButton;
|
id = EDictBrowseButton;
|
||||||
button = CMBUT { txt = "Browse"; };
|
button = CMBUT { txt = "Browse"; };
|
||||||
hotkey = "B";
|
/* hotkey = "B"; */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -458,13 +485,15 @@ RESOURCE ARRAY r_xwords_newgame_page_dict
|
||||||
DLG_LINE {
|
DLG_LINE {
|
||||||
prompt = "Game dictionary";
|
prompt = "Game dictionary";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { flags = EEikChlistArrayOwnedExternally; };
|
control = CHOICELIST { flags = EEikChlistArrayOwnedExternally; };
|
||||||
|
#endif
|
||||||
id = ESelDictChoice;
|
id = ESelDictChoice;
|
||||||
}
|
}
|
||||||
#ifdef SERIES_60
|
#ifdef SERIES_60
|
||||||
,DLG_LINE {
|
/* ,DLG_LINE { */
|
||||||
buttons = r_dict_browse_button;
|
/* buttons = r_dict_browse_button; */
|
||||||
}
|
/* } */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -489,7 +518,9 @@ RESOURCE DIALOG r_xwords_newgame_dlg
|
||||||
title = "Game setup";
|
title = "Game setup";
|
||||||
/* This doesn't work in series 60. How do I differentiate? Sep .rss
|
/* This doesn't work in series 60. How do I differentiate? Sep .rss
|
||||||
files? */
|
files? */
|
||||||
|
#if defined SERIES_80
|
||||||
buttons = R_EIK_BUTTONS_CANCEL_OK;
|
buttons = R_EIK_BUTTONS_CANCEL_OK;
|
||||||
|
#endif
|
||||||
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
||||||
pages = r_xwords_newgame_pages;
|
pages = r_xwords_newgame_pages;
|
||||||
}
|
}
|
||||||
|
@ -497,13 +528,18 @@ RESOURCE DIALOG r_xwords_newgame_dlg
|
||||||
RESOURCE DIALOG r_xwords_blank_picker
|
RESOURCE DIALOG r_xwords_blank_picker
|
||||||
{
|
{
|
||||||
title = "Tile picker";
|
title = "Tile picker";
|
||||||
|
#if defined SERIES_80
|
||||||
buttons = R_EIK_BUTTONS_CONTINUE;
|
buttons = R_EIK_BUTTONS_CONTINUE;
|
||||||
|
#endif
|
||||||
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
||||||
items = {
|
items = {
|
||||||
DLG_LINE {
|
DLG_LINE {
|
||||||
prompt = "Choose one";
|
prompt = "Choose one";
|
||||||
type = EEikCtChoiceList;
|
type = EEikCtChoiceList;
|
||||||
|
#if defined SERIES_80
|
||||||
control = CHOICELIST { flags = EEikChlistArrayOwnedExternally; };
|
control = CHOICELIST { flags = EEikChlistArrayOwnedExternally; };
|
||||||
|
#elif defined SERIES_60
|
||||||
|
#endif
|
||||||
id = ESelBlankChoice;
|
id = ESelBlankChoice;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -558,7 +594,9 @@ RESOURCE DIALOG r_xwords_savedgames_dlg
|
||||||
RESOURCE DIALOG r_xwords_editname_dlg
|
RESOURCE DIALOG r_xwords_editname_dlg
|
||||||
{
|
{
|
||||||
title = "Change name";
|
title = "Change name";
|
||||||
|
#if defined SERIES_80
|
||||||
buttons = R_EIK_BUTTONS_CANCEL_OK;
|
buttons = R_EIK_BUTTONS_CANCEL_OK;
|
||||||
|
#endif
|
||||||
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
flags = EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
|
||||||
items = {
|
items = {
|
||||||
DLG_LINE {
|
DLG_LINE {
|
||||||
|
|
Loading…
Add table
Reference in a new issue