summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-06-19 18:30:26 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-06-19 18:30:26 +0800
commit036965377041ad9ba1df0755449108af0f07280b (patch)
treed0bf82dd2f09483c5898629c8a5a526258468ee3
parentfdbbcd9fe7af509a17eea1fcd3d78a5a013c6971 (diff)
downloadibus-036965377041ad9ba1df0755449108af0f07280b.tar.gz
ibus-036965377041ad9ba1df0755449108af0f07280b.tar.xz
ibus-036965377041ad9ba1df0755449108af0f07280b.zip
Add header for sources.
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac5
-rw-r--r--engine/Makefile.am5
-rw-r--r--engine/anthy/Makefile.am5
-rw-r--r--engine/anthy/anthy.i31
-rw-r--r--engine/anthy/engine.py22
-rw-r--r--engine/anthy/factory.py21
-rw-r--r--engine/anthy/main.py21
-rw-r--r--engine/anthy/tables.py20
-rw-r--r--engine/enchant/Makefile.am5
-rw-r--r--engine/enchant/engine.py22
-rw-r--r--engine/enchant/factory.py21
-rw-r--r--engine/enchant/main.py21
-rw-r--r--gtk2/Makefile.am5
-rw-r--r--ibus/Makefile.am4
-rw-r--r--ibus/__init__.py21
-rw-r--r--ibus/application.py21
-rw-r--r--ibus/attribute.py21
-rw-r--r--ibus/common.py21
-rw-r--r--ibus/exception.py21
-rw-r--r--ibus/gtk.py21
-rw-r--r--ibus/interface/Makefile.am5
-rw-r--r--ibus/interface/__init__.py21
-rw-r--r--ibus/interface/iengine.py29
-rw-r--r--ibus/interface/ienginefactory.py27
-rw-r--r--ibus/interface/iibus.py31
-rw-r--r--ibus/interface/ipanel.py29
-rw-r--r--ibus/keysyms.py1
-rw-r--r--ibus/lookuptable.py21
-rw-r--r--ibus/modifier.py34
-rw-r--r--ibus/object.py21
-rw-r--r--ibus/panel.py21
-rw-r--r--ibus/property.py21
-rw-r--r--ibusdaemon/Makefile.am4
-rw-r--r--ibusdaemon/bus.py22
-rw-r--r--ibusdaemon/connection.py21
-rw-r--r--ibusdaemon/contextmanager.py21
-rw-r--r--ibusdaemon/engine.py21
-rw-r--r--ibusdaemon/enginefactory.py21
-rw-r--r--ibusdaemon/factorymanager.py21
-rw-r--r--ibusdaemon/ibusdaemon.py22
-rw-r--r--ibusdaemon/inputcontext.py21
-rw-r--r--ibusdaemon/lookuptable.py21
-rw-r--r--ibusdaemon/panel.py21
-rw-r--r--icons/Makefile.am5
-rw-r--r--panel/Makefile.am5
-rw-r--r--panel/candidatepanel.py22
-rw-r--r--panel/handle.py21
-rw-r--r--panel/image.py21
-rw-r--r--panel/lang.py21
-rw-r--r--panel/languagebar.py21
-rw-r--r--panel/main.py21
-rw-r--r--panel/panel.py22
-rw-r--r--qt/Makefile.am4
-rw-r--r--qt/ibus-client.cpp21
-rw-r--r--qt/ibus-client.h21
-rw-r--r--qt/ibus-input-context.cpp21
-rw-r--r--qt/ibus-input-context.h21
-rw-r--r--qt/ibus.pro23
-rw-r--r--qt/im-ibus-qt.cpp21
60 files changed, 1010 insertions, 96 deletions
diff --git a/Makefile.am b/Makefile.am
index 0746edb..9847ab4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,6 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
SUBDIRS = \
ibus \
ibusdaemon \
diff --git a/configure.ac b/configure.ac
index 47074be..a13ac5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
# if not 1, append datestamp to the version number.
m4_define([ibus_released], [0])
m4_define([ibus_major_version], [0])
diff --git a/engine/Makefile.am b/engine/Makefile.am
index 258edf0..38d1a92 100644
--- a/engine/Makefile.am
+++ b/engine/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
SUBDIRS = \
anthy \
enchant \
diff --git a/engine/anthy/Makefile.am b/engine/anthy/Makefile.am
index 16645d1..9f5e669 100644
--- a/engine/anthy/Makefile.am
+++ b/engine/anthy/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
engine_anthy_PYTHON = \
engine.py \
factory.py \
diff --git a/engine/anthy/anthy.i b/engine/anthy/anthy.i
index 2441bb7..7df8ebb 100644
--- a/engine/anthy/anthy.i
+++ b/engine/anthy/anthy.i
@@ -1,15 +1,34 @@
-/* anthy.i */
- %module anthy
- %{
+/* vim:set noet ts=4: */
+/*
+ * ibus - The Input Bus
+ *
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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
+ */
+%module anthy
+%{
/* Put header files here or function declarations like below */
- #include <anthy/anthy.h>
- %}
+#include <anthy/anthy.h>
+%}
%init %{
anthy_init ();
%}
-
/* anthy_context_t */
%include anthy/anthy.h
struct anthy_context {};
diff --git a/engine/anthy/engine.py b/engine/anthy/engine.py
index f38cf1a..2c4e820 100644
--- a/engine/anthy/engine.py
+++ b/engine/anthy/engine.py
@@ -1,4 +1,24 @@
-#!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gobject
import gtk
import pango
diff --git a/engine/anthy/factory.py b/engine/anthy/factory.py
index de2792e..ca89fc5 100644
--- a/engine/anthy/factory.py
+++ b/engine/anthy/factory.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
from ibus import interface
import engine
diff --git a/engine/anthy/main.py b/engine/anthy/main.py
index aedc214..1e752f0 100644
--- a/engine/anthy/main.py
+++ b/engine/anthy/main.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
import dbus.connection
import dbus.mainloop.glib
diff --git a/engine/anthy/tables.py b/engine/anthy/tables.py
index e01a464..02a21ac 100644
--- a/engine/anthy/tables.py
+++ b/engine/anthy/tables.py
@@ -1,4 +1,24 @@
+# vim:set noet ts=4:
# -*- encoding: utf-8 -*-
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
# string, result, cont
romaji_typing_rule = {
diff --git a/engine/enchant/Makefile.am b/engine/enchant/Makefile.am
index 3c221b1..3b51fcc 100644
--- a/engine/enchant/Makefile.am
+++ b/engine/enchant/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
engine_enchant_PYTHON = \
engine.py \
factory.py \
diff --git a/engine/enchant/engine.py b/engine/enchant/engine.py
index 8508ac9..700d89a 100644
--- a/engine/enchant/engine.py
+++ b/engine/enchant/engine.py
@@ -1,4 +1,24 @@
-#!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gobject
import gtk
import pango
diff --git a/engine/enchant/factory.py b/engine/enchant/factory.py
index 80ee244..ddca013 100644
--- a/engine/enchant/factory.py
+++ b/engine/enchant/factory.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
from ibus import interface
import engine
diff --git a/engine/enchant/main.py b/engine/enchant/main.py
index aedc214..1e752f0 100644
--- a/engine/enchant/main.py
+++ b/engine/enchant/main.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
import dbus.connection
import dbus.mainloop.glib
diff --git a/gtk2/Makefile.am b/gtk2/Makefile.am
index e365ed7..bd3b3be 100644
--- a/gtk2/Makefile.am
+++ b/gtk2/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
INCLUDES = \
-I$(top_srcdir)
diff --git a/ibus/Makefile.am b/ibus/Makefile.am
index 616f7b0..d765b76 100644
--- a/ibus/Makefile.am
+++ b/ibus/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,6 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
SUBDIRS = \
interface \
$(NULL)
diff --git a/ibus/__init__.py b/ibus/__init__.py
index 3c05e9e..a669ef0 100644
--- a/ibus/__init__.py
+++ b/ibus/__init__.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
from object import *
from attribute import *
from property import *
diff --git a/ibus/application.py b/ibus/application.py
index d46dd26..d5ef8a2 100644
--- a/ibus/application.py
+++ b/ibus/application.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import ibus
import dbus
diff --git a/ibus/attribute.py b/ibus/attribute.py
index a8af1f2..2b8ba0c 100644
--- a/ibus/attribute.py
+++ b/ibus/attribute.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
ATTR_TYPE_UNDERLINE = 1
diff --git a/ibus/common.py b/ibus/common.py
index 303e236..1938d27 100644
--- a/ibus/common.py
+++ b/ibus/common.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import os
import sys
import getpass
diff --git a/ibus/exception.py b/ibus/exception.py
index c699209..63072c9 100644
--- a/ibus/exception.py
+++ b/ibus/exception.py
@@ -1,2 +1,23 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
class IBusException (Exception):
pass
diff --git a/ibus/gtk.py b/ibus/gtk.py
index 340cd27..9ef4494 100644
--- a/ibus/gtk.py
+++ b/ibus/gtk.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import pango
import ibus
diff --git a/ibus/interface/Makefile.am b/ibus/interface/Makefile.am
index eaeeea5..6a10737 100644
--- a/ibus/interface/Makefile.am
+++ b/ibus/interface/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
ibus_interface_PYTHON = \
ienginefactory.py \
iengine.py \
diff --git a/ibus/interface/__init__.py b/ibus/interface/__init__.py
index 6a09710..3c80a4f 100644
--- a/ibus/interface/__init__.py
+++ b/ibus/interface/__init__.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
from iibus import IIBus
from iengine import IEngine
from ienginefactory import IEngineFactory
diff --git a/ibus/interface/iengine.py b/ibus/interface/iengine.py
index 46f48dd..1a585fa 100644
--- a/ibus/interface/iengine.py
+++ b/ibus/interface/iengine.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus.service
from ibus.common import \
IBUS_ENGINE_IFACE
@@ -6,18 +27,18 @@ class IEngine (dbus.service.Object):
# define method decorator.
method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_ENGINE_IFACE, \
- **args)
+ **args)
# define signal decorator.
signal = lambda **args: \
dbus.service.signal (dbus_interface = IBUS_ENGINE_IFACE, \
- **args)
+ **args)
# define async method decorator.
async_method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_ENGINE_IFACE, \
- async_callbacks = ("reply_cb", "error_cb"), \
- **args)
+ async_callbacks = ("reply_cb", "error_cb"), \
+ **args)
@method (in_signature = "ubu", out_signature = "b")
def ProcessKeyEvent (self, keyval, is_press, state):
diff --git a/ibus/interface/ienginefactory.py b/ibus/interface/ienginefactory.py
index e307df4..52436c8 100644
--- a/ibus/interface/ienginefactory.py
+++ b/ibus/interface/ienginefactory.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus.service
from ibus.common import \
IBUS_ENGINE_FACTORY_IFACE
@@ -6,13 +27,13 @@ class IEngineFactory (dbus.service.Object):
# define method decorator.
method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_ENGINE_FACTORY_IFACE, \
- **args)
+ **args)
# define async method decorator.
async_method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_ENGINE_FACTORY_IFACE, \
- async_callbacks = ("reply_cb", "error_cb"), \
- **args)
+ async_callbacks = ("reply_cb", "error_cb"), \
+ **args)
# Return a array. [name, default_language, icon_path, authors, credits]
@method (out_signature = "as")
def GetInfo (self): pass
diff --git a/ibus/interface/iibus.py b/ibus/interface/iibus.py
index a62cbc7..9e9a35a 100644
--- a/ibus/interface/iibus.py
+++ b/ibus/interface/iibus.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus.service
from ibus.common import \
IBUS_IFACE
@@ -6,15 +27,15 @@ class IIBus (dbus.service.Object):
# define method decorator.
method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_IFACE, \
- connection_keyword = "dbusconn", \
- **args)
+ connection_keyword = "dbusconn", \
+ **args)
# define async method decorator.
async_method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_IFACE, \
- connection_keyword = "dbusconn", \
- async_callbacks = ("reply_cb", "error_cb"), \
- **args)
+ connection_keyword = "dbusconn", \
+ async_callbacks = ("reply_cb", "error_cb"), \
+ **args)
@method (out_signature = "s")
def GetIBusAddress (self, dbusconn): pass
diff --git a/ibus/interface/ipanel.py b/ibus/interface/ipanel.py
index 60659d7..44478d4 100644
--- a/ibus/interface/ipanel.py
+++ b/ibus/interface/ipanel.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus.service
from ibus.common import \
IBUS_PANEL_IFACE
@@ -6,18 +27,18 @@ class IPanel (dbus.service.Object):
# define method decorator.
method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_PANEL_IFACE, \
- **args)
+ **args)
# define signal decorator.
signal = lambda **args: \
dbus.service.signal (dbus_interface = IBUS_PANEL_IFACE, \
- **args)
+ **args)
# define async method decorator.
async_method = lambda **args: \
dbus.service.method (dbus_interface = IBUS_PANE_IFACE, \
- async_callbacks = ("reply_cb", "error_cb"), \
- **args)
+ async_callbacks = ("reply_cb", "error_cb"), \
+ **args)
@method (in_signature="iiii")
def SetCursorLocation (self, x, y, w, h): pass
diff --git a/ibus/keysyms.py b/ibus/keysyms.py
index 669088e..55da5c0 100644
--- a/ibus/keysyms.py
+++ b/ibus/keysyms.py
@@ -19,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-
VoidSymbol = 0xFFFFFF
BackSpace = 0xFF08
Tab = 0xFF09
diff --git a/ibus/lookuptable.py b/ibus/lookuptable.py
index 1554535..ab61e50 100644
--- a/ibus/lookuptable.py
+++ b/ibus/lookuptable.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
from attribute import *
from exception import *
diff --git a/ibus/modifier.py b/ibus/modifier.py
index 12b62cf..05b6dac 100644
--- a/ibus/modifier.py
+++ b/ibus/modifier.py
@@ -1,13 +1,33 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
SHIFT_MASK = 1 << 0
-LOCK_MASK = 1 << 1
+LOCK_MASK = 1 << 1
CONTROL_MASK = 1 << 2
-ALT_MASK = 1 << 3
-MOD1_MASK = 1 << 3
-MOD2_MASK = 1 << 4
-MOD3_MASK = 1 << 5
-MOD4_MASK = 1 << 6
-MOD5_MASK = 1 << 7
+ALT_MASK = 1 << 3
+MOD1_MASK = 1 << 3
+MOD2_MASK = 1 << 4
+MOD3_MASK = 1 << 5
+MOD4_MASK = 1 << 6
+MOD5_MASK = 1 << 7
BUTTON1_MASK = 1 << 8
BUTTON2_MASK = 1 << 9
BUTTON3_MASK = 1 << 10
diff --git a/ibus/object.py b/ibus/object.py
index e250b0c..e568568 100644
--- a/ibus/object.py
+++ b/ibus/object.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gobject
class Object (gobject.GObject):
diff --git a/ibus/panel.py b/ibus/panel.py
index 0a31a7e..aa58cab 100644
--- a/ibus/panel.py
+++ b/ibus/panel.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
class PanelItem:
pass
diff --git a/ibus/property.py b/ibus/property.py
index f6fb5f7..40b940a 100644
--- a/ibus/property.py
+++ b/ibus/property.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
PROP_TYPE_NORMAL = 0
diff --git a/ibusdaemon/Makefile.am b/ibusdaemon/Makefile.am
index 74b4b74..f3e93c0 100644
--- a/ibusdaemon/Makefile.am
+++ b/ibusdaemon/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,6 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
ibusdaemon_PYTHON = \
bus.py \
connection.py \
diff --git a/ibusdaemon/bus.py b/ibusdaemon/bus.py
index f02d25a..ef6948d 100644
--- a/ibusdaemon/bus.py
+++ b/ibusdaemon/bus.py
@@ -1,4 +1,24 @@
-#!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import weakref
import dbus
import ibus
diff --git a/ibusdaemon/connection.py b/ibusdaemon/connection.py
index f1d2882..67bafc5 100644
--- a/ibusdaemon/connection.py
+++ b/ibusdaemon/connection.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus.lowlevel
import ibus
import gobject
diff --git a/ibusdaemon/contextmanager.py b/ibusdaemon/contextmanager.py
index f306a9d..ac01a23 100644
--- a/ibusdaemon/contextmanager.py
+++ b/ibusdaemon/contextmanager.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import ibus
from inputcontext import InputContext
diff --git a/ibusdaemon/engine.py b/ibusdaemon/engine.py
index b51afa9..a25b8de 100644
--- a/ibusdaemon/engine.py
+++ b/ibusdaemon/engine.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import weakref
import gobject
import ibus
diff --git a/ibusdaemon/enginefactory.py b/ibusdaemon/enginefactory.py
index 30ec711..24974b1 100644
--- a/ibusdaemon/enginefactory.py
+++ b/ibusdaemon/enginefactory.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import weakref
import gobject
import ibus
diff --git a/ibusdaemon/factorymanager.py b/ibusdaemon/factorymanager.py
index bde9332..e3344fd 100644
--- a/ibusdaemon/factorymanager.py
+++ b/ibusdaemon/factorymanager.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import weakref
import gobject
import ibus
diff --git a/ibusdaemon/ibusdaemon.py b/ibusdaemon/ibusdaemon.py
index d2ecdd8..2e8943d 100644
--- a/ibusdaemon/ibusdaemon.py
+++ b/ibusdaemon/ibusdaemon.py
@@ -1,4 +1,24 @@
-#!/usr/bin/env python
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import os
import sys
import getpass
diff --git a/ibusdaemon/inputcontext.py b/ibusdaemon/inputcontext.py
index 23beb75..8bbbeba 100644
--- a/ibusdaemon/inputcontext.py
+++ b/ibusdaemon/inputcontext.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gobject
import ibus
diff --git a/ibusdaemon/lookuptable.py b/ibusdaemon/lookuptable.py
index 5605340..3be493d 100644
--- a/ibusdaemon/lookuptable.py
+++ b/ibusdaemon/lookuptable.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import dbus
class Candidates (list):
diff --git a/ibusdaemon/panel.py b/ibusdaemon/panel.py
index 2fbc690..dbba687 100644
--- a/ibusdaemon/panel.py
+++ b/ibusdaemon/panel.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import weakref
import gobject
import ibus
diff --git a/icons/Makefile.am b/icons/Makefile.am
index 78f30a3..667abe7 100644
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
icons_DATA = \
engine-default.svg \
ibus-anthy.png \
diff --git a/panel/Makefile.am b/panel/Makefile.am
index bb3cb39..b8f0dfe 100644
--- a/panel/Makefile.am
+++ b/panel/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,7 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
+
panel_PYTHON = \
candidatepanel.py \
handle.py \
diff --git a/panel/candidatepanel.py b/panel/candidatepanel.py
index 104fe4e..a11eab0 100644
--- a/panel/candidatepanel.py
+++ b/panel/candidatepanel.py
@@ -1,4 +1,24 @@
-# -*- coding: utf-8 -*-
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gtk
import gtk.gdk as gdk
import gobject
diff --git a/panel/handle.py b/panel/handle.py
index 895f946..b70aa66 100644
--- a/panel/handle.py
+++ b/panel/handle.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gtk
import gtk.gdk as gdk
import gobject
diff --git a/panel/image.py b/panel/image.py
index cea8813..51652a9 100644
--- a/panel/image.py
+++ b/panel/image.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gtk
import gtk.gdk as gdk
diff --git a/panel/lang.py b/panel/lang.py
index a939226..98c2988 100644
--- a/panel/lang.py
+++ b/panel/lang.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
LANGUAGES = {
"zh" : "Chinese",
"zh_CN" : "Chinese (Simplified)",
diff --git a/panel/languagebar.py b/panel/languagebar.py
index f3a528f..527c505 100644
--- a/panel/languagebar.py
+++ b/panel/languagebar.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gtk
import gtk.gdk as gdk
import gobject
diff --git a/panel/main.py b/panel/main.py
index 6877c63..26ebc20 100644
--- a/panel/main.py
+++ b/panel/main.py
@@ -1,3 +1,24 @@
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import ibus
import gtk
import dbus
diff --git a/panel/panel.py b/panel/panel.py
index e8a076d..9882394 100644
--- a/panel/panel.py
+++ b/panel/panel.py
@@ -1,4 +1,24 @@
-# -*- coding: utf-8 -*-
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
+
import gtk
import gtk.gdk as gdk
import gobject
diff --git a/qt/Makefile.am b/qt/Makefile.am
index 48d70de..32aecbe 100644
--- a/qt/Makefile.am
+++ b/qt/Makefile.am
@@ -4,7 +4,6 @@
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
-#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -19,9 +18,6 @@
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-#
-# $Id: $
-#
EXTRA_DIST = \
ibus-client.cpp \
diff --git a/qt/ibus-client.cpp b/qt/ibus-client.cpp
index 59736fe..ef963e7 100644
--- a/qt/ibus-client.cpp
+++ b/qt/ibus-client.cpp
@@ -1,3 +1,24 @@
+/* vim:set noet ts=4: */
+/*
+ * ibus - The Input Bus
+ *
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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 <QtDebug>
#include <QFile>
#include <QDBusConnection>
diff --git a/qt/ibus-client.h b/qt/ibus-client.h
index e1e48ce..4565a78 100644
--- a/qt/ibus-client.h
+++ b/qt/ibus-client.h
@@ -1,3 +1,24 @@
+/* vim:set noet ts=4: */
+/*
+ * ibus - The Input Bus
+ *
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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
+ */
#ifndef __IBUS_CLIENT_H_
#define __IBUS_CLIENT_H_
#include <QObject>
diff --git a/qt/ibus-input-context.cpp b/qt/ibus-input-context.cpp
index 2700279..3e6a3ba 100644
--- a/qt/ibus-input-context.cpp
+++ b/qt/ibus-input-context.cpp
@@ -1,3 +1,24 @@
+/* vim:set noet ts=4: */
+/*
+ * ibus - The Input Bus
+ *
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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 "ibus-input-context.h"
#include "ibus-client.h"
#include <QtDebug>
diff --git a/qt/ibus-input-context.h b/qt/ibus-input-context.h
index 7d9ea1f..6aac46b 100644
--- a/qt/ibus-input-context.h
+++ b/qt/ibus-input-context.h
@@ -1,3 +1,24 @@
+/* vim:set noet ts=4: */
+/*
+ * ibus - The Input Bus
+ *
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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
+ */
#ifndef __IBUS_INPUT_CONTEXT_H_
#define __IBUS_INPUT_CONTEXT_H_
#include <QInputContext>
diff --git a/qt/ibus.pro b/qt/ibus.pro
index 15a5326..1c308a2 100644
--- a/qt/ibus.pro
+++ b/qt/ibus.pro
@@ -1,6 +1,23 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Sat Jun 14 14:04:55 2008
-######################################################################
+# vim:set noet ts=4:
+#
+# ibus - The Input Bus
+#
+# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser 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
TEMPLATE = lib
TARGET = ibus
diff --git a/qt/im-ibus-qt.cpp b/qt/im-ibus-qt.cpp
index 2ffb6f6..0d6944b 100644
--- a/qt/im-ibus-qt.cpp
+++ b/qt/im-ibus-qt.cpp
@@ -1,20 +1,23 @@
+/* vim:set noet ts=4: */
/*
- * IBus
- *
- * Copyright (c) 2008 Huang Peng <shawn.p.huang@gmail.com>
+ * ibus - The Input Bus
*
+ * Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation and
- * appearing in the file LICENSE.LGPL included in the package of this file.
- * You can also redistribute it and/or modify it under the terms of
- * the GNU General Public License as published by the Free Software Foundation and
- * appearing in the file LICENSE.GPL included in the package of this file.
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
*
* This library 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.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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 <cassert>
#include <Qt>