📄 oggplay.s60.rss
字号:
/*
* Copyright (c) 2003 L. H. Wilden. All rights reserved.
*
* 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.
*/
// Series 60 resource file
NAME OGGP
#include <eikon.rh>
#include <uikon.rh>
#include <eikon.rsg>
#include <uikon.hrh> // EEikMenuTitleRightAlign
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <avkon.hrh>
#include <OggOs.h>
#include "OggPlay.hrh"
#include "OggDialogs.rh"
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
// Languages : EN/SC FR GE DU IT SP SW TU DA PO RU
#if defined(LANGUAGE_EN) || defined(LANGUAGE_SC)
#include "OggPlay.en.rss"
#elif defined(LANGUAGE_FR)
#include "OggPlay.fr.rss"
#elif defined(LANGUAGE_GE)
#include "OggPlay.ge.rss"
#elif defined(LANGUAGE_DU)
#include "OggPlay.du.rss"
#elif defined(LANGUAGE_IT)
#include "OggPlay.it.rss"
#elif defined(LANGUAGE_SP)
#include "OggPlay.sp.rss"
#elif defined(LANGUAGE_SW)
#include "OggPlay.sw.rss"
#elif defined(LANGUAGE_TU)
#include "OggPlay.tu.rss"
#elif defined(LANGUAGE_DA)
#include "OggPlay.da.rss"
#elif defined(LANGUAGE_PO)
#include "OggPlay.po.rss"
#elif defined(LANGUAGE_RU)
#include "OggPlay.ru.rss"
#endif
RESOURCE EIK_APP_INFO
{
menubar=r_oggplay_menubar;
status_pane=r_no_status_pane;
cba=r_option_stop_cba;
}
RESOURCE STATUS_PANE_APP_MODEL r_no_status_pane
{
layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
}
RESOURCE MENU_BAR r_oggplay_menubar
{
titles= {
MENU_TITLE { menu_pane=r_file_menu; txt="OggPlay!"; }
};
}
RESOURCE TBUF r_ogg_version { buf=KVersionString; }
// About view
RESOURCE TBUF r_ogg_about_line_1 { buf=ogg_version_txt; }
RESOURCE TBUF r_ogg_about_line_2 { buf=ogg_c_author; }
RESOURCE TBUF r_ogg_about_line_3 { buf=ogg_link_txt; }
RESOURCE TBUF r_ogg_about_line_4 { buf=ogg_vorbis_c; }
RESOURCE TBUF r_ogg_about_line_5 { buf=ogg_translation; }
RESOURCE TBUF r_ogg_about_line_6 { buf=ogg_port; }
RESOURCE DIALOG r_dialog_about {
buttons = R_AVKON_SOFTKEYS_CANCEL;
flags = EEikDialogFlagWait;
items = {
DLG_LINE {
type = EOggScrollableTextControl;
id = EOggScrollableTextDialog;
control = SCROLLABLERICHTEXT
{
};
}
};
}
RESOURCE DIALOG r_dialog_infowin {
buttons = R_AVKON_SOFTKEYS_BACK;
flags = EEikDialogFlagWait;
items = {
DLG_LINE {
type = EOggScrollableTextControl;
id = EOggScrollableTextDialog;
control = SCROLLABLERICHTEXT
{
height= 75;
};
}
};
}
RESOURCE DIALOG r_dialog_files_search {
buttons = R_AVKON_SOFTKEYS_CANCEL;
flags = EEikDialogFlagWait;
items = {
DLG_LINE {
type = EOggFileSearchControl;
id = EOggScrollableTextDialog;
control = FILESEARCHCONTROL
{
#ifdef PLAYLIST_SUPPORT
height= 120;
#else
height= 90;
#endif
title = ogg_filescan_title;
dirScannedStr =ogg_filescan_label1;
filesFoundStr =ogg_filescan_label2_mmf;
#ifdef PLAYLIST_SUPPORT
playlistsFoundStr =ogg_filescan_label3;
#endif
};
}
};
}
RESOURCE DIALOG r_dialog_info {
title = ogg_file_prop;
buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
flags = EEikDialogFlagWait;
items = {
DLG_LINE {
type = EEikCtLabel;
prompt = ogg_filename_txt;
id = EOggInfoDialog;
control = LABEL
{
txt="";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
id = EOggLabelFileName;
control = LABEL
{
txt=ogg_filename_unknown;
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_filesize;
id= EOggLabelFileSize;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_bitrate;
id = EOggLabelBitRate;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_rate_hz;
id = EOggLabelRate;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_channels;
id = EOggLabelChannels;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
}
};
}
RESOURCE DIALOG r_dialog_playlist_info {
title = ogg_file_prop;
buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
flags = EEikDialogFlagWait;
items = {
DLG_LINE {
type = EEikCtLabel;
prompt = ogg_filename_txt;
id = EOggInfoDialog;
control = LABEL
{
txt="";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
id = EOggLabelFileName;
control = LABEL
{
txt=ogg_filename_unknown;
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_filesize;
id= EOggLabelFileSize;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
} ,
DLG_LINE {
type = EEikCtLabel;
prompt= ogg_playlist_entries;
id = EOggLabelPlayListEntries;
control = LABEL
{
txt="0";
horiz_align=EEikLabelAlignHLeft;
};
}
};
}
RESOURCE ARRAY r_hotkey_array {
items= {
LBUF { txt=ogg_hotkey_none; },
LBUF { txt=ogg_hotkey_camera; },
LBUF { txt=ogg_hotkey_browser; },
LBUF { txt=ogg_hotkey_power; },
LBUF { txt=ogg_hotkey_flipopen; }
};
}
RESOURCE MENU_PANE r_empty_menu {}
RESOURCE MENU_PANE r_skin_menu
{
}
// Settings resources
RESOURCE AVKON_SETTING_ITEM_LIST r_oggplay_display_setting_item_list
{
flags = EAknListBoxLoopScrolling; // EAknSettingItemNumberedStyle |
title = ogg_settings_title;
initial_number = 1;
items =
{
AVKON_SETTING_ITEM
{
identifier = EOggRepeat;
setting_page_resource = r_oggplay_binary_setting_page;
associated_resource = r_oggplay_popup_setting_binary_texts;
name = ogg_repeat2;
},
AVKON_SETTING_ITEM
{
identifier = EOggSettingScanDir;
setting_page_resource = r_oggplay_scan_dir;
associated_resource = r_oggplay_scandir_setting_item_list;
name = ogg_filescanmode;
},
AVKON_SETTING_ITEM
{
identifier=EOggSettingAutoPlayId;
setting_page_resource=r_oggplay_binary_setting_page;
associated_resource=r_oggplay_popup_setting_binary_texts;
name = ogg_autostart;
},
AVKON_SETTING_ITEM
{
identifier=EOggSettingWarningsId;
setting_page_resource= r_oggplay_warnings_setting_page;
associated_resource=r_oggplay_popup_setting_binary_texts;
name = ogg_warnings;
},
AVKON_SETTING_ITEM
{
identifier = EOggSettingRskIdle;
setting_page_resource = r_oggplay_rsk_idle;
associated_resource = r_oggplay_rsk_idle_setting_item_list;
name = ogg_rsk_idle;
},
AVKON_SETTING_ITEM
{
identifier = EOggSettingRskPlay;
setting_page_resource = r_oggplay_rsk_play;
associated_resource = r_oggplay_rsk_play_setting_item_list;
name = ogg_rsk_play;
}
#if !defined(MULTI_THREAD_PLAYBACK)
, AVKON_SETTING_ITEM
{
identifier = EOggSettingVolumeBoost;
setting_page_resource = r_oggplay_volume_boost;
associated_resource = r_oggplay_volume_boost_item_list;
name = ogg_volume_boost;
}
#endif
};
}
#if defined(MULTI_THREAD_PLAYBACK)
RESOURCE AVKON_SETTING_ITEM_LIST r_oggplay_display_playback_options_item_list
{
flags = EAknListBoxLoopScrolling; // EAknSettingItemNumberedStyle |
title = ogg_playback_title;
initial_number = 1;
items =
{
AVKON_SETTING_ITEM
{
identifier = EOggSettingBufferingMode;
setting_page_resource = r_oggplay_buffering_mode;
associated_resource = r_oggplay_buffering_mode_item_list;
name = ogg_buffering_mode;
},
AVKON_SETTING_ITEM
{
identifier = EOggSettingThreadPriority;
setting_page_resource = r_oggplay_thread_priority_page;
associated_resource = r_oggplay_popup_thread_priority_texts;
name = ogg_thread_priority;
},
AVKON_SETTING_ITEM
{
identifier = EOggSettingVolumeBoost;
setting_page_resource = r_oggplay_volume_boost;
associated_resource = r_oggplay_volume_boost_item_list;
name = ogg_volume_boost;
}
};
}
#endif
RESOURCE AVKON_SETTING_ITEM_LIST r_oggplay_alarm_s60_setting_item_list
{
flags = EAknListBoxLoopScrolling; // EAknSettingItemNumberedStyle |
title = ogg_alarm_title_s60;
initial_number = 1;
items =
{
AVKON_SETTING_ITEM
{
identifier = EOggAlarmActive;
setting_page_resource = r_oggplay_binary_setting_page;
associated_resource = r_oggplay_popup_setting_binary_texts;
name = ogg_alarm_s60;
}
,AVKON_SETTING_ITEM
{
identifier = EOggAlarmTime;
setting_page_resource = r_oggplay_alarm_time_page;
name = ogg_alarm_time_s60;
}
,AVKON_SETTING_ITEM
{
identifier = EOggAlarmSnooze;
setting_page_resource = r_oggplay_alarm_snooze_page;
associated_resource = r_oggplay_alarm_snooze_item_list;
name = ogg_alarm_snooze;
}
,AVKON_SETTING_ITEM
{
identifier = EOggAlarmVolume;
setting_page_resource = r_oggplay_alarm_volume_page;
name = ogg_alarm_volume;
}
,AVKON_SETTING_ITEM
{
identifier = EOggAlarmBoost;
setting_page_resource = r_oggplay_volume_boost;
associated_resource = r_oggplay_volume_boost_item_list;
name = ogg_alarm_boost;
}
};
}
RESOURCE POPUP_SETTING_LIST r_oggplay_popup_setting_list_new_entry
{
// flags = EAknPopupSettingListFlagAllowsUserDefinedEntry;
flags = 0;
}
// -------------------------------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_oggplay_scan_dir
{
label = ogg_filescanmode;
type = EAknCtPopupSettingList;
editor_resource_id = r_oggplay_popup_setting_list_new_entry;
}
RESOURCE AVKON_POPUP_SETTING_TEXTS r_oggplay_scandir_setting_item_list
{
setting_texts_resource = r_oggplay_scandir_setting_page_list;
popped_up_texts_resource = r_oggplay_scandir_item_array;
}
RESOURCE ARRAY r_oggplay_scandir_setting_page_list
{
items = {
AVKON_ENUMERATED_TEXT { value = 0; text = ogg_fullscan; },
AVKON_ENUMERATED_TEXT { value = 1; text = ogg_mmcdir; }
};
}
RESOURCE ARRAY r_oggplay_scandir_item_array
{
items = {
LBUF { txt = ogg_fullscan; },
LBUF { txt = ogg_mmcdir; }
};
}
// -------------------------------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_oggplay_binary_setting_page
{
number=4;
label=ogg_autostart;
type=EAknCtPopupSettingList;
}
RESOURCE AVKON_POPUP_SETTING_TEXTS r_oggplay_popup_setting_binary_texts
{
flags=0;
setting_texts_resource=r_oggplay_on_off_texts;
popped_up_texts_resource=r_oggplay_popped_up_on_off_texts;
}
RESOURCE ARRAY r_oggplay_on_off_texts
{
items=
{
AVKON_ENUMERATED_TEXT { value=1; text = ogg_on; },
AVKON_ENUMERATED_TEXT { value=0; text = ogg_off; }
};
}
RESOURCE ARRAY r_oggplay_popped_up_on_off_texts
{
items =
{
LBUF { txt = ogg_popup_on; },
LBUF { txt = ogg_popup_off; }
};
}
// -------------------------------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_oggplay_warnings_setting_page
{
number=4; //??
label=ogg_warnings;
type=EAknCtPopupSettingList;
}
// -------------------------------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_oggplay_rsk_idle
{
label = ogg_rsk_idle;
type = EAknCtPopupSettingList;
editor_resource_id = r_oggplay_popup_setting_list_new_entry;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -