Back to index

im-sdk  12.3.91
palette_aux.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2003 Sun Microsystems Inc.
00003  *
00004  * This is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  *
00019  * Authors: Karl Park <karl.park@sun.com>
00020  */
00021 
00022 
00023 #ifndef _PALETTEAUX_H_
00024 #define _PALETTEAUX_H_
00025 
00026 
00027 #include "vkb_aux.h"
00028 
00029 #if 0
00030 typedef struct _PaletteAuxInfo {
00031   INPUT_MODE_T info_input_mode;
00032   KEYBOARD_T   keyboard_type;
00033 } PaletteAuxInfo;
00034 #endif
00035 
00036 typedef struct {
00037   GdkDisplay *pdisplay;
00038   GdkScreen *pscreen;
00039   GtkWidget *ppalette;
00040   GtkWidget *pbutton_input_mode;
00041   GtkWidget *ppopup_input_mode;
00042   GtkWidget *pbutton_keyboard;
00043   GtkWidget *ppopup_keyboard;
00044   GtkWidget *pbutton_option;
00045   GtkWidget *ppopup_option;
00046   GtkTooltips *ptooltip;
00047   GtkWidget *about_dialog;
00048 
00049   int pos_x, pos_y;
00050   int i_width, i_height;
00051 
00052   vkb_layout_t **vkb_layout_list;
00053   vkb_layout_t *current_vkb_layout;
00054   vkb_window_t *vkb_window;
00055   gboolean     vkb_show_status;
00056 }PaletteInfoRecord, *PaletteInfo;
00057 
00058 
00059 enum button_type {
00060   FIXBTN_MOVEAREA = 0,             
00061   FIXBTN_IMENAME,
00062   FIXBTN_CHARTYPE,          
00063   FIXBTN_PUNCTTYPE,  
00064   FIXBTN_KEYBOARD,   
00065   FIXBTN_OPTIONS,    
00066   FIXBTN_NUM,
00067 };
00068 
00069 enum char_type {
00070   HALFWIDTH_CHAR = 0,
00071   FULLWIDTH_CHAR,
00072   CHAR_TYPE_NUM
00073 };
00074 
00075 enum punct_type {
00076   ENGLISH_PUNCT = 0,
00077   CHINESE_PUNCT,
00078   PUNCT_TYPE_NUM
00079 };
00080 
00081 enum keyboardbutton_type {
00082   KEYBOARD_PMP = 0,
00083   KEYBOARD_PMP_NUM
00084 };
00085 
00086 enum optionsbutton_type {
00087   OPTIONS_PMP = 0,
00088   OPTIONS_PMP_NUM
00089 };
00090 
00091 typedef struct _paletteauxdata PaletteAuxData;
00092 
00093 struct tag_paletteauxdata {
00094   int         bPixmapsInited;
00095   GdkPixmap   *arrCharTypePmp[CHAR_TYPE_NUM];    
00096   GdkPixmap   *arrPunctTypePmp[PUNCT_TYPE_NUM];    
00097   GdkPixmap   *arrKeyboardPmp[KEYBOARD_PMP_NUM];    
00098   GdkPixmap   *arrOptionsPmp[OPTIONS_PMP_NUM];    
00099 
00100   int         nHeight;
00101   char               *pIME_Name;
00102 
00103   int         x;
00104   int         y;
00105   int         on;
00106   int         qjbj;
00107   int         punct;
00108   int         engine_id;
00109 };
00110 
00111 /* public methods */
00112 void aux_palette_redrdaw_self (gboolean isibility);
00113 #endif // _PALETTEAUX_H_