📄 pgmain.c
字号:
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* All rights reserved.
*
* This software is copyrighted by and is the sole property of
* VIA Networking Technologies, Inc. This software may only be used
* in accordance with the corresponding license agreement. Any unauthorized
* use, duplication, transmission, distribution, or disclosure of this
* software is expressly forbidden.
*
* This software is provided by VIA Networking Technologies, Inc. "as is"
* and any express or implied warranties, including, but not limited to, the
* implied warranties of merchantability and fitness for a particular purpose
* are disclaimed. In no event shall VIA Networking Technologies, Inc.
* be liable for any direct, indirect, incidental, special, exemplary, or
* consequential damages.
*
*
* File: maindef.c
*
* Purpose: Main menu UI definitions
*
* Author: Jenda Jao
*
* Date: Jan 08, 2002
*
* Functions:
*
* Revision History:
*
*/
#include "engine.h"
#include "allpages.h"
// main menu page
DIRECT_MEMTYPE_CODE SFixLabel aSFixLabelMain[] = {
{{2,32}, "S1908D Menu", 0},
{{3,32}, "=", 16},
{{24,2}, g_strHelpMsg, 0}
};
DIRECT_MEMTYPE_CODE SItemPageSel aSIPageSelMain[] = {
{g_strPortStatus, PAGE_PORT_STATUS},
{g_strPortCfg, PAGE_PORT},
{g_strTrunkCfg, PAGE_TRUNK_LIST},
{g_strVlanCfg, PAGE_VLAN_MENU},
{g_strSniffCfg, PAGE_SNIFF_DISABLE},
{g_strQosCfg, PAGE_QOS_ENABLE},
#ifdef __ASIC_VT6526
{g_strRateCfg, PAGE_RATE_CONTROL},
#endif
{g_strMiscOpr, PAGE_MISC_MENU},
{"Logout", PAGE_LOGIN},
};
DIRECT_MEMTYPE_CODE SItem aSItemMain[] = {
{{5,26}, aSIPageSelMain, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+2,26}, aSIPageSelMain+1, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+4,26}, aSIPageSelMain+2, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+6,26}, aSIPageSelMain+3, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+8,26}, aSIPageSelMain+4, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+10,26}, aSIPageSelMain+5, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+12,26}, aSIPageSelMain+6, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
{{5+14,26}, aSIPageSelMain+7, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
#ifdef __ASIC_VT6526
{{5+16,26}, aSIPageSelMain+8, "", ITEM_MENU_PAGESEL, REPEAT_TYPE_NONE, LINK_TYPE_EDITPAGE},
#endif
};
#ifdef __ASIC_VT6526
#define NUM_MENU_ITEM 9
#else
#define NUM_MENU_ITEM 8
#endif
DIRECT_MEMTYPE_CODE SPage g_SPageMainMenu = {
aSFixLabelMain, 3,
NULL, 0,
aSItemMain, NUM_MENU_ITEM,
};
DIRECT_MEMTYPE_CODE SPage g_SPageMainMenuNologout = {
aSFixLabelMain, 3,
NULL, 0,
aSItemMain, NUM_MENU_ITEM-1,
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -