0
+ − 1
/*
+ − 2
============================================================================
+ − 3
Name : NPR.rss
+ − 4
Author : John Kern
+ − 5
+ − 6
Copyright (c) 2009 Symbian Foundation Ltd
+ − 7
This component and the accompanying materials are made available
+ − 8
under the terms of the License "Eclipse Public License v1.0"
+ − 9
which accompanies this distribution, and is available
+ − 10
at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ − 11
+ − 12
Initial Contributors:
+ − 13
- Symbian Foundation Ltd - initial contribution.
+ − 14
+ − 15
Contributors:
+ − 16
- John Kern
+ − 17
- Symsource
+ − 18
+ − 19
Description : This file contains all the resources for the NPR
+ − 20
============================================================================
+ − 21
*/
+ − 22
+ − 23
/*
+ − 24
============================================================================
+ − 25
Name : NPR.rss
+ − 26
Author : John Kern
+ − 27
Copyright : This component and the accompanying materials are made available under the terms of the License "Eclipse Public License v1.0" which accompanies this distribution, and is available at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ − 28
Description : This file contains all the resources for the NPR.
+ − 29
============================================================================
+ − 30
*/
+ − 31
// RESOURCE IDENTIFIER
+ − 32
NAME NPRX // 4 letter ID
+ − 33
+ − 34
+ − 35
// INCLUDES
+ − 36
#include <eikon.rh>
+ − 37
#include <avkon.rsg>
+ − 38
#include <avkon.rh>
+ − 39
#include <appinfo.rh>
+ − 40
#include "NPR.hrh"
+ − 41
#include "NPR.rls"
+ − 42
+ − 43
// RESOURCE DEFINITIONS
+ − 44
// -----------------------------------------------------------------------------
+ − 45
//
+ − 46
// Define the resource file signature
+ − 47
// This resource should be empty.
+ − 48
//
+ − 49
// -----------------------------------------------------------------------------
+ − 50
//
+ − 51
RESOURCE RSS_SIGNATURE
+ − 52
{
+ − 53
}
+ − 54
+ − 55
// -----------------------------------------------------------------------------
+ − 56
//
+ − 57
// Default Document Name
+ − 58
//
+ − 59
// -----------------------------------------------------------------------------
+ − 60
//
+ − 61
RESOURCE TBUF r_default_document_name
+ − 62
{
+ − 63
buf="NPRX";
+ − 64
}
+ − 65
+ − 66
// -----------------------------------------------------------------------------
+ − 67
//
+ − 68
// Define default menu and CBA key.
+ − 69
//
+ − 70
// -----------------------------------------------------------------------------
+ − 71
//
+ − 72
RESOURCE EIK_APP_INFO
+ − 73
{
+ − 74
menubar = r_menubar;
+ − 75
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
+ − 76
}
+ − 77
+ − 78
+ − 79
// -----------------------------------------------------------------------------
+ − 80
//
+ − 81
// r_menubar
+ − 82
// Main menubar
+ − 83
//
+ − 84
// -----------------------------------------------------------------------------
+ − 85
//
+ − 86
RESOURCE MENU_BAR r_menubar
+ − 87
{
+ − 88
titles =
+ − 89
{
+ − 90
MENU_TITLE { menu_pane = r_menu; }
+ − 91
};
+ − 92
}
+ − 93
+ − 94
+ − 95
// -----------------------------------------------------------------------------
+ − 96
//
+ − 97
// r_menu
+ − 98
// Menu for "Options"
+ − 99
//
+ − 100
// -----------------------------------------------------------------------------
+ − 101
//
+ − 102
RESOURCE MENU_PANE r_menu
+ − 103
{
+ − 104
items =
+ − 105
{
+ − 106
// added the new Options menu command here
+ − 107
MENU_ITEM
+ − 108
{
+ − 109
command = ERequestNprCmd;
+ − 110
txt = qnt_npr_channel;
+ − 111
},
+ − 112
MENU_ITEM
+ − 113
{
+ − 114
command = EAbout;
+ − 115
txt = qtn_about;
+ − 116
},
+ − 117
MENU_ITEM
+ − 118
{
+ − 119
command = EAknSoftkeyExit;
+ − 120
txt = qtn_exit;
+ − 121
}
+ − 122
};
+ − 123
}
+ − 124
+ − 125
// -----------------------------------------------------------------------------
+ − 126
//
+ − 127
// About dialog resource.
+ − 128
//
+ − 129
// -----------------------------------------------------------------------------
+ − 130
//
+ − 131
RESOURCE DIALOG r_about_query_dialog
+ − 132
{
+ − 133
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
+ − 134
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
+ − 135
items=
+ − 136
{
+ − 137
DLG_LINE
+ − 138
{
+ − 139
type = EAknCtPopupHeadingPane;
+ − 140
id = EAknMessageQueryHeaderId;
+ − 141
itemflags = EEikDlgItemNonFocusing;
+ − 142
control = AVKON_HEADING
+ − 143
{
+ − 144
};
+ − 145
},
+ − 146
DLG_LINE
+ − 147
{
+ − 148
type = EAknCtMessageQuery;
+ − 149
id = EAknMessageQueryContentId;
+ − 150
control = AVKON_MESSAGE_QUERY
+ − 151
{
+ − 152
};
+ − 153
}
+ − 154
};
+ − 155
}
+ − 156
+ − 157
+ − 158
// -----------------------------------------------------------------------------
+ − 159
//
+ − 160
// Resources for messages.
+ − 161
//
+ − 162
// -----------------------------------------------------------------------------
+ − 163
//
+ − 164
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
+ − 165
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
+ − 166
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
+ − 167
RESOURCE TBUF r_command1_text { buf=qtn_command1_text; }
+ − 168
+ − 169
+ − 170
// ----------------------------------------------------------------------------
+ − 171
//
+ − 172
// r_localisable_app_info
+ − 173
//
+ − 174
// ----------------------------------------------------------------------------
+ − 175
//
+ − 176
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
+ − 177
{
+ − 178
short_caption = qtn_caption_string;
+ − 179
caption_and_icon =
+ − 180
CAPTION_AND_ICON_INFO
+ − 181
{
+ − 182
caption = qtn_caption_string;
+ − 183
+ − 184
number_of_icons = 1;
+ − 185
icon_file = "\\resource\\apps\\NPR_0xEEB0E481.mif";
+ − 186
};
+ − 187
}
+ − 188
+ − 189
+ − 190
/////////////////////////////////////////////////////////////////////
+ − 191
//Main view
+ − 192
RESOURCE AVKON_VIEW r_nprlist_box_nprlist_box_view
+ − 193
{
+ − 194
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
+ − 195
menubar = r_nprlist_box_options_menu;
+ − 196
toolbar = 0;
+ − 197
}
+ − 198
RESOURCE MENU_BAR r_nprlist_box_options_menu
+ − 199
{
+ − 200
titles =
+ − 201
{
+ − 202
MENU_TITLE { menu_pane = r_nprlist_box_menu; }
+ − 203
};
+ − 204
}
+ − 205
+ − 206
RESOURCE MENU_PANE r_nprlist_box_menu
+ − 207
{
+ − 208
items =
+ − 209
{
+ − 210
// added the new Options menu command here
+ − 211
MENU_ITEM
+ − 212
{
+ − 213
command = ESelect;
+ − 214
txt = "Select";
+ − 215
}
+ − 216
};
+ − 217
}
+ − 218
+ − 219
RESOURCE STATUS_PANE_APP_MODEL r_nprlist_box_status_pane
+ − 220
{
+ − 221
panes =
+ − 222
{
+ − 223
SPANE_PANE
+ − 224
{
+ − 225
id = EEikStatusPaneUidTitle;
+ − 226
type = EAknCtTitlePane;
+ − 227
resource = r_nprlist_box_title_resource;
+ − 228
}
+ − 229
};
+ − 230
}
+ − 231
+ − 232
RESOURCE TITLE_PANE r_nprlist_box_title_resource
+ − 233
{
+ − 234
txt = "NPR";
+ − 235
}
+ − 236
+ − 237
RESOURCE LISTBOX r_nprlist_box_list_box
+ − 238
{
+ − 239
flags = EAknListBoxSelectionList;
+ − 240
}
+ − 241
+ − 242
RESOURCE ARRAY r_nprlist_box_listbox_item1
+ − 243
{
+ − 244
items =
+ − 245
{
+ − 246
LBUF
+ − 247
{
+ − 248
txt = "News";
+ − 249
}
+ − 250
};
+ − 251
}
+ − 252
+ − 253
RESOURCE ARRAY r_nprlist_box_listbox_item2
+ − 254
{
+ − 255
items =
+ − 256
{
+ − 257
LBUF
+ − 258
{
+ − 259
txt = "Stations";
+ − 260
}
+ − 261
};
+ − 262
}
+ − 263
+ − 264
RESOURCE ARRAY r_nprlist_box_listbox_item3
+ − 265
{
+ − 266
items =
+ − 267
{
+ − 268
LBUF
+ − 269
{
+ − 270
txt = "Programs";
+ − 271
}
+ − 272
};
+ − 273
}
+ − 274
+ − 275
RESOURCE ARRAY r_nprlist_box_listbox_item4
+ − 276
{
+ − 277
items =
+ − 278
{
+ − 279
LBUF
+ − 280
{
+ − 281
txt = "Playlists";
+ − 282
}
+ − 283
};
+ − 284
}
+ − 285
+ − 286
RESOURCE ARRAY r_nprlist_box_listbox_item5
+ − 287
{
+ − 288
items =
+ − 289
{
+ − 290
LBUF
+ − 291
{
+ − 292
txt = "Settings";
+ − 293
}
+ − 294
};
+ − 295
}
+ − 296
+ − 297
/////////////////////////////////////////////////////////////////////
+ − 298
//Story view
+ − 299
RESOURCE AVKON_VIEW r_nprstory_list_box_nprstory_list_box_view
+ − 300
{
+ − 301
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
+ − 302
menubar = r_nprstory_list_box_options_menu;
+ − 303
toolbar = 0;
+ − 304
}
+ − 305
+ − 306
RESOURCE MENU_BAR r_nprstory_list_box_options_menu
+ − 307
{
+ − 308
titles =
+ − 309
{
+ − 310
MENU_TITLE { menu_pane = r_nprstory_list_box_menu; }
+ − 311
};
+ − 312
}
+ − 313
+ − 314
RESOURCE MENU_PANE r_nprstory_list_box_menu
+ − 315
{
+ − 316
items =
+ − 317
{
+ − 318
// added the new Options menu command here
+ − 319
MENU_ITEM
+ − 320
{
+ − 321
command = ESelect;
+ − 322
txt = "Select";
+ − 323
}
+ − 324
};
+ − 325
}
+ − 326
+ − 327
RESOURCE STATUS_PANE_APP_MODEL r_nprstory_list_box_status_pane
+ − 328
{
+ − 329
panes =
+ − 330
{
+ − 331
SPANE_PANE
+ − 332
{
+ − 333
id = EEikStatusPaneUidTitle;
+ − 334
type = EAknCtTitlePane;
+ − 335
resource = r_nprstory_list_box_title_resource;
+ − 336
}
+ − 337
};
+ − 338
}
+ − 339
+ − 340
RESOURCE TITLE_PANE r_nprstory_list_box_title_resource
+ − 341
{
+ − 342
txt = "News";
+ − 343
}
+ − 344
+ − 345
RESOURCE LISTBOX r_nprstory_list_box_list_box
+ − 346
{
+ − 347
flags = EAknListBoxSelectionList;
+ − 348
}
+ − 349
+ − 350
+ − 351
/////////////////////////////////////////////////////////////////////
+ − 352
//Stations view
+ − 353
RESOURCE AVKON_VIEW r_nprstation_list_box_nprstation_list_box_view
+ − 354
{
+ − 355
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
+ − 356
menubar = r_nprstation_list_box_options_menu;
+ − 357
toolbar = 0;
+ − 358
}
+ − 359
+ − 360
RESOURCE MENU_BAR r_nprstation_list_box_options_menu
+ − 361
{
+ − 362
titles =
+ − 363
{
+ − 364
MENU_TITLE { menu_pane = r_nprlist_list_box_menu; }
+ − 365
};
+ − 366
}
+ − 367
+ − 368
RESOURCE MENU_PANE r_nprlist_list_box_menu
+ − 369
{
+ − 370
items =
+ − 371
{
+ − 372
// added the new Options menu command here
+ − 373
MENU_ITEM
+ − 374
{
+ − 375
command = EListen;
+ − 376
txt = "Listen";
+ − 377
}
+ − 378
};
+ − 379
}
+ − 380
+ − 381
RESOURCE STATUS_PANE_APP_MODEL r_nprstation_list_box_status_pane
+ − 382
{
+ − 383
panes =
+ − 384
{
+ − 385
SPANE_PANE
+ − 386
{
+ − 387
id = EEikStatusPaneUidTitle;
+ − 388
type = EAknCtTitlePane;
+ − 389
resource = r_nprstation_list_box_title_resource;
+ − 390
}
+ − 391
};
+ − 392
}
+ − 393
RESOURCE TITLE_PANE r_nprstation_list_box_title_resource
+ − 394
{
+ − 395
txt = "STATIONS";
+ − 396
}
+ − 397
+ − 398
RESOURCE LISTBOX r_nprstation_list_box_list_box
+ − 399
{
+ − 400
flags = EAknListBoxSelectionList;
+ − 401
}
+ − 402
+ − 403
+ − 404
/////////////////////////////////////////////////////////////////////
+ − 405
//Search stations view
+ − 406
RESOURCE AVKON_VIEW r_nprsearch_station_list_box_nprsearch_station_list_box_view
+ − 407
{
+ − 408
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
+ − 409
menubar = r_nprsearch_station_list_box_options_menu;
+ − 410
toolbar = 0;
+ − 411
}
+ − 412
RESOURCE MENU_BAR r_nprsearch_station_list_box_options_menu
+ − 413
{
+ − 414
titles =
+ − 415
{
+ − 416
MENU_TITLE { menu_pane = r_nprsearch_station_list_box_menu; }
+ − 417
};
+ − 418
}
+ − 419
+ − 420
RESOURCE MENU_PANE r_nprsearch_station_list_box_menu
+ − 421
{
+ − 422
items =
+ − 423
{
+ − 424
// added the new Options menu command here
+ − 425
MENU_ITEM
+ − 426
{
+ − 427
command = ESelect;
+ − 428
txt = "Select";
+ − 429
}
+ − 430
};
+ − 431
}
+ − 432
+ − 433
RESOURCE STATUS_PANE_APP_MODEL r_nprsearch_station_list_box_status_pane
+ − 434
{
+ − 435
panes =
+ − 436
{
+ − 437
SPANE_PANE
+ − 438
{
+ − 439
id = EEikStatusPaneUidTitle;
+ − 440
type = EAknCtTitlePane;
+ − 441
resource = r_nprsearch_station_list_box_title_resource;
+ − 442
}
+ − 443
};
+ − 444
}
+ − 445
RESOURCE TITLE_PANE r_nprsearch_station_list_box_title_resource
+ − 446
{
+ − 447
txt = "Search station";
+ − 448
}
+ − 449
RESOURCE LISTBOX r_nprsearch_station_list_box_list_box
+ − 450
{
+ − 451
flags = EAknListBoxSelectionList;
+ − 452
}
+ − 453
+ − 454
RESOURCE ARRAY r_nprsearch_station_list_box_item1
+ − 455
{
+ − 456
items =
+ − 457
{
+ − 458
LBUF
+ − 459
{
+ − 460
txt = "Search by ZIP code";
+ − 461
}
+ − 462
};
+ − 463
}
+ − 464
+ − 465
RESOURCE ARRAY r_nprsearch_station_list_box_item2
+ − 466
{
+ − 467
items =
+ − 468
{
+ − 469
LBUF
+ − 470
{
+ − 471
txt = "Current Location";
+ − 472
}
+ − 473
};
+ − 474
}
+ − 475
+ − 476
RESOURCE ARRAY r_nprsearch_station_list_box_item3
+ − 477
{
+ − 478
items =
+ − 479
{
+ − 480
LBUF
+ − 481
{
+ − 482
txt = "Search City name";
+ − 483
}
+ − 484
};
+ − 485
}
+ − 486
+ − 487
RESOURCE ARRAY r_nprsearch_station_list_box_item4
+ − 488
{
+ − 489
items =
+ − 490
{
+ − 491
LBUF
+ − 492
{
+ − 493
txt = "Show All";
+ − 494
}
+ − 495
};
+ − 496
}
+ − 497
+ − 498
/////////////////////////////////////////////////////////////////////
+ − 499
//Query dialog
+ − 500
RESOURCE DIALOG R_ASK_NAME_DIALOG
+ − 501
{
+ − 502
flags = EGeneralQueryFlags;
+ − 503
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
+ − 504
items=
+ − 505
{
+ − 506
DLG_LINE
+ − 507
{
+ − 508
type = EAknCtQuery;
+ − 509
id = EGeneralQuery;
+ − 510
control= AVKON_DATA_QUERY
+ − 511
{
+ − 512
layout = EDataLayout;
+ − 513
control = EDWIN
+ − 514
{
+ − 515
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable;
+ − 516
maxlength = 5;
+ − 517
width = 4;
+ − 518
lines = 1;
+ − 519
default_input_mode = EAknEditorNumericInputMode;
+ − 520
};
+ − 521
};
+ − 522
}
+ − 523
};
+ − 524
}
+ − 525
+ − 526
////////////////////////////////////////////////////////////////////////
+ − 527
//waiting dialog
+ − 528
RESOURCE DIALOG r_singular_wait_note
+ − 529
{
+ − 530
flags = EAknWaitNoteFlags;
+ − 531
buttons = R_AVKON_SOFTKEYS_EMPTY;
+ − 532
items =
+ − 533
{
+ − 534
DLG_LINE
+ − 535
{
+ − 536
type = EAknCtNote;
+ − 537
id = 10;
+ − 538
control = AVKON_NOTE
+ − 539
{
+ − 540
layout = EWaitLayout;
+ − 541
singular_label = "";
+ − 542
plural_label = "";
+ − 543
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
+ − 544
};
+ − 545
}
+ − 546
};
+ − 547
}
+ − 548
+ − 549
//////////////////////////////////////////////////////////////////////////
+ − 550
//Browser view
+ − 551
RESOURCE AVKON_VIEW r_akn_browser_view
+ − 552
{
+ − 553
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
+ − 554
menubar = r_nprstation_list_box_options_menu;
+ − 555
toolbar = 0;
+ − 556
}
+ − 557
+ − 558
////////////////////////////////////////////////////////////////
+ − 559
//Story viewer
+ − 560
RESOURCE AVKON_VIEW r_nprstory_viewer_container_nprstory_viewer_container_view
+ − 561
{
+ − 562
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
+ − 563
menubar = r_nprstory_viewer_container_options_menu;
+ − 564
toolbar = 0;
+ − 565
}
+ − 566
+ − 567
RESOURCE MENU_BAR r_nprstory_viewer_container_options_menu
+ − 568
{
+ − 569
titles =
+ − 570
{
+ − 571
MENU_TITLE { menu_pane = r_nprstory_viewer_container_menu; }
+ − 572
};
+ − 573
}
+ − 574
+ − 575
RESOURCE MENU_PANE r_nprstory_viewer_container_menu
+ − 576
{
+ − 577
items =
+ − 578
{
+ − 579
// added the new Options menu command here
+ − 580
MENU_ITEM
+ − 581
{
+ − 582
command = EListen;
+ − 583
txt = "Listen";
+ − 584
}
+ − 585
};
+ − 586
}
+ − 587
+ − 588
RESOURCE STATUS_PANE_APP_MODEL r_nprstory_viewer_container_status_pane
+ − 589
{
+ − 590
panes =
+ − 591
{
+ − 592
SPANE_PANE
+ − 593
{
+ − 594
id = EEikStatusPaneUidTitle;
+ − 595
type = EAknCtTitlePane;
+ − 596
resource = r_nprstory_viewer_container_title_resource;
+ − 597
}
+ − 598
};
+ − 599
}
+ − 600
+ − 601
RESOURCE TITLE_PANE r_nprstory_viewer_container_title_resource
+ − 602
{
+ − 603
txt = "News";
+ − 604
}
+ − 605
+ − 606
RESOURCE RTXTED r_nprstory_viewer_container_rich_text1
+ − 607
{
+ − 608
numlines = 2;
+ − 609
default_case = EAknEditorTextCase;
+ − 610
allowed_case_modes = EAknEditorAllCaseModes;
+ − 611
numeric_keymap = EAknEditorStandardNumberModeKeymap;
+ − 612
default_input_mode = EAknEditorTextInputMode;
+ − 613
allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode | EAknEditorSecretAlphaInputMode | EAknEditorKatakanaInputMode | EAknEditorFullWidthTextInputMode | EAknEditorFullWidthNumericInputMode | EAknEditorFullWidthKatakanaInputMode | EAknEditorHiraganaKanjiInputMode | EAknEditorHalfWidthTextInputMode;
+ − 614
}
+ − 615
+ − 616
RESOURCE TBUF r_nprstory_viewer_container_rich_text1_2
+ − 617
{
+ − 618
buf = "Title";
+ − 619
}
+ − 620
+ − 621
RESOURCE RTXTED r_nprstory_viewer_container_rich_text2
+ − 622
{
+ − 623
numlines = 0;
+ − 624
default_case = EAknEditorTextCase;
+ − 625
allowed_case_modes = EAknEditorAllCaseModes;
+ − 626
numeric_keymap = EAknEditorStandardNumberModeKeymap;
+ − 627
default_input_mode = EAknEditorTextInputMode;
+ − 628
allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode | EAknEditorSecretAlphaInputMode | EAknEditorKatakanaInputMode | EAknEditorFullWidthTextInputMode | EAknEditorFullWidthNumericInputMode | EAknEditorFullWidthKatakanaInputMode | EAknEditorHiraganaKanjiInputMode | EAknEditorHalfWidthTextInputMode;
+ − 629
}
+ − 630
+ − 631
RESOURCE TBUF r_nprstory_viewer_container_rich_text2_2
+ − 632
{
+ − 633
buf = "Body Text";
+ − 634
}
+ − 635
+ − 636
// End of File