[mousetrap/ng] Removed extra files



commit 7716ba8c2b36d59818e91bf68aae99fa4f89fb3d
Author: Flavio Percoco Premoli <flaper87 gmail com>
Date:   Sat May 9 23:14:25 2009 +0200

    Removed extra files
---
 src/mousetrap/environment.py |  111 ------------------------------------------
 src/mousetrap/ui/i18n.py     |   53 --------------------
 2 files changed, 0 insertions(+), 164 deletions(-)

diff --git a/po/cat.po b/po/cat.po
old mode 100755
new mode 100644
diff --git a/src/mousetrap/environment.py b/src/mousetrap/environment.py
deleted file mode 100644
index b1a538f..0000000
--- a/src/mousetrap/environment.py
+++ /dev/null
@@ -1,111 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# MOUSEtrap
-#
-# Copyright 2008 Flavio Percoco Premoli
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Library 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
-# Library General Public License for more details.
-#
-# You should have received a copy of the GNU Library General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., Franklin Street, Fifth Floor,
-# Boston MA  02110-1301 USA.
-
-""" Holds mousetrap internal information. """
-
-__id__        = "$Id: environment.py 27 2009-03-31 12:02:22Z flaper $"
-__version__   = "$Revision: 27 $"
-__date__      = "$Date: 2009-03-31 14:02:22 +0200 (mar 31 de mar de 2009) $"
-__copyright__ = "Copyright (c) 2008 Flavio Percoco Premoli."
-__license__   = "GPLv2"
-
-import sys
-import os
-import gtk
-
-## mousetrap Version
-version     = "@MOUSETRAP_VERSION@"
-
-## "--prefix" parameter used when configuring the build.
-prefix      = "@prefix@"
-
-## The package name (should be "mousetrap").
-package     = "@PACKAGE@"
-
-## The name of the data directory (usually "share").
-datadirname = "%s/@DATADIRNAME@" % prefix
-
-## Directly mousetrap data dir
-mTDataDir = "%s/mousetrap" % datadirname
-
-## The actuall running desktop manager.
-desktop = os.getenv("DESKTOP_MANAGER")
-
-## The name of the O.S
-osName = os.name
-
-## The application's path
-appPath = os.path.dirname(__file__)
-
-## The user's home directory
-home = os.path.expanduser("~")
-
-## Configurations dir
-configPath = home + "/.mousetrap/"
-
-## Configurations dir
-configPath = "%s/.mousetrap/" % home
-
-## Scripts Path
-scriptsPath = "%s/scripts/" % configPath
-
-## Profiles Path
-profilesPath = "%s/profiles/" % scriptsPath
-
-## The config file
-configFile = configPath + "userSettings.cfg"
-
-## The debug file
-debugFile = configPath + "mousetrap_DEBUG.log"
-
-## The language path
-langPath = "%s/locale/" % datadirname
-
-## The haarcascade folder
-haars = appPath + "/haarcascade"
-
-## The debugging parts
-DEBUG = ['widget']
-
-## mousetrap Modules
-mTModules = { 'lTr' : '_startListener',
-              'cAm' : '_startCam',
-			  'wTp' : '_startWidgetsTrap'}
-
-
-## Screen Resolution
-screen       = { 'width'  : gtk.gdk.screen_width(),
-                 'height' : gtk.gdk.screen_height()}
-
-## Mose Movement Modes
-mouseModes = { }
-
-###################################################
-#                                                 #
-#          MOUSETRAP'S STATES DEFINITION          #
-#                                                 #
-###################################################
-
-## Mousetrap is active and the mouse pointer can be moved
-ACTIVE = "active"
-
-## Mousetrap is active and the click dialog is not hidden.
-CLKDLG = "clk-dialog"
diff --git a/src/mousetrap/ui/i18n.py b/src/mousetrap/ui/i18n.py
deleted file mode 100644
index 9f174f5..0000000
--- a/src/mousetrap/ui/i18n.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# mouseTrap
-#
-# Copyright 2008 Flavio Percoco Premoli
-#
-# This file is part of mouseTrap.
-#
-# mouseTrap is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# mouseTrap 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with mouseTrap.  If not, see <http://www.gnu.org/licenses/>.
-
-"""
-Provides i18n support for mouseTrap using the gettext module.  Tells
-gettext where to find localized strings and creates an alias, _, that
-maps to the gettext.gettext function.  This function will accept a
-string and return a localized string for that string.
-"""
-
-import os       # to get localdir path
-import gettext  # to get gettext (i18n) support
-
-# Alias gettext.gettext to _ and gettext.ngettext to ngettext
-#
-_ = gettext.gettext
-ngettext = gettext.ngettext
-
-
-# Tell gettext where to find localized strings.
-#
-localedir = os.path.join ("@prefix@", "@DATADIRNAME@", "locale")
-gettext.bindtextdomain ("@GETTEXT_PACKAGE@", localedir)
-gettext.textdomain("mousetrap")
-
-#import debug
-
-########################################################################
-#                                                                      #
-# Utility methods to facilitate easier translation                     #
-#                                                                      #
-########################################################################
-#
-# def _(txt):
-#     return txt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]