⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shenxian.rss

📁 symbian学习例子
💻 RSS
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */

NAME SHEN

#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>

#include "Shenxian.hrh"
#include "Shenxian.loc"


// ---------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
    {
    }

// ---------------------------------------------------------
//   
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_shenxian_default_doc_name
    {
    buf="";
    }

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_shenxian_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ---------------------------------------------------------
//   
//   r_shenxian_menubar
//   Menubar for Shenxian example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_shenxian_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_shenxian_menu;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_shenxian_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_shenxian_menu
    {
    items = 
        {
        
        MENU_ITEM
            {
              command = EShenxianOneView;
              txt = qtn_mh_one_view;
            },
        MENU_ITEM
            {
               command = EShenxianTowView;
               txt = qtn_mh_tow_view;
            },
        MENU_ITEM
            {
               command = EShenxianBack;
               txt = qtn_mh_exit_command;
            },
        MENU_ITEM
            {
            command = EAknSoftkeyExit;
            txt = "Exit";
            }
        };
    }
/*********************************************************************
****************logon View*************************
**************************************************************/

RESOURCE TBUF32  R_QTN_MH_ONE_TITLE
{
  buf = qtn_mh_logon_title;
}

RESOURCE  AVKON_VIEW R_ONE_VIEW
{
    menubar = R_FREE_ONE_MENUBAR;
    cba = R_CBA_ONE;
}

RESOURCE CBA R_CBA_ONE  //定义按钮资源。
{
   buttons=
      {
        AVKON_CBA_BUTTON
            {
                id = EShenxianOneLogon;
                txt = qtn_mh_logon_cba_command;
            },
         AVKON_CBA_BUTTON
            {
                id = EAknSoftkeyExit;
                txt = qtn_mh_exit_command;
            }
       };
}

RESOURCE MENU_BAR R_FREE_ONE_MENUBAR  //定义菜单栏 。
{
     titles =
       {
           MENU_TITLE
               {
                   menu_pane = R_MH_ONE_MENU;
               }
       };
}

RESOURCE MENU_PANE R_MH_ONE_MENU
{
    items = 
       {
          MENU_ITEM
              {
                command = EShenxianOneLogon;
                txt = qtn_mh_logon_menu_command;
              },
          MENU_ITEM
              {
                 command = EShenxianOneBack;
                 txt = qtn_mh_logon_menu_bank;
              }
        };
}
/************enrol view*********************************************/
RESOURCE TBUF32  R_QTN_MH_TOW_TITLE
{
   buf = qtn_mh_enrol_title;
}

RESOURCE AVKON_VIEW  R_TOW_VIEW
{
   menubar = R_FREE_TOW_MENUBAR;
   cba = R_CBA_TOW;
}

RESOURCE CBA R_CBA_TOW
{
    buttons=
	{
        AVKON_CBA_BUTTON
		{
			 id = EAknSoftkeyOptions;
			 txt = qtn_mh_enrol_cba_option;
		},
        AVKON_CBA_BUTTON
		{
			id = EAknSoftkeyExit;
			txt = qtn_mh_enrol_cba_exit;
		}
	};
}

RESOURCE MENU_BAR R_FREE_TOW_MENUBAR
{
    titles =
       {
         MENU_TITLE
            {
              menu_pane = R_MH_TOW_MENU;
            }
       };
}

RESOURCE MENU_PANE R_MH_TOW_MENU
{
   items =
      {
        MENU_ITEM
          {
            command = EShenxianTowDisplayAllMenuItem;
            txt = qtn_mh_enrol_menu_display_item;
          },
        MENU_ITEM
          {
             command = EShenxianTowHideMenuItem;
             txt = qtn_mh_enrol_menu_hide_item;
          },
        MENU_ITEM
          {
             command = EShenxianTowSubMenuPane;
             cascade = R_MH_TOW_SUB_MENU_PANE;
             txt =  qtn_mh_enrol_menu_submenu;
          }
      };
}

RESOURCE  MENU_PANE R_MH_TOW_SUB_MENU_PANE
{
     items = 
        {
          MENU_ITEM
              {
                 command = EShenxianTowChangeMenuBar;
                 txt = qtn_mh_enrol_change_menu_bar;
              },
          MENU_ITEM
              {
                 command = EShenxianTowBack;
                 txt = qtn_mh_enrol_menu_bar_back;
              }
         };
}

/**********chinese in the client area***********************************************************/
RESOURCE  TBUF32  R_QTN_MH_NAME
{
  buf = qtn_mh_label_name;
}

RESOURCE TBUF32 R_QTN_MH_PASSWORD
{
  buf = qtn_mh_label_password;
}

RESOURCE TBUF32 R_QTN_MH_VALIDATE_PASSWORD
{
   buf = qtn_mh_label_validate_password;
}
/***************the source type of edit*******************************************************/
RESOURCE EDWIN r_aknexeditor_one_edwin
{
   flags = EAknEditorFlagDefault;
   width = 4;
   lines = 2;
   maxlength = 20;
}

RESOURCE NUMSECRETED R_PASS_STAR_BUF
{
  num_code_chars = 6;
}
/************the listbox view************************************************************/
RESOURCE TBUF32 R_QTN_MH_HELP_TITLE
{
     buf = qtn_mh_help_title;
}

RESOURCE AVKON_VIEW R_THREE_VIEW
{
    menubar = R_FREE_HELP_MENUBAR;
    cba = R_CBA_HELP;
}

RESOURCE CBA R_CBA_HELP
{
   buttons = 
   {
      AVKON_CBA_BUTTON
      {
        id = EAknSoftkeyOptions;
        txt = qtn_mh_help_option;
      },
      AVKON_CBA_BUTTON
      {
        id = EAknSoftkeyExit;
        txt = qtn_mh_help_exit;
      }
   };
}

RESOURCE MENU_BAR R_FREE_HELP_MENUBAR
{
   titles = 
   {
     MENU_TITLE
     {
        menu_pane = R_MH_HELP;
     }
   };
}

RESOURCE MENU_PANE R_MH_HELP
{
  items = 
  {
     MENU_ITEM
     {
       command = EShenxianThreeNew;
       txt = qtn_mh_help_menu_logon;
     },
	 MENU_ITEM
     {
       command = EShenxianThreeDelete;
       txt = qtn_mh_help_menu_delete;
     },
     MENU_ITEM
     {
       command = EShenxianThreeEnrol;
       txt = qtn_mh_help_menu_enrol;
     },
     MENU_ITEM
     {
       command = EShenxianThreeExit;
       txt = qtn_mh_help_menu_exit;
     }
  };
}

/*********homepage view****************************************************/

RESOURCE TBUF32 R_QTN_MH_FOUR_TITLE
{
  buf = qtn_mh_four_tilte;
}

RESOURCE AVKON_VIEW R_FOUR_VIEW
{
   menubar = R_FREE_FOUR_MENU;
   cba = R_CBA_FOUR;
}

RESOURCE CBA R_CBA_FOUR
{
   buttons= 
   {
      AVKON_CBA_BUTTON
      {
        id = EShenxianFourOpen;
        txt = qtn_mh_four_open;
      },
      AVKON_CBA_BUTTON
      {
        id = EAknSoftkeyExit;
        txt = qtn_mh_four_exit;
      }
   };
}

RESOURCE MENU_BAR R_FREE_FOUR_MENU
{
   titles = 
   {
     MENU_TITLE
     {
        menu_pane = R_FOUR_MENU;
     }
   };
}

RESOURCE MENU_PANE R_FOUR_MENU
{
   items = 
   {
     MENU_ITEM
     {
       command = EShenxianFourOpen;
       txt = qtn_mh_four_open;
     },
     MENU_ITEM
     {
       command = EShenxianFourExit;
       txt = qtn_mh_four_exit;
     }
   };
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -