Rework addition of Symbian splash screen to reduce the source impact (uses SVG from Bug 2414)
Notes: by using the OPTION SOURCEDIR parameter in the mifconv extension instructions, I can
arrange to use the same source file name in sfimage, without having to export over the original
Nokia file. This means that the name inside splashscreen.mbg is the same, which removes the need
for the conditional compilation in SplashScreen.cpp, and gets rid of sf_splashscreen.mmp.
/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Resource definitions for project gssensorplugin
*
*/
// 4 letter identifier, stands for SENsor Plugin
NAME SENP
#include <avkon.loc> // Avkon localized strings
#include <avkon.mbg>
#include <avkon.rsg>
#include <EIKCORE.rsg>
#include <uikon.rh>
#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <GSApp.rsg>
#include <gs.loc> // Common localized GS strings
#include <gscommon.rh> // Common GS resource structures
#include <gssensorplugin.loc> // own loc file
#include "gssensorplugin.hrh"
RESOURCE RSS_SIGNATURE
{
}
RESOURCE TBUF { buf="SENP"; }
//----------------------------------------------------
// r_gs_sensor_view_caption
//
// Sensor view caption for plugin
//----------------------------------------------------
//
RESOURCE TBUF r_gs_sensor_view_caption
{
buf = qtn_set_folder_sensor;
}
RESOURCE TBUF r_gs_mks_label_open
{
buf = qtn_set_options_open;
}
RESOURCE TBUF r_gs_mks_label_change
{
buf = qtn_set_options_change;
}
RESOURCE TBUF r_gs_mks_label_mark
{
buf = text_softkey_mark;
}
RESOURCE TBUF r_gs_mks_label_unmark
{
buf = text_softkey_unmark;
}
//----------------------------------------------------
//
// r_gs_sen_view
// Sensor view.
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_gs_sen_view
{
menubar = r_gs_sen_menubar_open_exit;
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
//------------------------------------------------------------------------------
// r_gs_sen_information_note
//------------------------------------------------------------------------------
RESOURCE DIALOG r_gs_sen_information_note
{
flags = EEikDialogFlagNoDrag |
EEikDialogFlagNoTitleBar |
EEikDialogFlagCbaButtons |
EEikDialogFlagWait;
buttons = R_AVKON_SOFTKEYS_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EGeneralNote;
control = AVKON_NOTE
{
layout = EGeneralLayout;
singular_label = qtn_sensor_setting_switch_off_note;
animation = R_QGN_NOTE_INFO_ANIM;
};
}
};
}
//----------------------------------------------------------
// r_gs_sen_confirm_yes_no_query
//----------------------------------------------------------
//
RESOURCE DIALOG r_gs_sen_confirm_yes_no_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_YES_NO;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_CONFIRMATION_QUERY
{
layout = EConfirmationLayout;
label = qtn_sensor_setting_switch_on_query;
animation = R_QGN_NOTE_QUERY_ANIM;
};
}
};
}
//----------------------------------------------------
//
// r_gs_sen_view_title
// Sensor view's title.
//
//----------------------------------------------------
//
RESOURCE TITLE_PANE r_gs_sen_view_title
{
txt = qtn_set_title_settings_sensor;
}
//----------------------------------------------------
//
// r_gs_menubar_open_exit
// Options menu with 'Open' and 'Exit'
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_gs_sen_menubar_open_exit
{
titles =
{
MENU_TITLE
{
menu_pane = r_gs_sen_menu_item_exit;
},
MENU_TITLE
{
menu_pane = r_gs_sen_menu_item_open;
}
};
}
// -----------------------------------------------------------------------------
// r_gs_sen_menubar_change_exit
// Menu bar.
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_gs_sen_menubar_change_exit
{
titles =
{
MENU_TITLE
{
menu_pane = r_gs_sen_menu_item_exit;
},
MENU_TITLE
{
menu_pane = r_gs_sen_menu_item_change;
}
};
}
// -----------------------------------------------------------------------------
// r_gs_sen__menu_item_change
// Change item.
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_gs_sen_menu_item_change
{
items =
{
MENU_ITEM
{
command = EGSSenMskGeneral;
txt = qtn_set_options_change;
flags = EEikMenuItemAction; // action command
}
};
}
#ifdef __SERIES60_HELP
// -----------------------------------------------------------------------------
//
// r_gs_sen_menu_item_exit
// Options menu items 'Help' and 'Exit'. Used instead of plain 'Exit' when help
// is wanted to be shown in UI.
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_gs_sen_menu_item_exit
{
items =
{
MENU_ITEM
{
command = EAknCmdHelp;
txt = qtn_options_help;
},
MENU_ITEM
{
command = EGSSenMenuExit;
txt = qtn_options_exit;
}
};
}
#else // if __SERIES60_HELP not defined
// -----------------------------------------------------------------------------
//
// r_gs_sen_menu_item_exit
// Exit item.
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_gs_sen_menu_item_exit
{
items =
{
MENU_ITEM
{
command = EGSSenMenuExit;
txt = qtn_options_exit;
}
};
}
#endif // __SERIES60_HELP
//----------------------------------------------------
//
// r_gs_sen_menu_item_open
// Open item.
//
//----------------------------------------------------
RESOURCE MENU_PANE r_gs_sen_menu_item_open
{
items =
{
MENU_ITEM
{
command = EGSSenMenuOpen;
txt = qtn_set_options_open;
flags = EEikMenuItemAction;
},
MENU_ITEM
{
command = EGSSenMenuChange;
txt = qtn_set_options_change;
flags = EEikMenuItemAction;
}
};
}
//----------------------------------------------------
//
// r_gs_sen_double_lbx
// Sensors view's listbox.
// " \tFirstLabel\tSecondLabel\t0\t0"
//----------------------------------------------------
//
RESOURCE GS_FEATURE_ARRAY r_gs_sen_double_lbx
{
items =
{
GS_FEATURE
{
txt = " \t"qtn_set_sensor_sensors"\t\t";
item = EGSSensorsListItemId;
},
GS_FEATURE
{
txt = " \t"qtn_set_sensor_tapping_control"\t\t";
item = EGSTapCtrlListItemId;
},
GS_FEATURE
{
txt = " \t"qtn_set_sensor_turning_control"\t\t";
item = EGSTurnCtrlListItemId;
}
// Commented out because orientation is not supported yet
// GS_FEATURE
// {
// txt = " \t"qtn_set_sensor_orientation"\t\t";
// item = EGSOrientationListItemId;
// }
};
}
//----------------------------------------------------
//
// r_gs_sen_double_lbx_text
// Sensors view's listbox.
// " \tFirstLabel\tSecondLabel\t0\t0"
//----------------------------------------------------
//
RESOURCE ARRAY r_gs_sen_double_lbx_text
{
items =
{
LBUF
{
txt = qtn_set_sensor_sensors;
},
LBUF
{
txt = qtn_set_sensor_tapping_control;
},
LBUF
{
txt = qtn_set_sensor_turning_control;
}
// Commented out because orientation is not supported yet
// LBUF
// {
// txt = qtn_set_sensor_orientation;
// }
};
}
//----------------------------------------------------
// r_gs_sensor_setting_listbox
// Common listbox editor resource for setting pages.
//----------------------------------------------------
//
RESOURCE LISTBOX r_gs_sensor_setting_listbox
{
flags=EEikListBoxMultipleSelection;
}
//----------------------------------------------------
//
// r_gs_sen_softkeys_ok_back__change
// Text association with MSK ( CHANGE )
//
//----------------------------------------------------
//
RESOURCE CBA r_gs_sen_softkeys_ok_back__change
{
buttons =
{
CBA_BUTTON
{
id=EGSCmdOk;
txt = text_softkey_ok;
},
CBA_BUTTON
{
id=EAknSoftkeyBack;
txt = text_softkey_back;
},
CBA_BUTTON
{
id=EGSSenMskGeneral;
txt = "";
}
};
}
//----------------------------------------------------
//
// r_gs_checkbox_view
// General for multiselection views.
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_gs_checkbox_view
{
cba = r_gs_sen_softkeys_ok_back__change;
}
// *** SENSOR ACTIVE STATUS ***
//----------------------------------------------------
//
// r_gs_sensors_view_title
// Sensors view's title.
//
//----------------------------------------------------
//
RESOURCE TITLE_PANE r_gs_sensors_view_title
{
txt = qtn_set_title_settings_sensors;
}
//----------------------------------------------------
//
// r_gs_sensors_view
// Sensors activation view.
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_gs_sensors_view
{
menubar = r_gs_sen_menubar_change_exit;
cba = R_GS_SOFTKEYS_OPTIONS_BACK_CHANGE;
}
//----------------------------------------------------
//
// r_gs_sensor_active_status_setting_page
// Sensors active status setting page.
//
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_gs_sensor_active_status_setting_page
{
number = EAknSettingPageNoOrdinalDisplayed;
label = qtn_set_sensor_sensors;
softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
type = EAknSetListBox;
editor_resource_id = r_gs_sensor_setting_listbox;
}
//----------------------------------------------------
//
// r_gs_sensors_status_lbx
// Sensors status view's listbox.
//
//----------------------------------------------------
//
RESOURCE GS_FEATURE_ARRAY r_gs_sensors_status_lbx
{
items =
{
GS_FEATURE
{
txt = " \t"qtn_set_sensor_sensors"\t\t";
item = KGSSenorsActive;
}
};
}
//----------------------------------------------------
//
// r_gs_sensor_active_status
// On / Off
//
//----------------------------------------------------
RESOURCE ARRAY r_gs_sensor_active_status
{
items =
{
LBUF
{
// OFF
txt = qtn_sensor_active_status_off;
},
LBUF
{
// ON
txt = qtn_sensor_active_status_on;
}
};
}
// *** TAPPING CONTROL SETTINGS ***
//----------------------------------------------------
//
// r_gs_tapctrl_view_title
// Tapping control view's title.
//
//----------------------------------------------------
//
RESOURCE TITLE_PANE r_gs_tapctrl_view_title
{
txt = qtn_set_title_settings_tapctrl;
}
//----------------------------------------------------
//
// r_gs_tapping_control_lbx
// Tapping control view's listbox.
//
//----------------------------------------------------
//
RESOURCE GS_FEATURE_ARRAY r_gs_tapping_control_lbx
{
items =
{
GS_FEATURE
{
txt = " \t"qtn_sensor_silencing_calls"\t\t";
item = KGSTapCtrlSC;
},
GS_FEATURE
{
txt = " \t"qtn_sensor_silencing_alarm"\t\t";
item = KGSTapCtrlSA;
}
// Commented out because these are not supported yet
// GS_FEATURE
// {
// txt = " \t"qtn_sensor_message"\t\t";
// item = KGSTapCtrlMes;
// },
// GS_FEATURE
// {
// txt = " \t"qtn_sensor_music_player"\t\t";
// item = KGSTapCtrlMP;
// }
};
}
//----------------------------------------------------
//
// r_gs_tapping_control_ms
// Multiselection list box values
//
//----------------------------------------------------
RESOURCE ARRAY r_gs_tapping_control_ms
{
items =
{
LBUF
{
txt = "1\t"qtn_sensor_silencing_calls"\t";
},
LBUF
{
txt = "1\t"qtn_sensor_silencing_alarm"\t";
}
// Commented out because these are not supported yet
// LBUF
// {
// txt = "1\t"qtn_sensor_message"\t";
// },
// LBUF
// {
// txt = "1\t"qtn_sensor_music_player"\t";
// }
};
}
// *** TURN CONTROL SETTINGS ***
//----------------------------------------------------
//
// r_gs_turnctrl_view_title
// Turn control view's title.
//
//----------------------------------------------------
//
RESOURCE TITLE_PANE r_gs_turnctrl_view_title
{
txt = qtn_set_title_settings_turnctrl;
}
//----------------------------------------------------
//
// r_gs_turning_control_lbx
// Turning control view's listbox.
//
//----------------------------------------------------
//
RESOURCE GS_FEATURE_ARRAY r_gs_turning_control_lbx
{
items =
{
GS_FEATURE
{
txt = " \t"qtn_sensor_silencing_calls"\t\t";
item = KGSTurnCtrlSC;
},
GS_FEATURE
{
txt = " \t"qtn_sensor_silencing_alarm"\t\t";
item = KGSTurnCtrlSA;
},
GS_FEATURE
{
txt = " \t"qtn_set_sensor_auto_orientation"\t\t";
item = KGSDisplayOrientation;
}
};
}
//----------------------------------------------------
//
// r_gs_turning_control_ms
// Multiselection list box values
//
//----------------------------------------------------
RESOURCE ARRAY r_gs_turning_control_ms
{
items =
{
LBUF
{
txt = "1\t"qtn_sensor_silencing_calls"\t";
},
LBUF
{
txt = "1\t"qtn_sensor_silencing_alarm"\t";
},
LBUF
{
txt = "1\t"qtn_set_sensor_auto_orientation"\t";
}
};
}
// *** ORIENTATION SETTINGS ***
//----------------------------------------------------
//
// r_gs_orientation_view_title
// Turn control view's title.
//
//----------------------------------------------------
//
RESOURCE TITLE_PANE r_gs_orientation_view_title
{
txt = qtn_set_title_settings_orientation;
}
//----------------------------------------------------
//
// r_gs_orientation_lbx
// Orientation view's listbox.
//
//----------------------------------------------------
//
RESOURCE GS_FEATURE_ARRAY r_gs_orientation_lbx
{
items =
{
GS_FEATURE
{
txt = " \t"qtn_sensor_camera"\t\t";
item = KGSOrientationCam;
},
GS_FEATURE
{
txt = " \t"qtn_sensor_phone_display"\t\t";
item = KGSOrientationPD;
}
};
}
//----------------------------------------------------
//
// r_gs_orientation_ms
// Multiselection list box values
//
//----------------------------------------------------
RESOURCE ARRAY r_gs_orientation_ms
{
items =
{
LBUF
{
txt = "1\t"qtn_sensor_camera"\t";
},
LBUF
{
txt = "1\t"qtn_sensor_phone_display"\t";
}
};
}