📄 s60uiexample.rss
字号:
// Copyright (c) 2006 Nokia Corporation.
// RESOURCE IDENTIFIER
NAME S60U // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include "S60UIExample.hrh"
#include "S60UIExample.rls"
#include <S60UIExample.mbg> // for the weapon icons
// RESOURCE DEFINITIONS
// -----------------------------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
{
}
// -----------------------------------------------------------------------------
//
// Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF r_default_document_name
{
buf="HEWB";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
}
// -----------------------------------------------------------------------------
//
// r_s60uiexample_initialview
// Define initial view
//
// -----------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_s60uiexample_initialview
{
menubar = r_s60uiexample_initialmenubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_s60uiexample_initialmenubar
// Menu title definition
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_s60uiexample_initialmenubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_s60uiexample_initialmenu;
}
};
}
// -----------------------------------------------------------------------------
//
// r_s60uiexample_initialmenu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_s60uiexample_initialmenu
{
items =
{
MENU_ITEM
{
command = ES60UIExampleStartGame;
txt = qtn_startgame;
},
MENU_ITEM
{
command = ES60UIExampleContinueGame;
txt = qtn_continuegame;
},
MENU_ITEM
{
command = ES60UIExampleRegister;
txt = qtn_register;
},
MENU_ITEM
{
command = ES60UIExampleSettings;
txt = qtn_settings;
},
MENU_ITEM
{
command = ES60UIExampleHighscores;
txt = qtn_highscores;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_exit;
}
};
}
// -----------------------------------------------------------------------------
//
// r_s60uiexample_playview
// Define play view
//
// -----------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_s60uiexample_playview
{
menubar = r_s60uiexample_playmenubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_S60UIExample_playmenubar
// Menu title definition
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_s60uiexample_playmenubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_s60uiexample_playmenu;
}
};
}
// -----------------------------------------------------------------------------
//
// r_s60uiexample_playmenu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_s60uiexample_playmenu
{
items =
{
MENU_ITEM
{
command = ES60UIExampleStopGame;
txt = qtn_endgame;
},
MENU_ITEM
{
command = ES60UIExampleContinueGame;
txt = qtn_continuegame;
},
MENU_ITEM
{
command = ES60UIExampleStartGame;
txt = qtn_restartgame;
},
MENU_ITEM
{
command = ES60UIExamplePauseGame;
txt = qtn_pausegame;
},
MENU_ITEM
{
command = ES60UIExampleWeapon;
txt = qtn_selectweapon;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_exit;
}
};
}
RESOURCE DIALOG r_s60uiexample_enter_score_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_YES_NO;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_CONFIRMATION_QUERY
{
layout = EConfirmationQueryLayout;
label = qtn_enter_score_query_label;
};
}
};
}
RESOURCE DIALOG r_s60uiexample_confirmation_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_YES_NO;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_CONFIRMATION_QUERY
{
layout = EConfirmationQueryLayout;
label = qtn_confirmation_query_label;
};
}
};
}
//-----------------------------------------------------------------------------
//
// r_s60uiexample_name_query
// Resource of Data Query.
//
//-----------------------------------------------------------------------------
//
RESOURCE DIALOG r_s60uiexample_name_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = qtn_name_query_label;
control = EDWIN
{
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
width = 23;
maxlength = 18;
max_view_height_in_lines = 2;
};
};
}
};
}
//-----------------------------------------------------------------------------
//
// r_s60uiexample_list_query
// Resources of Weapon Selection Query.
//
//-----------------------------------------------------------------------------
//
RESOURCE AVKON_LIST_QUERY r_s60uiexample_list_query
{
flags = EGeneralQueryFlags;
softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
AVKON_LIST_QUERY_DLG_LINE
{
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSingleGraphicPopupMenuListBox;
listbox = AVKON_LIST_QUERY_LIST
{
array_id = r_s60uiexample_list_query_item;
};
heading = qtn_list_query_heading;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -