📄 mdictionary.rss
字号:
/*
* MDictionary - dictionary program for Symbian cellular phones
*
* Copyright (C) 2005 Egyeki Gergely
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
// RESOURCE IDENTIFIER
NAME MDIC // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.rsg>
#include "MDictionary.hrh"
#include "MDictionary.loc"
// 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 = DEF_DOC_NAME;
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
status_pane = r_mdictionary_status_pane;
}
RESOURCE STATUS_PANE_APP_MODEL r_mdictionary_status_pane
{
panes =
{
SPANE_PANE
{
id = EEikStatusPaneUidNavi;
type = EAknCtNaviPane;
resource = r_mdictionary_navi_decorator;
}
};
}
RESOURCE NAVI_DECORATOR r_mdictionary_navi_decorator
{
type = ENaviDecoratorControlTabGroup;
control = TAB_GROUP
{
tab_width = EAknTabWidthWithTwoTabs;
active = 0;
tabs =
{
TAB
{
id = ELang1MenuTab;
txt = " "; //only to init
},
TAB
{
id = ELang2MenuTab;
txt = " "; //only to init
}
};
};
}
/////////////////////////////////////////////////////////////
/////////////////// App View 1 ////////////////////////////////
/////////////////////////////////////////////////////////////
// ---------------------------------------------------------
//
// r_mdictionary_appview1
// Define view 1
//
// ---------------------------------------------------------
//
RESOURCE AVKON_VIEW r_mdictionary_appview1
{
menubar = r_mdictionary_menubar1;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// ---------------------------------------------------------
//
// r_mdictionary_menubar1
// Menubar for MDictionary
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_mdictionary_menubar1
{
titles =
{
MENU_TITLE
{
menu_pane = r_mdictionary_menu1;
}
};
}
// ---------------------------------------------------------
//
// r_mdictionary_menu1
// Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_mdictionary_menu1
{
items =
{
MENU_ITEM
{
command = EMDictionarySearch1;
txt = qtn_commandSearch;
},
MENU_ITEM
{
command = EMDictionaryChangeDic;
txt = qtn_commandChangeDic;
},
MENU_ITEM
{
cascade = r_about_menu_submenu;
txt = qtn_commandAbout;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_commandExit;
}
};
}
///////////////////////////////////////
////// About submenu /////////////////
//////////////////////////////////////
RESOURCE MENU_PANE r_about_menu_submenu
{
items =
{
MENU_ITEM
{
command = EMDictionaryAboutPrg;
txt = qtn_commandAboutPrg;
},
MENU_ITEM
{
command = EMDictionaryAboutDic;
txt = qtn_commandAboutDic;
}
};
}
/////////////////////////////////////////////////////////////
/////////////////// App View 2 ////////////////////////////////
/////////////////////////////////////////////////////////////
// ---------------------------------------------------------
//
// r_mdictionary_appview2
// Define view 2
//
// ---------------------------------------------------------
//
RESOURCE AVKON_VIEW r_mdictionary_appview2
{
menubar = r_mdictionary_menubar2;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// ---------------------------------------------------------
//
// r_mdictionary_menubar2
// Menubar for MDictionary
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_mdictionary_menubar2
{
titles =
{
MENU_TITLE
{
menu_pane = r_mdictionary_menu2;
}
};
}
// ---------------------------------------------------------
//
// r_mdictionary_menu2
// Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_mdictionary_menu2
{
items =
{
MENU_ITEM
{
command = EMDictionarySearch2;
txt = qtn_commandSearch;
},
MENU_ITEM
{
command = EMDictionaryChangeDic;
txt = qtn_commandChangeDic;
},
MENU_ITEM
{
cascade = r_about_menu_submenu;
txt = qtn_commandAbout;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_commandExit;
}
};
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//
RESOURCE TBUF r_dic_error_text
{
buf = qtn_DicError_msg;
}
RESOURCE TBUF r_dic_warning_text
{
buf = qtn_DicError_Emptymsg;
}
RESOURCE TBUF r_dic_select_title
{
buf = qtn_SelectDic_title;
}
RESOURCE AVKON_LIST_QUERY r_diclist_query
{
flags = EGeneralQueryFlags;
softkeys = R_AVKON_SOFTKEYS_OK_EMPTY;
items =
{
AVKON_LIST_QUERY_DLG_LINE
{
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
listbox = AVKON_LIST_QUERY_LIST
{
//array_id=r_items;
};
heading = qtn_SelectDic_title;
};
}
};
}
RESOURCE AVKON_LIST_QUERY r_diclist_requery
{
flags = EGeneralQueryFlags;
softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
AVKON_LIST_QUERY_DLG_LINE
{
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
listbox = AVKON_LIST_QUERY_LIST
{
//array_id=r_items;
};
heading = qtn_SelectDic_title;
};
}
};
}
//////////////////////////////////////////////////////////////////
//////////////////////// AboutPrg Popup //////////////////////////////
//////////////////////////////////////////////////////////////////
//----------------------------------------------------
//
// r_aboutprg_menu_title
// heading pane text for about
//
//----------------------------------------------------
//
RESOURCE TBUF32 r_aboutprg_menu_title
{
buf = qtn_AboutPrg_title;
}
//----------------------------------------------------
//
// r_aboutprg_menu_items
// menu items definition for about
//
//----------------------------------------------------
//
RESOURCE ARRAY r_aboutprg_menu_items
{
items =
{
LBUF { txt = qtn_AboutPrg_TEXT1; },
LBUF { txt = qtn_AboutPrg_TEXT2; },
LBUF { txt = qtn_AboutPrg_TEXT3; },
LBUF { txt = qtn_AboutPrg_TEXT4; },
LBUF { txt = qtn_AboutPrg_TEXT5; },
LBUF { txt = qtn_AboutPrg_TEXT6; },
LBUF { txt = qtn_AboutPrg_TEXT7; },
LBUF { txt = qtn_AboutPrg_TEXT8; },
LBUF { txt = qtn_AboutPrg_TEXT9; },
LBUF { txt = qtn_AboutPrg_TEXT10; }
};
}
//////////////////////////////////////////////////////////////////
//////////////////////// AboutDic Popup //////////////////////////////
//////////////////////////////////////////////////////////////////
//----------------------------------------------------
//
// r_aboutdic_menu_title
// heading pane text for about
//
//----------------------------------------------------
//
RESOURCE TBUF32 r_aboutdic_menu_title
{
buf = qtn_AboutDic_title;
}
RESOURCE TBUF32 r_aboutdic_dictionary_title
{
buf = qtn_AboutDic_dictionary;
}
RESOURCE TBUF32 r_aboutdic_authors_title
{
buf = qtn_AboutDic_authors_title;
}
RESOURCE TBUF32 r_aboutdic_version_title
{
buf = qtn_AboutDic_version_title;
}
//////////////////////////////////////////////////////////////////
//////////////////////// AppViewX CBAPopup ///////////////////////
//////////////////////////////////////////////////////////////////
//----------------------------------------------------
//
// r_popup_menu_items
// menu items definition for appviewX
//
//----------------------------------------------------
//
RESOURCE ARRAY r_popup_menu_items
{
items =
{
LBUF { txt = qtn_commandSearch; },
LBUF { txt = qtn_commandSearchEx; }
};
}
//////////////////////////////////////////////////////////////////
//////////////////////// Loading Wait Note ///////////////////////
//////////////////////////////////////////////////////////////////
RESOURCE DIALOG r_loading_note
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EWaitNoteID;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = qtn_loadingwaitmessage;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
//////////////////////////////////////////////////////////////////
//////////////////////// Searching Wait Note ///////////////////////
//////////////////////////////////////////////////////////////////
RESOURCE DIALOG r_searching_note
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = ESearchNoteID;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = qtn_searchingwaitmessage;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
//////////////////////////////////////////////////////////////////
//////////////////////// Languages ///////// ////////////////////
//////////////////////////////////////////////////////////////////
RESOURCE TBUF32 r_lang_hu
{
buf = qtn_lang_hu;
}
RESOURCE TBUF32 r_lang_it
{
buf = qtn_lang_it;
}
RESOURCE TBUF32 r_lang_en
{
buf = qtn_lang_en;
}
RESOURCE TBUF32 r_lang_sp
{
buf = qtn_lang_sp;
}
RESOURCE TBUF32 r_lang_yu
{
buf = qtn_lang_yu;
}
RESOURCE TBUF32 r_lang_fr
{
buf = qtn_lang_fr;
}
RESOURCE TBUF32 r_lang_ge
{
buf = qtn_lang_ge;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -