⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgetc.c

📁 MiniGUI for uCOS 移植实验全部源码
💻 C
字号:
/*
 ** $Id: mgetc.c,v 1.91 2004/10/28 06:06:32 cxzhang Exp $
 **
 ** mgetc.c: definitions for incore resource.
 **
 ** Copyright (C) 2003 Feynman Software.
 **
 ** Create date: 2003/09/22
 */

/*
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "common.h"

typedef struct _ETCSECTION
{
    int key_nr;               /* key number in the section */
    char *name;               /* name of the section */
    char **keys;              /* key string arrays */
    char **values;            /* value string arrays */
} ETCSECTION;
typedef ETCSECTION* PETCSECTION;

typedef struct _ETC_S
{
    int section_nr;           /* number of sections */
    PETCSECTION sections;     /* pointer to section arrays */
} ETC_S;


#ifdef _INCORE_RES

#define _ETC_CONFIG_EVENT
#include  "mgetc-ucosii-MagicARM2200.c"

static char *SYSTEM_KEYS[] = {"gal_engine", "ial_engine", "mdev", "mtype"};

static char *FBCON_KEYS[] = {"defaultmode"};

static char *QVFB_KEYS[] = {"defaultmode", "display"};
static char *QVFB_VALUES[] = {"640x480-16bpp", "0"};

static char *CURSORINFO_KEYS[] = {"cursornumber"};
static char *CURSORINFO_VALUES[] = {"3"};

static char *ICONINFO_KEYS[] = {"iconnumber"};
static char *ICONINFO_VALUES[] = {"5"};

static char *BITMAPINFO_KEYS[] = {"bitmapnumber"};
#ifdef _PHONE_WINDOW_STYLE
static char *BITMAPINFO_VALUES[] = {"6"};
#else
static char *BITMAPINFO_VALUES[] = {"7"};
#endif

static char *BGPICTURE_KEYS[] = {"position"};
static char *BGPICTURE_VALUES[] = {"none"};

/*
static char *MOUSE_KEYS[] = {"dblclicktime"};
static char *MOUSE_VALUES[] = {"300"};
*/

#ifdef _ETC_CONFIG_EVENT
static char *EVENT_KEYS[] = {"timeoutusec", "repeatusec"};
static char *EVENT_VALUES[] = {"300000", "50000"};
#endif

#ifdef _IME_GB2312
static char* IMEINFO_KEYS[] = {"imetabpath", "imenumber", "ime0"};
static char* IMEINFO_VALUES[] = {"/usr/local/lib/minigui/res/imetab/", "1", "pinyin"};
#endif

static ETCSECTION mgetc_sections [] =
{
  {4, "system",       SYSTEM_KEYS,     SYSTEM_VALUES},
  {2, "qvfb",         QVFB_KEYS,       QVFB_VALUES},
  {1, "fbcon",        FBCON_KEYS,      FBCON_VALUES},
  {1, "dummy",        FBCON_KEYS,      FBCON_VALUES},
  {1, "em85xxosd",    FBCON_KEYS,      FBCON_VALUES},
  {1, "svpxxosd",     FBCON_KEYS,      FBCON_VALUES},
  {1, "utpmc",        FBCON_KEYS,      FBCON_VALUES},
  {1, "bf533",        FBCON_KEYS,      FBCON_VALUES},
  {1, "commlcd",      FBCON_KEYS,      FBCON_VALUES},
  {TABLESIZE(SYSTEMFONT_KEYS), "systemfont",  SYSTEMFONT_KEYS, SYSTEMFONT_VALUES},
  {1, "cursorinfo",   CURSORINFO_KEYS, CURSORINFO_VALUES},
  {1, "iconinfo",     ICONINFO_KEYS,   ICONINFO_VALUES},
  {1, "bitmapinfo",   BITMAPINFO_KEYS, BITMAPINFO_VALUES},
/* optional sections */
  {1, "bgpicture", BGPICTURE_KEYS, BGPICTURE_VALUES},
  /*
  {1, "mouse", MOUSE_KEYS, MOUSE_VALUES},
  */
  {2, "event", EVENT_KEYS, EVENT_VALUES},
#ifdef _IME_GB2312
  {3, "imeinfo", IMEINFO_KEYS, IMEINFO_VALUES},
#endif
};

ETC_S MGETC = { TABLESIZE (mgetc_sections), mgetc_sections };

#endif /* _INCORE_RES */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -