📄 aknexgrid.rss
字号:
/* Copyright (c) 2004, Nokia. All rights reserved */
// RESOURCE IDENTIFIER
NAME EXGR
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.mbg>
#include <avkon.rsg>
#include <eikon.rsg>
#include <aknexgrid.mbg>
#include "aknexgrid.hrh"
#include "aknexgrid.loc"
// CONSTANTS
#define AKNEXPOPFIELD_TEXT_WIDTH 8
// for setting dialog
#define GRID_MIN_ITEM_NUMBER 0
#define GRID_MAX_ITEM_NUMBER 101
#define GRID_MIN_WIDTH 1
#define GRID_MAX_WIDTH 100
#define GRID_MIN_HEIGHT 1
#define GRID_MAX_HEIGHT 100
// RESOURCE DEFINITIONS
// -----------------------------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
{
}
// -----------------------------------------------------------------------------
//
// Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF
{
buf = "AknExGrid";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
status_pane = r_exgr_status_pane;
}
//------------------------------------------------------------------------------
//
// r_exgr_hotkeys
// Hotkeys
//
//------------------------------------------------------------------------------
//
RESOURCE HOTKEYS r_exgr_hotkeys
{
control=
{
HOTKEY
{
command = EAknCmdExit;
key = 'e';
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_view_main
// Main View
//
//------------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_exgr_view_main
{
hotkeys = r_exgr_hotkeys;
menubar = r_exgr_menubar_main;
cba = r_exgr_softkeys_options_next;
}
//------------------------------------------------------------------------------
//
// r_exgr_menubar_main
// Menu bar for Main View
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_exgr_menubar_main
{
titles=
{
MENU_TITLE
{
menu_pane = r_exgr_menupane_main;
txt = qtn_exgr_menupane_main;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_main
// Menu pane for Main View
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_main
{
items=
{
MENU_ITEM
{
command = EAknExGridCmdSelection;
txt = qtn_exgr_menuitem_main_title1;
},
MENU_ITEM
{
command = EAknExGridCmdMenu;
txt = qtn_exgr_menuitem_main_title2;
},
MENU_ITEM
{
command = EAknExGridCmdMarkableSelection;
flags = EEikMenuItemSeparatorAfter;
txt = qtn_exgr_menuitem_main_title3;
},
MENU_ITEM
{
command = EAknExGridCmdGMSGrid;
flags = EEikMenuItemSeparatorAfter;
txt = qtn_exgr_menuitem_main_title4;
},
MENU_ITEM
{
command = EAknCmdExit;
txt = qtn_exgr_exit;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_status_pane
// Status pane definition
//
//------------------------------------------------------------------------------
//
RESOURCE STATUS_PANE_APP_MODEL r_exgr_status_pane
{
panes=
{
SPANE_PANE
{
id = EEikStatusPaneUidNavi;
type = EAknCtNaviPane;
resource = r_exgr_navi_decorator;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_navi_decorator
// Status pane definition of details
//
//------------------------------------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_exgr_navi_decorator
{
type = ENaviDecoratorControlTabGroup;
control = TAB_GROUP
{
tab_width = EAknTabWidthWithTwoLongTabs; // two tabs
active = 0;
tabs =
{
TAB
{
id = EAknExGridViewTab; // from application hrh
txt = qtn_exgr_view_main_tab;
},
TAB
{
id = EAknExGridViewSelectionTab;
txt = qtn_exgr_view_sel_tab;
},
TAB
{
id = EAknExGridViewMenuTab;
txt = qtn_exgr_view_menu_tab;
},
TAB
{
id = EAknExGridViewMarkableSelectionTab;
txt = qtn_exgr_view_markable_sel_tab;
},
TAB
{
id = EAknExGridViewGMSTab;
txt = qtn_exgr_view_gms_tab;
}
};
};
}
//------------------------------------------------------------------------------
//
// r_exgr_view_selection
// Selection View definition
//
//------------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_exgr_view_selection
{
hotkeys = r_exgr_hotkeys;
menubar = r_exgr_menubar_selection;
cba = r_exgr_softkeys_options_next;
}
//------------------------------------------------------------------------------
//
// r_exgr_menubar_selection
// Menu bar for Selection View
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_exgr_menubar_selection
{
titles=
{
MENU_TITLE
{
menu_pane = r_exgr_menupane_selection;
txt = qtn_exgr_menupane_selection;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_selection
// Menu pane for Selection View
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_selection
{
items=
{
MENU_ITEM
{
txt = qtn_exgr_menuitem_sel_title1;
cascade = r_exgr_menupane_adddata;
},
MENU_ITEM
{
txt = qtn_exgr_menuitem_sel_title2;
cascade = r_exgr_menupane_removedata;
},
MENU_ITEM
{
command = EAknExGridCmdFillingOrder;
txt = qtn_exgr_menuitem_sel_title3;
},
MENU_ITEM
{
txt = qtn_exgr_menuitem_sel_title4;
cascade = r_exgr_menupane_loopingvert;
},
MENU_ITEM
{
txt = qtn_exgr_menuitem_sel_title5;
cascade = r_exgr_menupane_loopinghoriz;
},
MENU_ITEM
{
command = EAknExGridCmdChangeSize;
txt = qtn_exgr_menuitem_sel_title6;
},
MENU_ITEM
{
flags = EEikMenuItemSeparatorAfter;
txt = qtn_exgr_menuitem_sel_title7;
cascade = r_exgr_menupane_contain;
},
// For markable-grid. To use following 3 menues,
// Use SetItemDimmed() in DynInitMenuPaneL()
MENU_ITEM
{
flags = EEikMenuItemDimmed;
command = EAknExGridCmdSelectAll;
txt = qtn_exgr_menuitem_selectall;
},
MENU_ITEM
{
flags = EEikMenuItemDimmed;
command = EAknExGridCmdDeselectAll;
txt = qtn_exgr_menuitem_deselectall;
},
MENU_ITEM
{
flags = EEikMenuItemSeparatorAfter | EEikMenuItemDimmed;
command = EAknExGridCmdToggle;
txt = qtn_exgr_menuitem_toggleall;
},
MENU_ITEM
{
command = EAknExGridCmdAbout;
flags = EEikMenuItemSeparatorAfter;
txt = qtn_exgr_about;
},
MENU_ITEM
{
command = EAknExGridCmdClose;
txt = qtn_exgr_close;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_adddata
// addData form implementation
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_adddata
{
items=
{
MENU_ITEM
{
command = EAknExGridCmdAddOneItemInsert;
txt = qtn_exgr_menuitem_title11;
},
MENU_ITEM
{
command = EAknExGridCmdAddFiveItemsInsert;
txt = qtn_exgr_menuitem_title12;
},
MENU_ITEM
{
command = EAknExGridCmdAddOneItemToTheLast;
txt = qtn_exgr_menuitem_title13;
},
MENU_ITEM
{
command = EAknExGridCmdAddFiveItemsToTheLast;
txt = qtn_exgr_menuitem_title14;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_removedata
// removeData form implementation
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_removedata
{
items=
{
MENU_ITEM
{
command = EAknExGridCmdRemoveOneItemFromCurrent;
txt = qtn_exgr_menuitem_title21;
},
MENU_ITEM
{
command = EAknExGridCmdRemoveFiveItemsFromCurrent;
txt = qtn_exgr_menuitem_title22;
},
MENU_ITEM
{
command = EAknExGridCmdRemoveOneItemFromLast;
txt = qtn_exgr_menuitem_title23;
},
MENU_ITEM
{
command = EAknExGridCmdRemoveFiveItemsFromLast;
txt = qtn_exgr_menuitem_title24;
},
MENU_ITEM
{
command = EAknExGridCmdRemoveAllItems;
txt = qtn_exgr_menuitem_title25;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_loopingvert
// loopingvert form implementation
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_loopingvert
{
items=
{
MENU_ITEM
{
command = EAknExGridCmdLoopingVertFollowLoop;
txt = qtn_exgr_menuitem_sel_title41;
},
MENU_ITEM
{
command = EAknExGridCmdLoopingVertFollowStop;
txt = qtn_exgr_menuitem_sel_title42;
},
MENU_ITEM
{
command = EAknExGridCmdLoopingVertFollowGrid;
txt = qtn_exgr_menuitem_sel_title43;
},
MENU_ITEM
{
command = EAknExGridCmdLoopingVertStopEnd;
txt = qtn_exgr_menuitem_sel_title44;
}
};
}
//------------------------------------------------------------------------------
//
// r_exgr_menupane_loopinghoriz
// loopinghoriz form implementation
//
//------------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_exgr_menupane_loopinghoriz
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -