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

📄 camtimer.rss

📁 symbian s60 2nd下的手机定时拍照
💻 RSS
字号:
//
//        CamTimer.RSS - resource file for CamTimer application
//

NAME CATI

// INCLUDES

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

// DEFINITIONS
#define KCameraSoundFile "C:\\System\\Apps\\Sound\\Camera1a_2_8kHz.wav"
#define KSnapSoundId 2

RESOURCE RSS_SIGNATURE {}

RESOURCE TBUF16 { buf=""; }

//----------------------------------------------------
//
// EIK_APP_INFO
// Basic resource definition
//
//----------------------------------------------------
//

RESOURCE EIK_APP_INFO
    {
    menubar=r_camtimer_menubar;
    status_pane=R_AVKON_STATUS_PANE_LAYOUT_USUAL;
	// CBA buttons are "Options" and "Exit"
    cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

//----------------------------------------------------
//
// r_camtimer_menubar
// Definition of menubar and its menupane
// Note: Here defined text "Options" is never seen in Series 60 UI
//
//----------------------------------------------------
//

RESOURCE MENU_BAR r_camtimer_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_camtimer_options_menu; txt = "Options";}
        };
    }

//----------------------------------------------------
//
// r_camtimer_options_menu
// Definition of menupane with menu items
//
//----------------------------------------------------
//

RESOURCE MENU_PANE r_camtimer_options_menu
    {
    items =
        {
        MENU_ITEM { command = ECamTimerStartTiming; txt = "Start Timing"; },
        MENU_ITEM { command = ECamTimerSetTime; txt = "Set Time"; },
        MENU_ITEM { command = ECamTimerLaunchPhotoAlbum; txt = "Launch Photo Album"; },
        MENU_ITEM { command = EClose; txt = "Close"; }
        };
    }


//----------------------------------------------------
//
// r_camtimer_dialog   
// Declaring the CEikDialog type dialog r_camtimer_dialog
//
//----------------------------------------------------
//
RESOURCE DIALOG r_camtimer_dialog   						
    {
	// Set dialog title text
	title="Camtimer Settings";
	// Set dialog flags
	flags=EGeneralQueryFlags | EEikDialogFlagNoDrag | 
		  EEikDialogFlagFillAppClientRect | EEikDialogFlagNoBorder; 
	// Read the buttons from r_camtimer_buttons resource
    buttons=R_AVKON_SOFTKEYS_OK_CANCEL;                             
	// Declare the dialog items. This is a very simple dialog that has only one control
    items=
		{
		// Declare 1st dialog line
		DLG_LINE
			{
			// Set the control to be a combo box. This is declared in the Control Factory
			type=EEikCtNumberEditor;
			// Set the prompt of the control
			prompt="Number";
			// Set the id of the control
			id=ECamTimerNumberEditor;
			// Define the control struct
			control=NUMBER_EDITOR
				{
				// Set minimum value
                min=0;
				// Set maximum value
				max=100;
				};
			}
		};
	}



//----------------------------------------------------
//   
//    r_camera_snap_sound
//    sound info list containing the camera sound to play when 
//    snapping 
//
//----------------------------------------------------
//
RESOURCE AVKON_SOUND_INFO_LIST r_camera_snap_sound
    {
    list = 
        {
        AVKON_SOUND_INFO 
            { 
            sid = KSnapSoundId; 
            priority = 45;
            preference = EAknAudioPrefCamera;
            file = KCameraSoundFile;
            }
        };
    }

⌨️ 快捷键说明

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