~ubuntu-branches/ubuntu/precise/fcitx-sunpinyin/precise

« back to all changes in this revision

Viewing changes to src/handler.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu, UPSTREAM
  • Date: 2011-10-21 16:42:11 UTC
  • mfrom: (1.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111021164211-w3aoorjcs609kxop
Tags: 0.3.2-2
debian/patches/01-fix_shuangpin_fuzzy.patch:
[UPSTREAM] Fix a problem in the fuzzy functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  Copyright (C) 2010~2010 by CSSlayer
2
 
    wengxt@gmail.com 
3
 
 
4
 
   This program is free software: you can redistribute it and/or modify
5
 
   it under the terms of the GNU General Public License as published by
6
 
   the Free Software Foundation; either version 3 of the License, or
7
 
   (at your option) any later version.
8
 
 
9
 
   This program is distributed in the hope that it will be useful,
10
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
   GNU General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU General Public License
15
 
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2010~2010 by CSSlayer                                   *
 
3
 *   wengxt@gmail.com                                                      *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
16
20
 
17
21
#include <ime-core/imi_view.h>
18
 
#include <fcitx/im.h>
19
 
#define BUF_SIZE 4096
 
22
#include <fcitx/ime.h>
 
23
#include <fcitx/instance.h>
20
24
 
 
25
struct FcitxSunpinyin;
21
26
class FcitxWindowHandler : public CIMIWinHandler
22
27
{
23
28
public:
26
31
    //virtual void updateStatus(int key, int value);
27
32
    virtual void commit(const TWCHAR* str);
28
33
 
29
 
    void set_eim(EXTRA_IM* eim_) {
30
 
        eim = eim_;
 
34
    void SetOwner(FcitxSunpinyin* owner_) {
 
35
        owner = owner_;
31
36
    }
32
37
 
33
 
    bool commit_flag ; 
 
38
    bool commit_flag ;
34
39
    bool candidate_flag ;
35
40
 
36
41
private:
37
 
    EXTRA_IM* eim;   
38
 
    TWCHAR front_src[BUF_SIZE];
39
 
    TWCHAR end_src[BUF_SIZE];
 
42
    FcitxSunpinyin* owner;
40
43
};
41
 
 
 
44
// kate: indent-mode cstyle; space-indent on; indent-width 0;