// HelloWorld.rss
//
// Copyright (c) 2000-2001 Symbian Ltd. All rights reserved.
NAME HEWO
// Core resource file includes
#include <eikon.rh>
#include <eikcore.rsg>
#include <indicato.rsg> // Status Pane definitions
#include "HelloWorld.hrh"  // Our application-specific definitions
//
// Some application information
//
#define KApplicationName "HelloWorld"
#define KApplicationLongName "Nokia 9200 Series C++ HelloWorld Application"
#define KCopyrightYear "2000-2001"
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf = ""; }
//
// Application framework controls definition
//
RESOURCE EIK_APP_INFO
{
  hotkeys     = r_example_hotkeys;    // Hotkeys e.g. Ctrl+A
  menubar     = r_example_menubar;    // Menu bar contents
  cba         = r_example_cba;        // Command Button Array contents
  status_pane = r_example_indic_pane; // Status pane settings
}
RESOURCE STATUS_PANE_APP_MODEL r_example_indic_pane
{
  layout = R_INDICATOR_LAYOUT_NARROW; // Defined in INDICATO.RSG
}
//
// Command Button Array definition - 4 buttons, the middle two are blank here
//
RESOURCE CBA r_example_cba
{
  buttons=
  {
    CBA_BUTTON { id = EExampleCmd0; txt = "Option\nzero"; },
    CBA_BUTTON { id = EEikBidBlank; txt = ""; },
    CBA_BUTTON { id = EEikBidBlank; txt = ""; },
    CBA_BUTTON { id = EEikCmdExit;  txt = "Close"; }
  };
}
//
// Application hotkey definitions, with support for both
// Ctrl+? and Shift+Ctrl+? hotkey combinations
//
RESOURCE HOTKEYS r_example_hotkeys
{
  control =
  {
    HOTKEY { command = EExampleCmd0; key = 'a'; },
    HOTKEY { command = EExampleCmd1; key = 'b'; }
  };
  shift_control =
  {
    HOTKEY { command = EExampleCmd2;     key = 'c'; },
    HOTKEY { command = EExampleCmdAbout; key = 'a'; }
  };
}
//
// Top-level application menu bar menu contents
//
RESOURCE MENU_BAR r_example_menubar
{
  titles =
  {
    MENU_TITLE { menu_pane = r_example_file_menu;  txt = "File"; },
    MENU_TITLE { menu_pane = r_example_tools_menu; txt = "Tools"; }
  };
}
//
// Contents of the top-level "File" menu on the menu bar
//
RESOURCE MENU_PANE r_example_file_menu
{
  items =
  {
    MENU_ITEM { command = EExampleCmd0; txt = "Option 0";
    flags = EEikMenuItemSeparatorAfter; }
  };
}
//
// Contents of the top-level "Tools" menu on the menu bar
//
RESOURCE MENU_PANE r_example_tools_menu
{
  items =
  {
    MENU_ITEM { command = EExampleCmd1; txt = "Option 1"; },
    MENU_ITEM { command = EExampleCmd2; txt = "Option 2"; },
    MENU_ITEM { command = EExampleCmd3; txt = "Option 3";
    flags = EEikMenuItemSeparatorAfter; },
    MENU_ITEM { command=EExampleCmdAbout; txt="About
      "KApplicationName; }
  };
}
//
// Resource buffers for text to be displayed at various points in our application
//
RESOURCE TBUF r_example_text_Hello
  { buf = "Hello World from the Nokia 9200 Series Communicator!";}
RESOURCE TBUF r_example_text_Item0 { buf = "Option 0 selected"; }
RESOURCE TBUF r_example_text_Item1 { buf = "Option 1 selected"; }
RESOURCE TBUF r_example_text_Item2 { buf = "Option 2 selected"; }
RESOURCE TBUF r_example_text_Item3 { buf = "Option 3 selected"; }
//
// About dialog box resources
//
RESOURCE TBUF80 r_example_about_dialog_version_label
{ buf = KApplicationName" program - Version %d.%02d(%03d)"; }
 
RESOURCE DIALOG r_example_about_dialog
{
  flags   = EEikDialogFlagWait|EEikDialogFlagButtonsRight;
  title   = "About "KApplicationName;
  buttons = R_EIK_BUTTONS_CONTINUE;
  items   =
  {
    DLG_LINE { type = EEikCtLabel; control = LABEL
      {txt = KApplicationLongName;};},
    DLG_LINE { type = EEikCtLabel; control = LABEL
      {txt = "Copyright "" Symbian Ltd "KCopyrightYear;};},
    DLG_LINE { type = EEikCtLabel; control = LABEL{ txt = "All rights reserved.";};},
    DLG_LINE
    {
      id      = EDialogAboutVersionLine;
      type    = EEikCtLabel;
      control = LABEL
        {
          txt = r_about_dialog_version_label;
        };
    }
  };
}
       
       |