?? oandx.rss
字號:
// OandX.rss
//
// Copyright (c) Symbian Software Ltd 2005 - 2006. All rights reserved.
//
#include <appinfo.rh>
#include <eikon.rh>
#include <eikon.rsg>
#include <uikon.rh>
#include <uikon.hrh>
#include <qikon.rh>
#include <qikon.hrh>
#include <qikcommand.rh>
#include "OandX.hrh" // Application specific commands
// identifies resources within this file
NAME OANX
// The three following resources are mandatory fields and need to be the
// first resource fields in the resource file. Need to be defined in this order.
// These resources don't need to contain any useful info, just need to be there.
// RSS_SIGNATURE can be used to specify version information
RESOURCE RSS_SIGNATURE { }
// Defines the name of the default file the application framework creates.
// This resource must always be the second resource in the resource file.
RESOURCE TBUF { buf = ""; }
// This resource is NOT used by UIQ.
// Otherwise this resources is used to define an application's GUI.
RESOURCE EIK_APP_INFO { }
// -------- view configuration --------
// A view shall use the QIK_VIEW_CONFIGURATIONS resource struct to define which
// UI configurations it supports. Can also use QIK_VIEW_CONFIGURATIONS to setup
// the view to switch layout and command list automatically when changes of UI
// configuration occur. This is done with the view and command_list members of
// the QIK_VIEW_CONFIGURATIONS.
RESOURCE QIK_VIEW_CONFIGURATIONS r_oandx_ui_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_oandx_portrait_commands;
view = r_oandx_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_oandx_portrait_commands;
view = r_oandx_layout;
}
};
}
//----------------------------------------------------
//------------------ VIEW COMMANDS -------------------
//----------------------------------------------------
// Commands are defined with the QIK_COMMAND_LIST struct,
// commands can also be created in code by instantiating CQikCommand.
// The control command id for debug command is a reserved id from uikon.hrh.
// The id for each infoprint command is defined in the OandX.hrh file.
// The string for each command is defined in the OandX.rls file,
// due to localisation.
RESOURCE QIK_COMMAND_LIST r_oandx_portrait_commands
{
items =
{
QIK_COMMAND
{
id = EEikCmdExit;
type = EQikCommandTypeScreen;
text = "Close";
},
// offer game submenu
QIK_COMMAND
{
id = EOandXOfferGame;
type = EQikCommandTypeScreen;
text = "Offer game";
namedGroupLinkId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameSerialComm;
type = EQikCommandTypeScreen;
text = "Comm";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameIrComm;
type = EQikCommandTypeScreen;
text = "IRComm";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameBtComm;
type = EQikCommandTypeScreen;
text = "BTComm";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameSms;
type = EQikCommandTypeScreen;
text = "SMS";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameEmail;
type = EQikCommandTypeScreen;
text = "Email";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameBluetooth;
type = EQikCommandTypeScreen;
text = "Bluetooth";
namedGroupId = EOandXOfferGame;
},
QIK_COMMAND
{
id = EOandXOfferGameIrSocket;
type = EQikCommandTypeScreen;
text = "IR Socket";
namedGroupId = EOandXOfferGame;
},
// join game submenu
QIK_COMMAND
{
id = EOandXJoinGame;
type = EQikCommandTypeScreen;
text = "Join game";
namedGroupLinkId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameSerialComm;
type = EQikCommandTypeScreen;
text = "Comm";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameIrComm;
type = EQikCommandTypeScreen;
text = "IRComm";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameBtComm;
type = EQikCommandTypeScreen;
text = "BTComm";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameSms;
type = EQikCommandTypeScreen;
text = "SMS";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameEmail;
type = EQikCommandTypeScreen;
text = "Email";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameBluetooth;
type = EQikCommandTypeScreen;
text = "Bluetooth";
namedGroupId = EOandXJoinGame;
},
QIK_COMMAND
{
id = EOandXJoinGameIrSocket;
type = EQikCommandTypeScreen;
text = "IR Socket";
namedGroupId = EOandXJoinGame;
},
// end of Join submenu
QIK_COMMAND
{
id = EOandXSendIndex;
type = EQikCommandTypeScreen;
text = "Send Index";
}
};
}
//----------------------------------------------------
//------------------- VIEW LAYOUT --------------------
//----------------------------------------------------
// Defines the view by linking to the pages.
RESOURCE QIK_VIEW r_oandx_layout
{
pages = r_oandx_layout_pages;
}
// Defines the pages of a view.
// In OandX there only exists one page for the label to be displayed in.
RESOURCE QIK_VIEW_PAGES r_oandx_layout_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EOandXViewPage;
}
};
}
// -------- text constants --------
RESOURCE TBUF r_oandx_o_wins
{
buf = "Noughts win";
}
RESOURCE TBUF r_oandx_x_wins
{
buf = "Crosses win";
}
// -------- wait dialog --------
RESOURCE DIALOG r_wait_dialog
// Modal dialog displays arbitrary message with "Cancel" button.
{
flags = EEikDialogFlagWait;
title = "Connecting...";
buttons = R_EIK_BUTTONS_CANCEL;
items =
{
DLG_LINE
{
type = EEikCtLabel;
id = EWaitDlgCtIdLabel;
control = LABEL
{
standard_font = EEikLabelFontNormal;
txt = "Default wait text.";
};
} // DLG_LINE
}; // items =
}
// -------- address dialog --------
RESOURCE DIALOG r_textinput_dialog
{
title = "Enter address";
buttons = R_EIK_BUTTONS_CONTINUE;
flags = EEikDialogFlagWait;
items =
{
DLG_LINE
{
type = EEikCtEdwin;
id = EAddressCtIdName;
control = EDWIN
{
maxlength = KMaxAddressLen;
width = KMaxAddressLen;
};
}
}; // items =
}
RESOURCE TBUF r_textinput_enter_text
{
buf = "Enter text";
}
// -------- localisation info --------
// This file localise the applications icons and caption
RESOURCE LOCALISABLE_APP_INFO r_oandx_localisable_app_info
{
// The short caption text is defined in the rls file
short_caption = "OX";
caption_and_icon =
{
CAPTION_AND_ICON_INFO
{
caption = "O and X";
number_of_icons = 3;
icon_file = "\\resource\\apps\\oandx.mbm";
}
};
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -