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

📄 bookstoredb.rss

📁 Symbian s60 3RD 数据库开发实例
💻 RSS
字号:
/*
 * ============================================================================
 *  Name     : BookstoreDb.rss
 *  Part of  : BookstoreDb
 *  Created  : 8.12.2003 by Forum Nokia
 *  Version  : 1.0
 *  Copyright: Nokia Corporation
 * ============================================================================
 */

NAME BSDB    // Can be any four letter ID.

//  INCLUDES

#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include "BookstoreDb.hrh"

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

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

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


// ---------------------------------------------------------
//   
//   r_main_menubar
//   Main menubar
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_main_menubar
    {
    titles =
        {
        MENU_TITLE 
            {
            menu_pane = r_main_menu;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_main_menu
//   Menu for "Options"
//   See BookstoreDb.hrh for commands
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_main_menu
    {
    items = 
        {
        MENU_ITEM { command = EOpenCmd; txt = "Open"; },
        MENU_ITEM { command = ECreateCmd; txt = "New database"; },
        MENU_ITEM { command = ERemoveDbCmd; txt = "Remove database"; },
        MENU_ITEM { command = EAddBookCmd; txt = "Add a book"; },
        MENU_ITEM { command = EBackCmd; txt = "Back"; },        
        MENU_ITEM { command = EAddBookAPICmd; txt = "Add using API"; },
        MENU_ITEM { command = EAddBookSQLCmd; txt = "Add with SQL"; },
        MENU_ITEM { command = ERemoveBookCmd; txt = "Remove"; },   
        MENU_ITEM { command = ERemoveAllBooksCmd; txt = "Remove all books"; },        
        MENU_ITEM { command = EChangeTitleCmd; txt = "Change title"; },           
        MENU_ITEM { command = EGetAllBooksCmd; txt = "Get All books"; },
        MENU_ITEM { command = ESearchBooksCmd; txt = "Multiple search"; },
        MENU_ITEM { command = EQuickFindCmd; txt = "Details"; },
        MENU_ITEM { command = EAddDateCmd; txt = "Add a date column"; },
        MENU_ITEM { command = ERemoveDateCmd; txt = "Remove date column"; },        
        MENU_ITEM { command = EColumnNamesCmd; txt = "Get columns"; },
        MENU_ITEM { command = ECloseCmd; txt = "Close database"; }
        };
    }
    
//----------------------------------------------------
//    r_simple_edwin
//    Resource for editing book properties in BookEditorView
//----------------------------------------------------
//
RESOURCE EDWIN r_simple_edwin
    {
    flags = EAknEditorFlagDefault;
    width = 10;
    lines= 1;
    maxlength = 15;  // Max number of characters
    allowed_input_modes = EAknEditorAllInputModes; 
    default_input_mode = EAknEditorTextInputMode;
    }
    

//----------------------------------------------------
//    r_simple_text_query
//    Resource for querying simple text
//----------------------------------------------------
//  
RESOURCE DIALOG R_SIMPLE_TEXT_QUERY
{
    flags=EAknGeneralQueryFlags;
    buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
    items=
    {
        DLG_LINE
        {
            type=EAknCtQuery;
            id=EGeneralQuery;
            control=AVKON_DATA_QUERY
            {
                layout=EDataLayout;
                control=EDWIN
                {
                };
            };
        }
    };
}    

⌨️ 快捷键说明

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