?? camtimer.rss
字號(hào):
//
// 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 "Z:\\system\\sounds\\digital\\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;
}
};
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -