Logo Search packages:      
Sourcecode: fcitx version File versions  Download package

Classes | Defines | Typedefs | Functions | Variables

tools.c File Reference

配置文件读写 More...

#include "tools.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <limits.h>
#include <string.h>
#include <ctype.h>
#include "ui.h"
#include "version.h"
#include "MainWindow.h"
#include "InputWindow.h"
#include "PYFA.h"
#include "py.h"
#include "sp.h"
#include "ime.h"
Include dependency graph for tools.c:

Go to the source code of this file.

Classes

struct  Configure
struct  Configure_group

Defines

#define CONFIG_COLOR   3
#define CONFIG_HOTKEY   5
#define CONFIG_INTEGER   1
#define CONFIG_OTHER   6
#define CONFIG_STRING   2
#define CONFIG_SWITCHKEY   4

Typedefs

typedef int(* config_readwrite )(Configure *, void *, int)
typedef struct Configure Configure
typedef struct Configure_group Configure_group

Functions

static int add_pinyin_frequently_used_word (Configure *c, void *a, int isread)
static int association (Configure *c, void *a, int isread)
static int blur_an_ang (Configure *c, void *a, int isread)
int CalculateRecordNumber (FILE *fpDict)
int CalHZIndex (char *strHZ)
Bool CheckHZCharset (char *strHZ)
static int chinese_punctuation (Configure *c, void *a, int isread)
char * ConvertGBKSimple2Tradition (char *strHZ)
static int cursor_follow (Configure *c, void *a, int isread)
static int default_shuangpin_scheme (Configure *c, void *a, int isread)
static int delete_pinyin_frequently_used_word (Configure *c, void *a, int isread)
static int delete_pinyin_user_create_phrase (Configure *c, void *a, int isread)
static int fast_chinese_english_switch (Configure *c, void *a, int isread)
static int gbk_support (Configure *c, void *a, int isread)
static int gbk_traditional_simplified_switch (Configure *c, void *a, int isread)
static int generic_config_color (Configure *c, void *a, int isread)
static int generic_config_integer (Configure *c, void *a, int isread)
static int generic_config_string (Configure *c, void *a, int isread)
static int get_input_window_offset_x (Configure *c, void *a, int isread)
static int get_input_window_offset_y (Configure *c, void *a, int isread)
static int get_main_window_offset_x (Configure *c, void *a, int isread)
static int get_main_window_offset_y (Configure *c, void *a, int isread)
static int get_version (Configure *c, void *a, int isread)
static int hide_main_window (Configure *c, void *a, int isread)
void LoadConfig (Bool bMode)
 读取用户的配置文件
void LoadProfile (void)
 加载配置文件
static int lookup_pinyin (Configure *c, void *a, int isread)
static int main_window_input_method_name_color (Configure *c, void *a, int isread)
Bool MyStrcmp (char *str1, char *str2)
static int next_page (Configure *c, void *a, int isread)
static int pinyin_get_word_from_phrase (Configure *c, void *a, int isread)
static int prev_page (Configure *c, void *a, int isread)
static int read_configure (Configure *config, char *str)
void SaveConfig (void)
void SaveProfile (void)
static int sbc_dbc_switch (Configure *c, void *a, int isread)
static int second_third_candidate_word (Configure *c, void *a, int isread)
void SetHotKey (char *strKeys, HOTKEYS *hotkey)
void SetSwitchKey (char *str)
void SetTriggerKeys (char *str)
static int trigger_input_method (Configure *c, void *a, int isread)
static int write_configures (FILE *fp, Configure *configures)

Variables

_3D_EFFECT _3DEffectInputWindow
Bool _3DEffectMainWindow
ADJUSTORDER baseOrder
Bool bCenterInputWindow
Bool bChnPunc
Bool bCompactMainWindow
Bool bConvertPunc
Bool bCorner
Bool bDisablePagingInLegend
Bool bDoubleSwitchKey
Bool bEngAfterCap
Bool bEngPuncAfterNumber
Bool bFullPY
Bool bIsNeedSaveConfig = True
Bool bIsReloadConfig = True
Bool bLocked
Bool bPhraseTips
Bool bPointAfterNumber
Bool bPYCreateAuto
Bool bPYSaveAutoAsPhrase
Bool bShowInputWindowTriggering
Bool bShowUserSpeed
Bool bShowVersion
Bool bShowVK
Bool bTrackCursor
Bool bUseBold
Bool bUseGBK
Bool bUseGBKT
Bool bUseLegend
Bool bUsePinyin
Bool bUseQW
Bool bUseSP
Bool bUseTable
XColor colorArrow
Configure_group configure_groups []
char cPYYCDZ []
MESSAGE_COLOR cursorColor
Display * dpy
ENTER_TO_DO enterToDo
ADJUSTORDER freqOrder
static char * gGBKS2TTable = NULL
static int gGBKS2TTableSize = -1
HIDE_MAINWINDOW hideMainWindow
HOTKEYS hkCorner []
HOTKEYS hkGBK []
HOTKEYS hkGBT []
HOTKEYS hkGetPY []
HOTKEYS hkHideMainWindow []
HOTKEYS hkLegend []
HOTKEYS hkNextPage []
HOTKEYS hkPrevPage []
HOTKEYS hkPunc []
HOTKEYS hkPYAddFreq []
HOTKEYS hkPYDelFreq []
HOTKEYS hkPYDelUserPhr []
HOTKEYS hkTrack []
HOTKEYS hkTrigger []
HOTKEYS hkWBAddPhrase []
HOTKEYS hkWBAdjustOrder []
HOTKEYS hkWBDelPhrase []
Configure hotkey_config []
int i2ndSelectKey
int i3rdSelectKey
int iFixedInputWindowWidth
int iFontSize
INT8 iIMIndex
static int iIMIndex_tmp = 0
int iInputWindowHeight
int iInputWindowWidth
int iInputWindowX
int iInputWindowY
int iMainWindowFontSize
int iMainWindowX
int iMainWindowY
int iMaxCandWord
MESSAGE_COLOR IMNameColor []
Configure input_method_config []
WINDOW_COLOR inputWindowColor
MESSAGE_COLOR inputWindowLineColor
Configure interface_config []
int iOffsetX
int iOffsetY
int iScreen
SP_FROM iSPFrom
int iTempInputWindowX
int iTempInputWindowY
unsigned int iTimeInterval
INT8 iTriggerKeyCount
WINDOW_COLOR mainWindowColor
MESSAGE_COLOR mainWindowLineColor
int MAINWND_WIDTH
MESSAGE_COLOR messageColor []
MHPY MHPY_C []
MHPY MHPY_S []
Configure output_config []
ADJUSTORDER phraseOrder
Configure pinyin_config []
Configure profiles []
Configure program_config []
SEMICOLON_TO_DO semicolonToDo
char strDefaultSP []
char strExternIM []
char strFontEnName []
char strFontName []
char strNameOfPinyin []
char strNameOfQuwei []
char strNameOfShuangpin []
char strUserLocale []
KEY_CODE switchKey
XIMTriggerKeyTrigger_Keys
MESSAGE_COLOR VKWindowAlphaColor
WINDOW_COLOR VKWindowColor
MESSAGE_COLOR VKWindowFontColor

Detailed Description

配置文件读写

Author:
Yuking yuking_net@sohu.com
Date:
2008-1-16

Definition in file tools.c.


Generated by  Doxygen 1.6.0   Back to index