?? htcfg.h
字號:
/* * HT Editor * htcfg.h * * Copyright (C) 1999-2002 Stefan Weyergraf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __HTCFG_H__#define __HTCFG_H__#include "data.h"#include "stream.h"#if defined(WIN32) || defined(__WIN32__) || defined(MSDOS) || defined(DJGPP)#define SYSTEM_CONFIG_FILE_NAME "ht2.cfg"#else#define SYSTEM_CONFIG_FILE_NAME ".htcfg2"#endifenum loadstore_result { LS_OK, LS_ERROR_NOT_FOUND, LS_ERROR_READ, LS_ERROR_WRITE, LS_ERROR_MAGIC, LS_ERROR_VERSION, // sets error_info to version LS_ERROR_FORMAT, LS_ERROR_CORRUPTED};/* SYSTEM CONFIG FILE VERSION HISTORY * Version 2: HT 0.4.4 * Version 3: HT 0.4.5 * Version 4: HT 0.5.0 * Version 5: HT 0.6.0 * Version 6: HT 2.0beta */#define ht_systemconfig_magic "HTCP"#define ht_systemconfig_fileversion 6/* FILE CONFIG FILE VERSION HISTORY * Version 1: HT 0.5.0 * Version 2: HT 0.6.0 * Version 3: HT 0.7.0 * Version 4: HT 2.0beta */#define ht_fileconfig_magic "HTCF"#define ht_fileconfig_fileversion 4/* PROJECT CONFIG FILE VERSION HISTORY * Version 1: HT 0.7.0 * Version 2: HT 2.0beta */#define ht_projectconfig_magic "HTPR"#define ht_projectconfig_fileversion 2/**/extern char *systemconfig_file;loadstore_result save_systemconfig(String &error_info);bool load_systemconfig(loadstore_result *result, int *error_info);typedef void (*load_fcfg_func)(ObjectStream &f, void *context);typedef void (*store_fcfg_func)(ObjectStream &f, void *context);loadstore_result save_fileconfig(const char *fileconfig_file, const char *magic, uint version, store_fcfg_func store_func, void *context, String &error_info);loadstore_result load_fileconfig(const char *fileconfig_file, const char *magic, uint version, load_fcfg_func load_func, void *context, String &error_info);/* * INIT */extern bool ht_cfg_use_homedir;bool init_cfg();/* * DONE */void done_cfg();#endif /* !__HTCFG_H__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -