?? oandx.rss
字號:
// Copyright (c) 2004 - 2006, Symbian Software Ltd. All rights reserved.
NAME OANX
#include <appinfo.rh>
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include "OandX.hrh"
RESOURCE RSS_SIGNATURE
{
}
RESOURCE TBUF r_default_document_name
{
buf="";
}
RESOURCE EIK_APP_INFO
{
menubar = r_oandx_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
RESOURCE MENU_BAR r_oandx_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_oandx_menu;
}
};
}
RESOURCE MENU_PANE r_oandx_menu
{
items =
{
MENU_ITEM
{
command = EOandXOfferGame;
txt = "Offer game";
cascade = r_oandx_offer_submenu;
},
MENU_ITEM
{
command = EOandXJoinGame;
txt = "Join game";
cascade = r_oandx_join_submenu;
},
MENU_ITEM
{
command = EOandXSendIndex;
txt = "Send Index";
}
};
}
RESOURCE MENU_PANE r_oandx_offer_submenu
{
items =
{
MENU_ITEM {command = EOandXOfferGameSerialComm; txt = "Comm";},
MENU_ITEM {command = EOandXOfferGameIrComm; txt = "IrComm";},
MENU_ITEM {command = EOandXOfferGameBtComm; txt = "BTComm";},
MENU_ITEM {command = EOandXOfferGameSms; txt = "SMS";},
MENU_ITEM {command = EOandXOfferGameMmsSendAs; txt = "MMS SendAs";},
MENU_ITEM {command = EOandXOfferGameEmail; txt = "Email";},
MENU_ITEM {command = EOandXOfferGameMms; txt = "MMS";},
MENU_ITEM {command = EOandXOfferGameBluetooth; txt = "Bluetooth";},
MENU_ITEM {command = EOandXOfferGameIrSocket; txt = "IR Socket";}
};
}
RESOURCE MENU_PANE r_oandx_join_submenu
{
items =
{
MENU_ITEM {command = EOandXJoinGameSerialComm; txt = "Comm";},
MENU_ITEM {command = EOandXJoinGameIrComm; txt = "IRComm";},
MENU_ITEM {command = EOandXJoinGameBtComm; txt = "BTComm";},
MENU_ITEM {command = EOandXJoinGameSms; txt = "SMS";},
MENU_ITEM {command = EOandXJoinGameMmsSendAs; txt = "MMS SendAs";},
MENU_ITEM {command = EOandXJoinGameEmail; txt = "Email";},
MENU_ITEM {command = EOandXJoinGameMms; txt = "MMS";},
MENU_ITEM {command = EOandXJoinGameBluetooth; txt = "Bluetooth";},
MENU_ITEM {command = EOandXJoinGameIrSocket; txt = "IR Socket";}
};
}
RESOURCE TBUF r_oandx_o_wins
{
buf = "Noughts win"; // Maximum 40 characters - has to fit in an information note
}
RESOURCE TBUF r_oandx_x_wins
{
buf = "Crosses win"; // Maximum 40 characters - has to fit in an information note
}
// wait dialog. The body text is set at runtime.
RESOURCE DIALOG r_wait_dialog
{
flags = EAknWaitNoteFlags | EEikDialogFlagWait;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EBtWaitDlgNoteLineId;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = "";
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
RESOURCE DIALOG r_address_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EAddressTextId;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = "Address";
control = EDWIN
{
width = KMaxAddressLen;
lines = 1;
};
};
}
};
}
RESOURCE DIALOG r_index_query
// ask user to enter custom index to send to the remote device
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EAddressTextId;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = "Address";
control = EDWIN
{
width = KMaxIndexLen;
lines = 1;
};
};
}
};
}
// localisation info
RESOURCE LOCALISABLE_APP_INFO r_oandx_localisable_app_info
{
short_caption = "OandX";
caption_and_icon =
{
CAPTION_AND_ICON_INFO
{
caption = "O and X";
number_of_icons = 3; // each icon must be a bitmap/mask pair
icon_file = "\\resource\\apps\\oandx.mbm";
}
};
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -