summaryrefslogtreecommitdiffstats
path: root/ibus/interface
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 /ibus/interface
parentfdbbcd9fe7af509a17eea1fcd3d78a5a013c6971 (diff)
downloadibus-036965377041ad9ba1df0755449108af0f07280b.tar.gz
ibus-036965377041ad9ba1df0755449108af0f07280b.tar.xz
ibus-036965377041ad9ba1df0755449108af0f07280b.zip
Add header for sources.
Diffstat (limited to 'ibus/interface')
-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
6 files changed, 122 insertions, 20 deletions
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