[tuxdroid-svn] r905 - in software/gadgets/calculator/trunk: . Calculator Calculator/Pictures Calcul
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-02-09 17:52:39
|
Author: Paul_R Date: 2008-02-09 18:52:32 +0100 (Sat, 09 Feb 2008) New Revision: 905 Added: software/gadgets/calculator/trunk/Calculator/Pictures/ software/gadgets/calculator/trunk/Calculator/Pictures/Icons/ software/gadgets/calculator/trunk/Calculator/Pictures/Icons/gadget.png software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_blue.png software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_green.png software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_red.png software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_yellow.png software/gadgets/calculator/trunk/Calculator/Scripts/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.glade software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.pyp software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.glade software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.pyp software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/pixmaps/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/pixmaps/gadget.png software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.glade software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.pyp software/gadgets/calculator/trunk/Calculator/Scripts/Python/init.pyp software/gadgets/calculator/trunk/Calculator/Scripts/Python/main.pyp software/gadgets/calculator/trunk/Calculator/Scripts/Python/notify.pyp software/gadgets/calculator/trunk/Calculator/Strings/ software/gadgets/calculator/trunk/Calculator/Strings/fr_ALL.xml software/gadgets/calculator/trunk/Calculator/about.xml software/gadgets/calculator/trunk/Calculator/parts.xml software/gadgets/calculator/trunk/Calculator/settings.xml software/gadgets/calculator/trunk/Calculator/strings.xml Modified: software/gadgets/calculator/trunk/Calculator.tgf Log: * Bug fixes : - Added some function to obtain a result as float. now, 7/2 = 3.5 ! - Implemented the K_STAR to enter a fractional number. * version++ (0.0.2 -> 0.03) Added: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/gadget.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_blue.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_blue.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_green.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_green.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_red.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_red.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_yellow.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Pictures/Icons/rc_yellow.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.glade =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.glade (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.glade 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,523 @@ +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> + +<glade-interface> + +<widget class="GtkWindow" id="window1"> + <property name="width_request">266</property> + <property name="visible">True</property> + <property name="title" translatable="yes">window1</property> + <property name="type">GTK_WINDOW_TOPLEVEL</property> + <property name="window_position">GTK_WIN_POS_NONE</property> + <property name="modal">False</property> + <property name="resizable">False</property> + <property name="destroy_with_parent">False</property> + <property name="decorated">True</property> + <property name="skip_taskbar_hint">False</property> + <property name="skip_pager_hint">False</property> + <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> + <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> + <property name="focus_on_map">True</property> + <property name="urgency_hint">False</property> + <signal name="destroy" handler="on_window1_destroy" last_modification_time="Wed, 12 Sep 2007 12:36:49 GMT"/> + + <child> + <widget class="GtkVBox" id="vbox1"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">0</property> + + <child> + <widget class="GtkFixed" id="fixed3"> + <property name="border_width">5</property> + <property name="visible">True</property> + + <child> + <widget class="GtkEntry" id="entry1"> + <property name="width_request">249</property> + <property name="height_request">29</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="editable">False</property> + <property name="visibility">True</property> + <property name="max_length">0</property> + <property name="text" translatable="yes">0</property> + <property name="has_frame">True</property> + <property name="invisible_char">●</property> + <property name="activates_default">False</property> + </widget> + <packing> + <property name="x">0</property> + <property name="y">16</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkFixed" id="fixed4"> + <property name="height_request">14</property> + <property name="visible">True</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + + <child> + <widget class="GtkFixed" id="fixed2"> + <property name="width_request">298</property> + <property name="height_request">205</property> + <property name="visible">True</property> + + <child> + <widget class="GtkButton" id="button16"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">False</property> + <signal name="clicked" handler="on_button16_clicked" last_modification_time="Wed, 12 Sep 2007 12:58:43 GMT"/> + + <child> + <widget class="GtkImage" id="image5"> + <property name="visible">True</property> + <property name="stock">gtk-yes</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> + </widget> + <packing> + <property name="x">8</property> + <property name="y">160</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button12"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button12_clicked" last_modification_time="Wed, 12 Sep 2007 12:58:32 GMT"/> + + <child> + <widget class="GtkImage" id="image4"> + <property name="visible">True</property> + <property name="stock">gtk-cancel</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> + </widget> + <packing> + <property name="x">8</property> + <property name="y">120</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button8"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button8_clicked" last_modification_time="Wed, 12 Sep 2007 12:58:24 GMT"/> + + <child> + <widget class="GtkAlignment" id="alignment3"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">0</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkHBox" id="hbox2"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">2</property> + + <child> + <widget class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="stock">gtk-go-forward</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="label" translatable="yes"></property> + <property name="use_underline">True</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + </widget> + <packing> + <property name="x">8</property> + <property name="y">80</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button9"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">4</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button9_clicked" last_modification_time="Wed, 12 Sep 2007 12:11:28 GMT"/> + </widget> + <packing> + <property name="x">72</property> + <property name="y">80</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button13"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">7</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button13_clicked" last_modification_time="Wed, 12 Sep 2007 12:12:58 GMT"/> + </widget> + <packing> + <property name="x">72</property> + <property name="y">120</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button4"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button4_clicked" last_modification_time="Wed, 12 Sep 2007 12:58:16 GMT"/> + + <child> + <widget class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-add</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> + </widget> + <packing> + <property name="x">8</property> + <property name="y">40</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button5"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">1</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button5_clicked" last_modification_time="Wed, 12 Sep 2007 12:03:50 GMT"/> + </widget> + <packing> + <property name="x">72</property> + <property name="y">40</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button6"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">2</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button6_clicked" last_modification_time="Wed, 12 Sep 2007 12:09:02 GMT"/> + </widget> + <packing> + <property name="x">136</property> + <property name="y">40</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button10"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">5</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button10_clicked" last_modification_time="Wed, 12 Sep 2007 12:11:55 GMT"/> + </widget> + <packing> + <property name="x">136</property> + <property name="y">80</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button14"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">8</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button14_clicked" last_modification_time="Wed, 12 Sep 2007 12:13:24 GMT"/> + </widget> + <packing> + <property name="x">136</property> + <property name="y">120</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button18"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">0</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button18_clicked" last_modification_time="Wed, 12 Sep 2007 12:14:58 GMT"/> + </widget> + <packing> + <property name="x">136</property> + <property name="y">160</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button2"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">CE</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button2_clicked" last_modification_time="Wed, 12 Sep 2007 13:31:24 GMT"/> + </widget> + <packing> + <property name="x">136</property> + <property name="y">0</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button3"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">C</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button3_clicked" last_modification_time="Wed, 12 Sep 2007 13:31:31 GMT"/> + </widget> + <packing> + <property name="x">200</property> + <property name="y">0</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button7"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">3</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button7_clicked" last_modification_time="Wed, 12 Sep 2007 12:10:43 GMT"/> + </widget> + <packing> + <property name="x">200</property> + <property name="y">40</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button11"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">6</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button11_clicked" last_modification_time="Wed, 12 Sep 2007 12:12:26 GMT"/> + </widget> + <packing> + <property name="x">200</property> + <property name="y">80</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button15"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">9</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button15_clicked" last_modification_time="Wed, 12 Sep 2007 12:13:48 GMT"/> + </widget> + <packing> + <property name="x">200</property> + <property name="y">120</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button19"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">=</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button19_clicked" last_modification_time="Wed, 12 Sep 2007 12:22:35 GMT"/> + </widget> + <packing> + <property name="x">200</property> + <property name="y">160</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button1"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Back</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button1_clicked" last_modification_time="Wed, 12 Sep 2007 13:31:18 GMT"/> + </widget> + <packing> + <property name="x">72</property> + <property name="y">0</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button17"> + <property name="width_request">55</property> + <property name="height_request">30</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">.</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + </widget> + <packing> + <property name="x">72</property> + <property name="y">160</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + </widget> + </child> +</widget> + +</glade-interface> Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/calc_interface/other.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,103 @@ +bindtextdomain("params", "") + +class Window(SimpleGladeApp): + + def __init__(self, + path=_me.get_path('root') + '/Scripts/Python/GUI/calc_interface/other.glade', + root="window1", + domain="params", **kwargs): + SimpleGladeApp.__init__(self, path, root, domain, **kwargs) + + def new(self): + + self.get_widget("window1").set_title(_me.string('name_to_read')) + + red_icon = gtk.gdk.pixbuf_new_from_file(_me.get_icon('rc_red.png')) + self.get_widget("image2").set_from_pixbuf(red_icon) + + green_icon = gtk.gdk.pixbuf_new_from_file(_me.get_icon('rc_green.png')) + self.get_widget("image3").set_from_pixbuf(green_icon) + + blue_icon = gtk.gdk.pixbuf_new_from_file(_me.get_icon('rc_blue.png')) + self.get_widget("image4").set_from_pixbuf(blue_icon) + + yellow_icon = gtk.gdk.pixbuf_new_from_file(_me.get_icon('rc_yellow.png')) + self.get_widget("image5").set_from_pixbuf(yellow_icon) + + thread.start_new_thread(self.update, ()) + + def update(self): + _me.update_informations() + + #Affected events to numeric buttons# + ######################################## + def on_button5_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_1) + + def on_button6_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_2) + + def on_button7_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_3) + + def on_button9_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_4) + + def on_button10_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_5) + + def on_button11_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_6) + + def on_button13_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_7) + + def on_button14_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_8) + + def on_button15_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_9) + + def on_button18_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_0) + + #Affected events to operator Buttons# + ##################################### + + def on_button19_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_SHARP) + #thread.start_new_thread(_me._print_debug, ('K_SHARP', )) + + def on_button4_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_RED) + + def on_button8_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_GREEN) + + def on_button12_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_BLUE) + + def on_button16_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_YELLOW) + + #Affected events to controls Buttons# + ##################################### + def on_button1_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_RECEIVECALL) + + def on_button2_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_STARTVOIP) + + def on_button3_clicked(self, widget, *args): + tux.misc.simulate_remote_key(K_HANGUP) + + + #Affected events when one user ask to close the main window# + ################################################################ + def on_window1_destroy(self, widget, *args): + _me.exit_main_loop() + + def update_entry(self): + gtk.gdk.threads_enter() + self.get_widget("entry1").set_text(_me.get_param('formul')) + gtk.gdk.threads_leave() Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.glade =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.glade (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.glade 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,308 @@ +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> + +<glade-interface> + +<widget class="GtkWindow" id="window1"> + <property name="height_request">120</property> + <property name="visible">True</property> + <property name="title" translatable="yes">Parameters</property> + <property name="type">GTK_WINDOW_TOPLEVEL</property> + <property name="window_position">GTK_WIN_POS_NONE</property> + <property name="modal">False</property> + <property name="resizable">True</property> + <property name="destroy_with_parent">True</property> + <property name="icon_name"></property> + <property name="decorated">True</property> + <property name="skip_taskbar_hint">False</property> + <property name="skip_pager_hint">False</property> + <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> + <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> + <property name="focus_on_map">True</property> + <property name="urgency_hint">False</property> + + <child> + <widget class="GtkVBox" id="vbox1"> + <property name="height_request">120</property> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">0</property> + + <child> + <widget class="GtkFrame" id="frame4"> + <property name="border_width">5</property> + <property name="height_request">65</property> + <property name="visible">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_IN</property> + + <child> + <widget class="GtkAlignment" id="alignment7"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkFixed" id="fixed5"> + <property name="visible">True</property> + + <child> + <widget class="GtkButton" id="button_remote"> + <property name="width_request">62</property> + <property name="height_request">27</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="label" translatable="yes">Set</property> + <property name="use_underline">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_button_remote_clicked" last_modification_time="Sat, 22 Sep 2007 00:55:36 GMT"/> + </widget> + <packing> + <property name="x">256</property> + <property name="y">0</property> + </packing> + </child> + + <child> + <widget class="GtkLabel" id="label_remote"> + <property name="width_request">336</property> + <property name="height_request">16</property> + <property name="visible">True</property> + <property name="label" translatable="yes">Current : None</property> + <property name="use_underline">False</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">True</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="x">0</property> + <property name="y">0</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + + <child> + <widget class="GtkLabel" id="label11"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>Remote</b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkFixed" id="fixed3"> + <property name="visible">True</property> + + <child> + <widget class="GtkButton" id="button2"> + <property name="width_request">96</property> + <property name="height_request">32</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_accept_clicked" last_modification_time="Wed, 11 Jul 2007 19:53:32 GMT"/> + + <child> + <widget class="GtkAlignment" id="alignment4"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">0</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkHBox" id="hbox2"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">2</property> + + <child> + <widget class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-apply</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkLabel" id="label5"> + <property name="visible">True</property> + <property name="label" translatable="yes">Accept</property> + <property name="use_underline">True</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + </widget> + <packing> + <property name="x">256</property> + <property name="y">0</property> + </packing> + </child> + + <child> + <widget class="GtkButton" id="button3"> + <property name="width_request">96</property> + <property name="height_request">32</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="relief">GTK_RELIEF_NORMAL</property> + <property name="focus_on_click">True</property> + <signal name="clicked" handler="on_cancel_clicked" last_modification_time="Thu, 09 Aug 2007 13:50:03 GMT"/> + + <child> + <widget class="GtkAlignment" id="alignment5"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">0</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkHBox" id="hbox3"> + <property name="visible">True</property> + <property name="homogeneous">False</property> + <property name="spacing">2</property> + + <child> + <widget class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="stock">gtk-cancel</property> + <property name="icon_size">4</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + + <child> + <widget class="GtkLabel" id="label6"> + <property name="visible">True</property> + <property name="label" translatable="yes">Cancel</property> + <property name="use_underline">True</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + </widget> + <packing> + <property name="x">152</property> + <property name="y">0</property> + </packing> + </child> + </widget> + <packing> + <property name="padding">0</property> + <property name="expand">True</property> + <property name="fill">False</property> + </packing> + </child> + </widget> + </child> +</widget> + +</glade-interface> Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/other.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,91 @@ +bindtextdomain("params", "") + +class Window(SimpleGladeApp): + + def __init__(self, + path=_me.get_path('root') + '/Scripts/Python/GUI/conf/other.glade', + root="window1", + domain="params", **kwargs): + """ + Constructor + """ + SimpleGladeApp.__init__(self, path, root, domain, **kwargs) + + def new(self): + """ + On new window + """ + self.updates_commons() + self.updates_specifics() + + def updates_commons(self): + """ + Updates common widgets + """ + # Window title + txt = "%s : %s" % (_me.string('name_to_read'), + _me.string('gui_conf_window_title')) + self.get_widget("window1").set_title(txt) + + # About labels + txt = _me.string('gui_conf_about_title') + self.get_widget("label7").set_text(txt) + + txt = "%s : %s" % (_me.string('gui_conf_description_lb'), + _me.get_description()) + self.get_widget("label_description").set_text(txt) + + txt = "%s : %s" % (_me.string('gui_conf_author_lb'), + _me.get_author()) + self.get_widget("label_author").set_text(txt) + + txt = "%s : %s" % (_me.string('gui_conf_version_lb'), + _me.get_version()) + self.get_widget("label_version").set_text(txt) + + # Remote Frame + txt = _me.string('gui_conf_remote_title') + self.get_widget("label11").set_text(txt) + + txt = "%s : None" % _me.string('gui_conf_current_bind_lb') + self.get_widget("label_remote").set_text(txt) + + txt = _me.string('gui_conf_remote_set_bt') + self.get_widget("button_remote").set_label(txt) + + # Bottom buttons + txt = _me.string('gui_conf_cancel_bt') + self.get_widget("label6").set_text(txt) + + txt = _me.string('gui_conf_accept_bt') + self.get_widget("label5").set_text(txt) + + def updates_specifics(self): + """ + Updates specific widgets + """ + pass + + def on_button_remote_clicked(self, widget, *args): + """ + On button 'set' remote clicked + """ + def remote_set_caption(): + tux.sys.wait(0.1) + gadgets['Manager'].gui('remote').window.set_captions(gadgets[_me.get_name()]) + if gadgets.has_key('Manager'): + if not gadgets['Manager'].gui('remote').showed(): + gadgets['Manager'].gui('remote').show() + thread.start_new_thread(remote_set_caption, ()) + + def on_accept_clicked(self, widget, *args): + """ + On button 'accept' clicked + """ + self.get_widget("window1").destroy() + + def on_cancel_clicked(self, widget, *args): + """ + On button 'cancel' clicked + """ + self.get_widget("window1").destroy() Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/pixmaps/gadget.png =================================================================== (Binary files differ) Property changes on: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/conf/pixmaps/gadget.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.glade =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.glade (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.glade 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,101 @@ +<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> +<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> + +<glade-interface> + +<widget class="GtkWindow" id="window1"> + <property name="visible">True</property> + <property name="title" translatable="yes">Widget</property> + <property name="type">GTK_WINDOW_TOPLEVEL</property> + <property name="window_position">GTK_WIN_POS_NONE</property> + <property name="modal">False</property> + <property name="resizable">False</property> + <property name="destroy_with_parent">False</property> + <property name="decorated">True</property> + <property name="skip_taskbar_hint">False</property> + <property name="skip_pager_hint">False</property> + <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> + <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> + <property name="focus_on_map">True</property> + <property name="urgency_hint">False</property> + + <child> + <widget class="GtkFrame" id="frame1"> + <property name="visible">True</property> + <property name="label_xalign">0</property> + <property name="label_yalign">0.5</property> + <property name="shadow_type">GTK_SHADOW_IN</property> + + <child> + <widget class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xscale">1</property> + <property name="yscale">1</property> + <property name="top_padding">0</property> + <property name="bottom_padding">0</property> + <property name="left_padding">12</property> + <property name="right_padding">0</property> + + <child> + <widget class="GtkFixed" id="fixed1"> + <property name="visible">True</property> + + <child> + <widget class="GtkLabel" id="label2"> + <property name="width_request">192</property> + <property name="height_request">16</property> + <property name="visible">True</property> + <property name="label" translatable="yes">...</property> + <property name="use_underline">False</property> + <property name="use_markup">False</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">True</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="x">0</property> + <property name="y">8</property> + </packing> + </child> + </widget> + </child> + </widget> + </child> + + <child> + <widget class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b></b></property> + <property name="use_underline">False</property> + <property name="use_markup">True</property> + <property name="justify">GTK_JUSTIFY_LEFT</property> + <property name="wrap">False</property> + <property name="selectable">False</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> + <property name="width_chars">-1</property> + <property name="single_line_mode">False</property> + <property name="angle">0</property> + </widget> + <packing> + <property name="type">label_item</property> + </packing> + </child> + </widget> + </child> +</widget> + +</glade-interface> Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/GUI/widget/other.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,16 @@ +bindtextdomain("params", "") + +class Window(SimpleGladeApp): + + def __init__(self, + path=_me.get_path('root') + '/Scripts/Python/GUI/widget/other.glade', + root="window1", + domain="params", **kwargs): + SimpleGladeApp.__init__(self, path, root, domain, **kwargs) + + def new(self): + self.get_widget("window1").set_title(_me.string('name_to_read')) + thread.start_new_thread(self.update, ()) + + def update(self): + _me.update_informations() Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/init.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/init.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/init.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,4 @@ +def testFunct(): + tux.cmd.eyes_on(2) + +_me.insert_funct("open_eyes", testFunct) Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/main.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/main.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/main.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,188 @@ +import math + +global lexem_list, lexem_buf +global last_lexem_to_speak + +SND_CHECK = 13 +SND_BEEP = 11 + +lexem_list = [] +lexem_buf = '' + +DOT = '.' +PLUS = '+' +MINUS = '-' +TIMES = '*' +DIVIDE = '/' +LPAREN = '(' +RPAREN = ')' + +K_DOT = K_STAR +K_PLUS = K_RED +K_MINUS = K_GREEN +K_TIMES = K_BLUE +K_DIVIDE = K_YELLOW +K_EQUAL = K_SHARP +K_LPAR = K_LEFT +K_RPAR = K_RIGHT +K_EONUM = K_OK +K_BACK = K_RECEIVECALL +K_CE = K_STARTVOIP +K_C = K_HANGUP + +def to_digit(key_pressed): + if key_pressed < 10 : + return(str(key_pressed)) + elif key_pressed == K_DOT : + return (DOT) + else: + return('') + +def to_legal_lexem(key_pressed): + if key_pressed == K_LPAR : + return(LPAREN) + elif key_pressed == K_RPAR : + return(RPAREN) + elif key_pressed == K_PLUS : + return(PLUS) + elif key_pressed == K_MINUS : + return(MINUS) + elif key_pressed == K_TIMES : + return(TIMES) + elif key_pressed == K_DIVIDE : + return(DIVIDE) +# elif key_pressed == K_DOT: +# return(DOT) + else : + return('') + +def speak_the_lexem(lexem): + global last_lexem_to_speak + + if lexem == TIMES: + last_lexem_to_speak = _me.string("VC_time") + elif lexem == DIVIDE: + last_lexem_to_speak = _me.string("VC_div") + elif lexem == PLUS: + last_lexem_to_speak = _me.string("VC_plus") + elif lexem == MINUS: + last_lexem_to_speak = _me.string("VC_minus") + else: + last_lexem_to_speak = lexem + + current_lexem_to_speak = last_lexem_to_speak + tux.tts.stop() + tux.sys.wait(0.5) + if current_lexem_to_speak == last_lexem_to_speak: + _me.speak_free(current_lexem_to_speak) + +def update_formul(): + global lexem_list + global lexem_buf + + formul = '' + for lexem in lexem_list: formul = formul + lexem + formul = formul + lexem_buf + _me.set_param('formul', formul) + _me.gui('calc_interface').window.update_entry() + + +def speak_evaluation(): + global lexem_list + + if len(lexem_list) == 0: return + formula = '' + disp_formula = '' + for lexem in lexem_list: + disp_formula = disp_formula + lexem + if lexem == TIMES or lexem == DIVIDE or lexem == PLUS or lexem == MINUS: + pass + else: + fract, integer = math.modf(float(lexem)) + if (fract == 0): + lexem = lexem + ".0" + formula = formula + lexem + + try: + value = eval(formula) + fract, integer = math.modf(value) + if fract == 0.0: + value = int(value) + _me.speak_free(_me.string("VC_result_is") % str(value)) + _me.set_param('formul', '%s = %s' % (disp_formula, str(value))) + _me.gui('calc_interface').window.update_entry() + except: + _me.speak_free(_me.string("VC_syntax_error")) + _me.set_param('formul', _me.string("VC_syntax_error")) + _me.gui('calc_interface').window.update_entry() + +def play_flash(sound): + tux.cmd.sound_play(sound) + tux.sys.wait(0.2) + +def reduce_lexems(lexem_buf, key_pressed): + global lexem_list + + speak_lexem = False + speak_buffer = False + if to_legal_lexem(key_pressed) != '': + if len(lexem_buf) != 0: + lexem_list.append(lexem_buf) + lexem_buf = '' + play_flash(SND_BEEP) + lexem_list.append(to_legal_lexem(key_pressed)) + speak_lexem = True + elif to_digit(key_pressed) != '': + lexem_buf = lexem_buf + to_digit(key_pressed) + play_flash(SND_BEEP) + speak_buffer = True + elif key_pressed == K_EQUAL: + if len(lexem_buf) != 0: + play_flash(SND_CHECK) + lexem_list.append(lexem_buf) + lexem_buf = '' + return (lexem_buf, speak_lexem, speak_buffer) + +def parse_stream(key_pressed): + global lexem_buf, lexem_list + + lexem_buf, speak_lexem, speak_buffer = reduce_lexems(lexem_buf,key_pressed) + if key_pressed == K_EQUAL: + lexem_buf = '' + speak_evaluation() + lexem_list = [] + return + if key_pressed == K_BACK: + play_flash(SND_BEEP) + if lexem_buf != '': + lexem_buf = lexem_buf[:-1] + if lexem_buf != '': + speak_buffer = True + if key_pressed == K_C: + play_flash(SND_BEEP) + if lexem_buf != '': + lexem_buf = '' + else: + if len(lexem_list) > 0: + lexem_list.pop() + if key_pressed == K_CE: + play_flash(SND_BEEP) + lexem_buf = '' + lexem_list = [] + update_formul() + if speak_lexem: + speak_the_lexem(lexem_list[len(lexem_list)-1]) + if speak_buffer: + speak_the_lexem(lexem_buf) + +def on_standby(): + _me.gui('calc_interface').hide_from_main() + _me.exit_main_loop() + + +tux.event.on_remote = parse_stream + +_me.gui('calc_interface').show_from_main() +tux.event.on_remote_bt[K_STANDBY] = on_standby +_me.run_main_loop() + Added: software/gadgets/calculator/trunk/Calculator/Scripts/Python/notify.pyp =================================================================== --- software/gadgets/calculator/trunk/Calculator/Scripts/Python/notify.pyp (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Scripts/Python/notify.pyp 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,15 @@ +def notify_checker(): + + # if _me.get_param("switcher") == True: + # _me.speak(_me.string("name_to_read")) + # _me.set_param("switcher", False) + # return False + + # else: + # _me.set_param("switcher", True) + # return True + pass + +def notify_actuator(): + # _me.speak_notification(_me.string("NulString")) + pass Added: software/gadgets/calculator/trunk/Calculator/Strings/fr_ALL.xml =================================================================== --- software/gadgets/calculator/trunk/Calculator/Strings/fr_ALL.xml (rev 0) +++ software/gadgets/calculator/trunk/Calculator/Strings/fr_ALL.xml 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,39 @@ +<?xml version='1.0' encoding='UTF-8'?> +<strings> + <VC_back type='str'>arrière</VC_back> + <VC_c type='str'>effacer</VC_c> + <VC_ce type='str'>effacer tout</VC_ce> + <VC_div type='str'>divisé par</VC_div> + <VC_minus type='str'>moin</VC_minus> + <VC_plus type='str'>plusse</VC_plus> + <VC_result_is type='str'>La réponse est, %s</VC_result_is> + <VC_syntax_error type='str'>Erreur de syntaxe dans votre formule</VC_syntax_error> + <VC_time type='str'>fois</VC_time> + <gui_conf_about_title type='str'>A propos</gui_conf_about_title> + <gui_conf_accept_bt type='str'>Valider</gui_conf_accept_bt> + <gui_conf_author_lb type='str'>Kysoh</gui_conf_author_lb> + <gui_conf_cancel_bt type='str'>Annuler</gui_conf_cancel_bt> + <gui_conf_current_bind_lb type='str'>Assignation</gui_conf_current_bind_lb> + <gui_conf_delay_lb type='str'>Délai (sec)</gui_conf_delay_lb> + <gui_conf_description_lb type='str'>Description</gui_conf_description_lb> + <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> + <gui_conf_remote_title type='str'>Télécommande</gui_conf_remote_title> + <gui_conf_update_title type='str'>Mise à jour</gui_conf_update_title> + <gui_conf_version_lb type='str'>Version</gui_conf_version_lb> + <gui_conf_window_title type='str'>Paramètres</gui_conf_window_title> + <help_text type='str'>- Ce gadget résoud de simples opérations + mathématiques. + +- Il annonce vocalement les nombres + entrés, l'opérateur et le résultat. + +Pour entrer vos données, vous pouvez +soit utiliser la télécommande, soit votre +pavé numérique, ou encore les deux +simultanément. + Touches spécifiques: + - flèche gauche: parenthèse ouverte + - flèche droite: prentèse fermée</help_text> + <name_to_read type='str'>Calculatrice</name_to_read> + <speaker_name type='str'>Bruno8k</speaker_name> +</strings> Added: software/gadgets/calculator/trunk/Calculator/about.xml =================================================================== --- software/gadgets/calculator/trunk/Calculator/about.xml (rev 0) +++ software/gadgets/calculator/trunk/Calculator/about.xml 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='UTF-8'?> +<about> + <gadget_author type='str'>Kysoh</gadget_author> + <gadget_description type='str'>Voice calculator gadget for Tux Droid.</gadget_description> + <gadget_name type='str'>Calculator</gadget_name> + <gadget_version type='str'>0.0.3</gadget_version> +</about> Added: software/gadgets/calculator/trunk/Calculator/parts.xml =================================================================== --- software/gadgets/calculator/trunk/Calculator/parts.xml (rev 0) +++ software/gadgets/calculator/trunk/Calculator/parts.xml 2008-02-09 17:52:32 UTC (rev 905) @@ -0,0 +1,6 @@ +<?xml version='1.0' ... [truncated message content] |