opponentform.rss
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· RSS 代码 · 共 209 行
RSS
209 行
/**
*
* @brief Resource file for OpponentForm application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// RESOURCE IDENTIFIER
NAME FOR1 // 4 letter ID
// INCLUDES
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <eikon.rh>
#include "opponentform.hrh"
#include "opponentform.loc"
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf="OpponentForm"; }
RESOURCE EIK_APP_INFO
{
menubar=r_opponentform_menu_bar;
cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
// ---------------------------------------------------------
// r_opponentform_menu_bar
// The menu bar for the container
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_opponentform_menu_bar
{
titles=
{
MENU_TITLE
{
txt = ""; // the text is not used in Series 60
menu_pane = r_opponentform_menu_pane;
}
};
}
// ---------------------------------------------------------
// r_opponentform_menu_pane
// The menu pane for the container
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_opponentform_menu_pane
{
items =
{
MENU_ITEM
{
command = EOpponentFormCmdNew;
txt = NEW_TEXT;
},
MENU_ITEM
{
command = EOpponentFormCmdOpen;
txt = OPEN_TEXT;
},
MENU_ITEM
{
command = EOpponentFormCmdDelete;
txt = DELETE_TEXT;
},
MENU_ITEM
{
command = EAknCmdExit;
txt = EXIT_TEXT;
}
};
}
// ---------------------------------------------------------
// r_opponentform_opponents_listbox
// The list for the container
//
// ---------------------------------------------------------
//
RESOURCE LISTBOX r_opponentform_opponents_listbox
{
flags = EAknListBoxSelectionList;
}
// ---------------------------------------------------------
// r_opponentform_form_dialog
// The form dialog
//
// ---------------------------------------------------------
//
RESOURCE DIALOG r_opponentform_form_dialog
{
flags = EEikDialogFlagNoDrag |
EEikDialogFlagFillAppClientRect |
EEikDialogFlagNoTitleBar |
EEikDialogFlagWait |
EEikDialogFlagCbaButtons;
buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
form = r_opponentform_form;
}
// ---------------------------------------------------------
// r_opponentform_form
// The form
//
// ---------------------------------------------------------
//
RESOURCE FORM r_opponentform_form
{
flags = EEikFormEditModeOnly;
items =
{
DLG_LINE
{
type=EEikCtEdwin;
prompt=NAME_TEXT;
id=EOpponentFormDlgCIdEdwin;
control=EDWIN
{
width=KMaxNameLength;
maxlength=KMaxNameLength;
};
},
DLG_LINE
{
type = EAknCtSlider;
prompt = STRENGTH_TEXT;
id = EOpponentFormDlgCIdSlider;
control = SLIDER
{
layout = EAknFormSliderLayout1;
minvalue = 0;
maxvalue = 100;
step = 5;
minlabel = MIN_TEXT;
maxlabel = MAX_TEXT;
valuetype = EAknSliderValuePercentage;
};
},
DLG_LINE
{
type = EAknCtPopupFieldText;
prompt = POWER_TEXT;
id = EOpponentFormDlgCIdPopup;
itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
control = POPUP_FIELD_TEXT
{
popupfield = POPUP_FIELD
{
width = KMaxPowerLength;
};
textarray = r_opponentform_power_popup_field_textarray;
active = 0;
};
}
};
}
// ---------------------------------------------------------
// r_opponentform_power_popup_field_textarray
// The text values for the popup field text
//
// ---------------------------------------------------------
//
RESOURCE ARRAY r_opponentform_power_popup_field_textarray
{
items =
{
LBUF
{
txt = POWER1_TEXT;
},
LBUF
{
txt = POWER2_TEXT;
},
LBUF
{
txt = POWER3_TEXT;
},
LBUF
{
txt = POWER4_TEXT;
},
LBUF
{
txt = POWER5_TEXT;
}
};
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?