tux-droid-svn Mailing List for Tux Droid CE (Page 36)
Status: Beta
Brought to you by:
ks156
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
(32) |
Mar
(108) |
Apr
(71) |
May
(38) |
Jun
(128) |
Jul
(1) |
Aug
(14) |
Sep
(77) |
Oct
(104) |
Nov
(90) |
Dec
(71) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(81) |
Feb
(18) |
Mar
(40) |
Apr
(102) |
May
(151) |
Jun
(74) |
Jul
(151) |
Aug
(257) |
Sep
(447) |
Oct
(379) |
Nov
(404) |
Dec
(430) |
| 2009 |
Jan
(173) |
Feb
(236) |
Mar
(519) |
Apr
(300) |
May
(112) |
Jun
(232) |
Jul
(314) |
Aug
(58) |
Sep
(203) |
Oct
(293) |
Nov
(26) |
Dec
(109) |
| 2010 |
Jan
(19) |
Feb
(25) |
Mar
(33) |
Apr
(1) |
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: jerome <c2m...@c2...> - 2009-07-24 10:05:03
|
Author: jerome
Date: 2009-07-24 12:04:43 +0200 (Fri, 24 Jul 2009)
New Revision: 5155
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Improved the way to referesh tray icons.
* Added a global function to retrieve server command results.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 21:26:20 UTC (rev 5154)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-24 10:04:43 UTC (rev 5155)
@@ -18,16 +18,32 @@
function getUserLanguage() : String;
function toggleMute() : boolean;
function stopServer() : boolean;
-
+ procedure initKnowedVars();
procedure parseStates(aString : string; var values : TStringList);
+ function getResult(request : string) : boolean;
var
XmlScanner1 : TXmlScanner;
- mute_value : boolean;
+ knowed_mute : boolean;
+ knowed_radio : boolean;
+ knowed_dongle : boolean;
+ knowed_server : boolean;
+ knowed_activity : boolean;
+
implementation
+{#### Initialization of knowed states ####}
+procedure initKnowedVars();
+begin
+ knowed_mute := false;
+ knowed_radio := false;
+ knowed_dongle := false;
+ knowed_server := false;
+ knowed_activity := false;
+end;
+
//Return true if the tuxdroidserver is started, false if not.
function isTuxDroidServerStarted() : boolean;
var
@@ -90,10 +106,16 @@
end;
except
On e : Exception do
- result := '';
+ begin
+ result := '';
+ output.Free;
+ end;
end;
finally
+ begin
+ output.Free;
Free;
+ end;
end;
end;
@@ -235,9 +257,7 @@
temp : TStringList;
sound_on : boolean;
request_result : string;
- beginPos, endPos : Integer;
begin
- temp := TStringList.Create;
TuxUtils.getStates(temp);
sound_on := TuxUtils.isSoundOn(temp);
@@ -255,39 +275,44 @@
//proceeding to mute.
request_result := TuxUtils.DownloadHTTP(command_unmute);
end;
+ result := TuxUtils.getResult(request_result);
+end;
- try
- //Getting the request result <result>.
- beginPos := Pos('<result>', request_result) + Length('<result>');
- endPos := Pos('</result>', request_result);
- if Copy(request_result, beginPos, endPos - beginPos) = 'Success' then
- result := true
- else
- result := false;
- except
- on e : Exception do
- result := false;
- end;
-end;
-
{#### This function stops the tux droid server. ####}
function stopServer() : boolean;
const
command_stop = 'http://127.0.0.1:270/0/server/stop?';
var
request_result : string;
- beginPos, endPos : Integer;
begin
request_result := TuxUtils.DownloadHTTP(command_stop);
+ result := TuxUtils.getResult(request_result);
+end;
+
+{#### Gets the current user language. ####}
+function getUserLanguage() : String;
+const
+ command_language = '';
+begin
+ {TODO}
+end;
+
+
+
+{#### Return the result of a function .####}
+function getResult(request : string) : boolean;
+var
+ beginPos, endPos : Integer;
+begin
try
//Getting the request result <result>.
- beginPos := Pos('<result>', request_result) + Length('<result>');
- endPos := Pos('</result>', request_result);
+ beginPos := Pos('<result>', request) + Length('<result>');
+ endPos := Pos('</result>', request);
- if Copy(request_result, beginPos, endPos - beginPos) = 'Success' then
+ if Copy(request, beginPos, endPos - beginPos) = 'Success' then
result := true
else
result := false;
@@ -297,13 +322,5 @@
end;
end;
-{#### Gets the current user language. ####}
-function getUserLanguage() : String;
-const
- command_language = '';
-begin
- {TODO}
-end;
-
end.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 21:26:20 UTC (rev 5154)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-24 10:04:43 UTC (rev 5155)
@@ -72,6 +72,7 @@
url : String;
Tray : TNotifyIconData;
AppIcon : TIcon;
+ started : boolean;
implementation
@@ -87,6 +88,8 @@
begin
url := 'http://127.0.0.1:270/user/';
+ started := false;
+
//Tray icon initialization.
Tray.cbSize := SizeOf(Tray);
Tray.wnd := Handle;
@@ -105,6 +108,9 @@
//Adding tray icon to the system tray.
Shell_NotifyIcon(Nim_ADD, @Tray);
+ //states initialization
+ TuxUtils.initKnowedVars();
+ //Starting status pooling.
EmbeddedWB1.Go(url);
end;
@@ -310,29 +316,38 @@
connection := server and dongle and radio;
- //Changing tray icon if server isn't started or no radio detected.
- if connection and sound and ( not activity ) then
+ //Changing tray icon 'connection' if server isn't started or no radio detected and
+ //State has changed since last knowledge register.
+ if connection and sound and ( not activity ) and ( ( TuxUtils.knowed_mute
+ and ( not TuxUtils.knowed_activity )) <> ( sound and (not activity) )) then
begin
ImageList1.GetIcon(0, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
- else if connection and ( not sound ) and ( not activity ) then
+ //Changing tray icon 'mute' only if last registered values <> new sound and
+ //activity values.
+ else if connection and ( not sound ) and ( not activity ) and
+ ( ( ( not sound ) and ( not activity ) ) <> ( ( not TuxUtils.knowed_mute )
+ and ( not TuxUtils.knowed_activity ) ) )then
begin
ImageList1.GetIcon(4, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
- else if connection and activity and sound then
+ else if connection and activity and sound and ( ( sound and activity ) <>
+ ( TuxUtils.knowed_mute and TuxUtils.knowed_activity ) ) then
begin
ImageList1.GetIcon(3, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
- else
+ //Changing icon only if last state <> new state.
+ else if connection <> ( TuxUtils.knowed_server and TuxUtils.knowed_radio and TuxUtils.knowed_dongle)
+ or ( not started ) then
begin
ImageList1.GetIcon(1, AppIcon);
Tray.hIcon := AppIcon.Handle;
@@ -345,7 +360,17 @@
else
//Updating tick from popup menu ( sound off ).
Mute1.ImageIndex := 5;
-
+
+ //Registering new values.
+ TuxUtils.knowed_mute := sound;
+ TuxUtils.knowed_radio := radio;
+ TuxUtils.knowed_dongle := dongle;
+ TuxUtils.knowed_server := server;
+ TuxUtils.knowed_activity := activity;
+
+ if not started then
+ started := true;
+
Application.ProcessMessages;
end;
|
|
From: jerome <c2m...@c2...> - 2009-07-23 21:26:34
|
Author: jerome
Date: 2009-07-23 23:26:20 +0200 (Thu, 23 Jul 2009)
New Revision: 5154
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Changed the way to stop the server quitting TuxBox 2.0
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 20:54:42 UTC (rev 5153)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 21:26:20 UTC (rev 5154)
@@ -15,8 +15,9 @@
function isSoundOn(states : TStringList) : boolean;
function isRadioConnected(states : TStringList) : boolean;
function isOnActivity(states : TStringList) : boolean;
-
+ function getUserLanguage() : String;
function toggleMute() : boolean;
+ function stopServer() : boolean;
procedure parseStates(aString : string; var values : TStringList);
@@ -271,4 +272,38 @@
end;
+{#### This function stops the tux droid server. ####}
+function stopServer() : boolean;
+const
+ command_stop = 'http://127.0.0.1:270/0/server/stop?';
+var
+ request_result : string;
+ beginPos, endPos : Integer;
+begin
+ request_result := TuxUtils.DownloadHTTP(command_stop);
+
+ try
+ //Getting the request result <result>.
+ beginPos := Pos('<result>', request_result) + Length('<result>');
+ endPos := Pos('</result>', request_result);
+
+ if Copy(request_result, beginPos, endPos - beginPos) = 'Success' then
+ result := true
+ else
+ result := false;
+ except
+ on e : Exception do
+ result := false;
+ end;
+end;
+
+{#### Gets the current user language. ####}
+function getUserLanguage() : String;
+const
+ command_language = '';
+begin
+ {TODO}
+end;
+
+
end.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 20:54:42 UTC (rev 5153)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 21:26:20 UTC (rev 5154)
@@ -169,14 +169,19 @@
//Tray menu 'quit' click.
procedure TForm1.Quit1Click(Sender: TObject);
-const
- command = 'tuxhttpserver_stop';
begin
- Shell_NotifyIcon(Nim_DELETE,@tray);
- AppIcon.Free;
- EmbeddedWB1.Free;
- ShellExecute(0, 'open', PChar(command), nil, nil, SW_HIDE) ;
- Application.Terminate;
+ if TuxUtils.stopServer() then
+ begin
+ Shell_NotifyIcon(Nim_DELETE,@tray);
+ AppIcon.Free;
+ EmbeddedWB1.Free;
+ Application.Terminate;
+ end
+ else if TuxUtils.isTuxDroidServerStarted() then
+ begin
+ dialogs.ShowMessage('Can not stop the Tux Droid server' + slinebreak +
+ 'Please, go to start menu to manually stop it.');
+ end;
end;
|
|
From: jerome <c2m...@c2...> - 2009-07-23 20:55:00
|
Author: jerome
Date: 2009-07-23 22:54:42 +0200 (Thu, 23 Jul 2009)
New Revision: 5153
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Updating graphic tick in sound toggle case.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 20:47:53 UTC (rev 5152)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 20:54:42 UTC (rev 5153)
@@ -312,24 +312,35 @@
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
+
else if connection and ( not sound ) and ( not activity ) then
begin
ImageList1.GetIcon(4, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
+
else if connection and activity and sound then
begin
ImageList1.GetIcon(3, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
+
else
begin
ImageList1.GetIcon(1, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end;
+
+ if sound then
+ //Updating tick from popup menu ( sound on ).
+ Mute1.ImageIndex := -1
+ else
+ //Updating tick from popup menu ( sound off ).
+ Mute1.ImageIndex := 5;
+
Application.ProcessMessages;
end;
|
|
From: jerome <c2m...@c2...> - 2009-07-23 20:48:01
|
Author: jerome
Date: 2009-07-23 22:47:53 +0200 (Thu, 23 Jul 2009)
New Revision: 5152
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
Log:
* Fixed a bug sending mute / unmute command , they were inverted ( where was my mind ... ).
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 20:43:44 UTC (rev 5151)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 20:47:53 UTC (rev 5152)
@@ -247,12 +247,12 @@
if(sound_on) then
begin
//proceeding to unmute;
- request_result := TuxUtils.DownloadHTTP(command_unmute);
+ request_result := TuxUtils.DownloadHTTP(command_mute);
end
else
begin
//proceeding to mute.
- request_result := TuxUtils.DownloadHTTP(command_mute);
+ request_result := TuxUtils.DownloadHTTP(command_unmute);
end;
try
|
|
From: jerome <c2m...@c2...> - 2009-07-23 20:43:57
|
Author: jerome
Date: 2009-07-23 22:43:44 +0200 (Thu, 23 Jul 2009)
New Revision: 5151
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Fixed a bug with unmute function.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 20:35:56 UTC (rev 5150)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 20:43:44 UTC (rev 5151)
@@ -4,7 +4,7 @@
uses
ShellAPI, Registry, SysUtils, Variants, Classes, TlHelp32, LibXmlParser,
- LibXmlComps, TXmlThread, ComCtrls, StdCtrls, OleCtrls, Controls, Windows,
+ LibXmlComps, ComCtrls, StdCtrls, OleCtrls, Controls, Windows,
EmbeddedWB, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
IdHTTP, dialogs;
@@ -252,22 +252,22 @@
else
begin
//proceeding to mute.
- request_result := TuxUtils.DownloadHTTP(command_on);
+ request_result := TuxUtils.DownloadHTTP(command_mute);
end;
try
//Getting the request result <result>.
- beginPos := Pos('<result>', aString) + Length('<result>');
- endPos := Pos('</result>', aString);
+ beginPos := Pos('<result>', request_result) + Length('<result>');
+ endPos := Pos('</result>', request_result);
- if Copy(aString, beginPos, endPos - beginPos) = 'success' then
+ if Copy(request_result, beginPos, endPos - beginPos) = 'Success' then
result := true
else
result := false;
except
on e : Exception do
result := false;
-
+ end;
end;
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 20:35:56 UTC (rev 5150)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 20:43:44 UTC (rev 5151)
@@ -146,15 +146,22 @@
//Tray icon 'mute' click.
procedure TForm1.Mute1Click(Sender: TObject);
+var
+ toggled : boolean;
begin
- {TODO : Update this code when tuxdroid server can sent mute states.}
- if Mute1.ImageIndex <> 5 then
- begin
- Mute1.ImageIndex := 5;
- end
- else
- begin
- Mute1.ImageIndex := -1;
+ //toggle mute
+ toggled := TuxUtils.toggleMute();
+
+ if toggled then
+ begin
+ if Mute1.ImageIndex <> 5 then
+ begin
+ Mute1.ImageIndex := 5;
+ end
+ else
+ begin
+ Mute1.ImageIndex := -1;
+ end;
end;
end;
|
|
From: jerome <c2m...@c2...> - 2009-07-23 20:36:13
|
Author: jerome
Date: 2009-07-23 22:35:56 +0200 (Thu, 23 Jul 2009)
New Revision: 5150
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
Log:
* Removed unused class reference.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-23 18:39:09 UTC (rev 5149)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-23 20:35:56 UTC (rev 5150)
@@ -3,7 +3,6 @@
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
- TXmlThread in 'TXmlThread.pas',
TuxUtils in 'TuxUtils.pas';
{$R *.res}
|
|
From: jerome <c2m...@c2...> - 2009-07-23 18:39:20
|
Author: jerome
Date: 2009-07-23 20:39:09 +0200 (Thu, 23 Jul 2009)
New Revision: 5149
Removed:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.pas
Log:
* Removed TXmlThread object that is not in use now.
Deleted: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.dcu
===================================================================
(Binary files differ)
Deleted: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.pas 2009-07-23 18:38:12 UTC (rev 5148)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TXmlThread.pas 2009-07-23 18:39:09 UTC (rev 5149)
@@ -1,102 +0,0 @@
-{* This file is part of "Tux Droid Browser".
- * Copyright 2009, kysoh
- * Author : Conan Jerome.
- * eMail : jer...@ky...
- * Site : http://www.kysoh.com/
- *
- * "Tux Droid Browser" 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.1 of
- * the License, or (at your option) any later version.
- *
- * "Tux Droid Browser" 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 "Tux Droid Browser"; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *}
-
-unit TXmlThread;
-
-interface
-
-uses
- Classes, LibXmlParser, LibXmlComps, SysUtils, Windows, Dialogs;
-
-type
- TXmlThreadObject = class(TThread)
-
- public
- constructor create(var scanner : TXmlScanner);
- destructor destroy; override;
- function getResult() : boolean;
-
- private
- { Darations priv }
- procedure XmlScanner1Content(Sender: TObject; Content: String);
-
- protected
- procedure Execute; override;
- end;
-
-var
- xmlScanner : TXmlScanner;
- boolValue : boolean;
-
-implementation
-
-{ TXmlThread }
-
-constructor TXmlThreadObject.create(var scanner : TXmlScanner);
-begin
- inherited create(true);
- xmlScanner := scanner;
- xmlScanner.OnContent := self.XmlScanner1Content;
- boolValue := false;
-end;
-
-
-destructor TXmlThreadObject.destroy;
-begin
- inherited;
- //xmlScanner.Free;
-end;
-
-procedure TXmlThreadObject.Execute;
-begin
- xmlScanner.Execute;
-end;
-
-
-//Xml scanner event.
-procedure TXmlThreadObject.XmlScanner1Content(Sender: TObject; Content: String);
-var
- parser : TXmlParser;
- value : String;
-begin
- parser := TXmlScanner(sender).XmlParser;
-
- if parser.CurName = 'value' then
- begin
- value := LowerCase(parser.CurContent);
- if value = 'true' then
- boolValue := true
- else
- boolValue := false;
- end;
-
-end;
-
-
-//Return the thread Result.
-function TXmlThreadObject.getResult() : boolean;
-begin
- Result := boolValue;
-end;
-
-end.
-
\ No newline at end of file
|
|
From: jerome <c2m...@c2...> - 2009-07-23 18:38:20
|
Author: jerome
Date: 2009-07-23 20:38:12 +0200 (Thu, 23 Jul 2009)
New Revision: 5148
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
Log:
* Added the complete mute / unmute toggle function.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 18:16:01 UTC (rev 5147)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 18:38:12 UTC (rev 5148)
@@ -9,22 +9,21 @@
IdHTTP, dialogs;
function DownloadHTTP(const AUrl : string): string;
-
- procedure parseStates(aString : string; var values : TStringList);
-
function getStates(var values : TStringList): boolean;
-
function isTuxDroidServerStarted() : boolean;
function isDongleConnected(states : TStringList) : boolean;
function isSoundOn(states : TStringList) : boolean;
function isRadioConnected(states : TStringList) : boolean;
function isOnActivity(states : TStringList) : boolean;
+ function toggleMute() : boolean;
+ procedure parseStates(aString : string; var values : TStringList);
+
var
XmlScanner1 : TXmlScanner;
+ mute_value : boolean;
-
implementation
@@ -226,4 +225,50 @@
end;
+{#### This function makes a mute toggle ####}
+function toggleMute() : boolean ;
+const
+ command_mute = 'http://127.0.0.1:270/0/robot_content_interactions/mute?';
+ command_unmute = 'http://127.0.0.1:270/0/robot_content_interactions/unmute?';
+var
+ temp : TStringList;
+ sound_on : boolean;
+ request_result : string;
+ beginPos, endPos : Integer;
+begin
+ temp := TStringList.Create;
+ TuxUtils.getStates(temp);
+
+ sound_on := TuxUtils.isSoundOn(temp);
+ temp.Free;
+
+ request_result := '';
+
+ if(sound_on) then
+ begin
+ //proceeding to unmute;
+ request_result := TuxUtils.DownloadHTTP(command_unmute);
+ end
+ else
+ begin
+ //proceeding to mute.
+ request_result := TuxUtils.DownloadHTTP(command_on);
+ end;
+
+ try
+ //Getting the request result <result>.
+ beginPos := Pos('<result>', aString) + Length('<result>');
+ endPos := Pos('</result>', aString);
+
+ if Copy(aString, beginPos, endPos - beginPos) = 'success' then
+ result := true
+ else
+ result := false;
+ except
+ on e : Exception do
+ result := false;
+
+end;
+
+
end.
|
|
From: jerome <c2m...@c2...> - 2009-07-23 18:16:13
|
Author: jerome
Date: 2009-07-23 20:16:01 +0200 (Thu, 23 Jul 2009)
New Revision: 5147
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Removed a debug message.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 18:15:18 UTC (rev 5146)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 18:16:01 UTC (rev 5147)
@@ -286,7 +286,6 @@
except
on e : Exception do
begin
- showmessage(e.Message);
dongle := false;
sound := true;
radio := false;
|
|
From: jerome <c2m...@c2...> - 2009-07-23 18:15:29
|
Author: jerome
Date: 2009-07-23 20:15:18 +0200 (Thu, 23 Jul 2009)
New Revision: 5146
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Implemented 'activity' dynamic tray icon changes ( based on alerts activity ).
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 12:54:43 UTC (rev 5145)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 18:15:18 UTC (rev 5146)
@@ -45,8 +45,8 @@
while Integer(ContinueLoop) <> 0 do
begin
if ((UpperCase(ExtractFileName(FProcessEntry32.szExeFile)) =
- UpperCase('PythonForTuxDroid.exe')) or (UpperCase(FProcessEntry32.szExeFile) =
- UpperCase('PythonForTuxDroid.exe')))
+ UpperCase('pythonForTuxdroid.exe')) or (UpperCase(FProcessEntry32.szExeFile) =
+ UpperCase('pythonForTuxdroid.exe')))
then begin
Result := True;
end;
@@ -125,7 +125,7 @@
values.add(Copy(aString, beginPos, endPos - beginPos));
except
on e : Exception do
- values.add('off');
+ values.add('off');
end;
try
@@ -139,9 +139,12 @@
end;
try
- //Searching for activity state ( <gadgets> )
- //beginPos := Pos('<alerts>', aString) + Length('<alerts>');
- values.add('off');
+ //Searching for activity state ( <alert> )
+ beginPos := Pos('<alert>', aString);
+ if beginPos > 0 then
+ values.Add('on')
+ else
+ values.Add('off');
except
on e : Exception do
values.Add('off');
@@ -176,11 +179,11 @@
begin
if states <> nil then
if states[0] = 'on' then
- result := true
+ result := true
else
- result := false
+ result := false
else
- result := false;
+ result := false;
end;
@@ -213,9 +216,11 @@
{#### Return true if a gadget is in activity ####}
function isOnActivity(states : TStringList) : boolean;
begin
- //3
if states <> nil then
- result := false
+ if states[3] = 'on' then
+ result := true
+ else
+ result := false
else
result := false;
end;
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 12:54:43 UTC (rev 5145)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 18:15:18 UTC (rev 5146)
@@ -1,8 +1,9 @@
object Form1: TForm1
- Left = 267
- Top = 168
- Width = 1024
- Height = 768
+ Left = 306
+ Top = 153
+ Width = 963
+ Height = 653
+ AutoSize = True
Caption = 'TuxBox 2.0'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
@@ -48,6 +49,7 @@
0000F0030000C001000080000000800000000000000000000000000000000000
000000000000000100000001000080030000C0030000E0070000F01F0000}
OldCreateOrder = False
+ Position = poScreenCenter
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
PixelsPerInch = 96
@@ -55,9 +57,8 @@
object EmbeddedWB1: TEmbeddedWB
Left = 0
Top = 0
- Width = 1016
- Height = 715
- Align = alClient
+ Width = 955
+ Height = 619
TabOrder = 0
Silent = False
RegisterAsBrowser = True
@@ -87,8 +88,8 @@
end
object StatusBar1: TStatusBar
Left = 0
- Top = 715
- Width = 1016
+ Top = 600
+ Width = 955
Height = 19
Panels = <>
SimplePanel = False
@@ -530,7 +531,6 @@
Top = 8
end
object ConnectionChecker: TTimer
- Interval = 2000
OnTimer = ConnectionCheckerTimer
Left = 104
Top = 8
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 12:54:43 UTC (rev 5145)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 18:15:18 UTC (rev 5146)
@@ -44,8 +44,8 @@
Quit1: TMenuItem;
ImageList1: TImageList;
EwbControl1: TEwbControl;
+ ConnectionChecker: TTimer;
StatusBar1: TStatusBar;
- ConnectionChecker: TTimer;
procedure FormCreate(Sender: TObject);
procedure ShowHide1Click(Sender: TObject);
@@ -273,7 +273,7 @@
{#### Check server and dongle state every 3000 ms ####}
procedure TForm1.ConnectionCheckerTimer(Sender: TObject);
var
- server, dongle , sound, radio : boolean;
+ server, dongle , sound, radio, activity, connection : boolean;
temp : TStringList;
begin
@@ -282,28 +282,42 @@
dongle := TuxUtils.isDongleConnected(temp);
sound := TuxUtils.isSoundOn(temp);
radio := TuxUtils.isRadioConnected(temp);
+ activity := TuxUtils.isOnActivity(temp);
except
- dongle := false;
- sound := true;
- radio := false;
+ on e : Exception do
+ begin
+ showmessage(e.Message);
+ dongle := false;
+ sound := true;
+ radio := false;
+ activity := false;
+ end;
end;
temp.Free;
server := TuxUtils.isTuxDroidServerStarted();
+ connection := server and dongle and radio;
+
//Changing tray icon if server isn't started or no radio detected.
- if ( server and dongle and radio and sound ) then
+ if connection and sound and ( not activity ) then
begin
ImageList1.GetIcon(0, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
- else if (not sound) and (server and dongle and radio) then
+ else if connection and ( not sound ) and ( not activity ) then
begin
ImageList1.GetIcon(4, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
+ else if connection and activity and sound then
+ begin
+ ImageList1.GetIcon(3, AppIcon);
+ Tray.hIcon := AppIcon.Handle;
+ Shell_NotifyIcon(Nim_Modify, @tray);
+ end
else
begin
ImageList1.GetIcon(1, AppIcon);
|
|
From: jerome <c2m...@c2...> - 2009-07-23 12:54:55
|
Author: jerome
Date: 2009-07-23 14:54:43 +0200 (Thu, 23 Jul 2009)
New Revision: 5145
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Added all dynamic icons except 'Activity'.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 12:30:05 UTC (rev 5144)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 12:54:43 UTC (rev 5145)
@@ -175,7 +175,7 @@
function isDongleConnected(states : TStringList) : boolean;
begin
if states <> nil then
- if states[1] = 'on' then
+ if states[0] = 'on' then
result := true
else
result := false
@@ -188,7 +188,7 @@
function isSoundOn(states : TStringList) : boolean;
begin
if states <> nil then
- if states[3] = 'on' then
+ if states[2] = 'on' then
result := true
else
result := false
@@ -201,7 +201,7 @@
function isRadioConnected(states : TStringList) : boolean;
begin
if states <> nil then
- if states[2] = 'on' then
+ if states[1] = 'on' then
result := true
else
result := false
@@ -213,6 +213,7 @@
{#### Return true if a gadget is in activity ####}
function isOnActivity(states : TStringList) : boolean;
begin
+ //3
if states <> nil then
result := false
else
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 12:30:05 UTC (rev 5144)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 12:54:43 UTC (rev 5145)
@@ -273,27 +273,37 @@
{#### Check server and dongle state every 3000 ms ####}
procedure TForm1.ConnectionCheckerTimer(Sender: TObject);
var
- server, dongle : boolean;
+ server, dongle , sound, radio : boolean;
temp : TStringList;
-
+
begin
try
TuxUtils.getStates(temp);
dongle := TuxUtils.isDongleConnected(temp);
+ sound := TuxUtils.isSoundOn(temp);
+ radio := TuxUtils.isRadioConnected(temp);
except
dongle := false;
+ sound := true;
+ radio := false;
end;
temp.Free;
server := TuxUtils.isTuxDroidServerStarted();
//Changing tray icon if server isn't started or no radio detected.
- if ( server and dongle ) then
+ if ( server and dongle and radio and sound ) then
begin
ImageList1.GetIcon(0, AppIcon);
Tray.hIcon := AppIcon.Handle;
Shell_NotifyIcon(Nim_Modify, @tray);
end
+ else if (not sound) and (server and dongle and radio) then
+ begin
+ ImageList1.GetIcon(4, AppIcon);
+ Tray.hIcon := AppIcon.Handle;
+ Shell_NotifyIcon(Nim_Modify, @tray);
+ end
else
begin
ImageList1.GetIcon(1, AppIcon);
|
|
From: remi <c2m...@c2...> - 2009-07-23 12:46:18
|
Author: remi
Date: 2009-07-23 14:13:00 +0200 (Thu, 23 Jul 2009)
New Revision: 5143
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl
Log:
* Added page title "TuxBox 2.0"
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl 2009-07-23 10:33:58 UTC (rev 5142)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl 2009-07-23 12:13:00 UTC (rev 5143)
@@ -6,6 +6,7 @@
<xsl:template match="/">
<html>
<head>
+ <title>TuxBox 2.0</title>
<LINK href="/data/web_interface/user_01/css/menu.css" rel="stylesheet" type="text/css"/>
<script src="/data/web_interface/user_01/js/common.js" type="text/javascript"/>
<script language="javascript">
|
|
From: jerome <c2m...@c2...> - 2009-07-23 12:30:15
|
Author: jerome
Date: 2009-07-23 14:30:05 +0200 (Thu, 23 Jul 2009)
New Revision: 5144
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Improved status requests.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg 2009-07-23 12:30:05 UTC (rev 5144)
@@ -14,8 +14,8 @@
-$N+
-$O+
-$P+
--$Q-
--$R-
+-$Q+
+-$R+
-$S-
-$T-
-$U-
@@ -33,3 +33,7 @@
-K$00400000
-LE"c:\program files\borland\delphi6\Projects\Bpl"
-LN"c:\program files\borland\delphi6\Projects\Bpl"
+-U"c:\program files\borland\delphi6\Lib\Debug"
+-O"c:\program files\borland\delphi6\Lib\Debug"
+-I"c:\program files\borland\delphi6\Lib\Debug"
+-R"c:\program files\borland\delphi6\Lib\Debug"
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof 2009-07-23 12:30:05 UTC (rev 5144)
@@ -17,8 +17,8 @@
N=1
O=1
P=1
-Q=0
-R=0
+Q=1
+R=1
S=0
T=0
U=0
@@ -45,7 +45,7 @@
UnitOutputDir=
PackageDLLOutputDir=
PackageDCPOutputDir=
-SearchPath=
+SearchPath=$(DELPHI)\Lib\Debug
Packages=vcl;rtl;vclx;VclSmp;vclshlctrls;Python_d6;PNG_D6;PngComponentsD6;PngComponentsD6D;acntD6;Package4;AdvCircularProgressPkgD6;EmbeddedWebBrowser_D6
Conditionals=
DebugSourceDirs=
@@ -70,3 +70,11 @@
DLL=0
Locale=1033
CodePage=1252
+[Version Info Keys]
+FileVersion=1.0.0.0
+[HistoryLists\hlUnitAliases]
+Count=1
+Item0=WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
+[HistoryLists\hlSearchPath]
+Count=1
+Item0=$(DELPHI)\Lib\Debug
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-23 12:30:05 UTC (rev 5144)
@@ -11,6 +11,7 @@
begin
Application.Initialize;
Application.ShowMainForm:=False;
+ Application.Title := 'TuxBox 2.0';
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 12:30:05 UTC (rev 5144)
@@ -9,19 +9,20 @@
IdHTTP, dialogs;
function DownloadHTTP(const AUrl : string): string;
- function parseStates(aString : string): TStringList;
- function getStates(): TStringList;
+ procedure parseStates(aString : string; var values : TStringList);
+
+ function getStates(var values : TStringList): boolean;
+
function isTuxDroidServerStarted() : boolean;
- function isDongleConnected() : boolean;
- function isSoundOn() : boolean;
- function isRadioConnected() : boolean;
- function isOnActivity() : boolean;
+ function isDongleConnected(states : TStringList) : boolean;
+ function isSoundOn(states : TStringList) : boolean;
+ function isRadioConnected(states : TStringList) : boolean;
+ function isOnActivity(states : TStringList) : boolean;
var
XmlScanner1 : TXmlScanner;
- GlobalState : TStringList;
implementation
@@ -99,88 +100,121 @@
{####### This function parse a string to retrieve global informations ######}
-function parseStates(aString : string) : TStringList;
+procedure parseStates(aString : string; var values : TStringList);
var
beginPos, endPos : Integer;
begin
- //Searching for dongle state ( <dongleState> )
- beginPos := Pos('<dongleState>', aString) + Length('<dongleState>');
- endPos := Pos('</dongleState>', aString);
- result[1] := Copy(aString, beginPos, endPos - beginPos);
+ values := TStringList.Create;
- //Searching for radio state ( <radioState> )
- beginPos := Pos('<radioState>', aString) + Length('<radioState>');
- endPos := Pos('</radioState>', aString);
- result[2] := Copy(aString, beginPos, endPos - beginPos);
+ try
+ //Searching for dongle state ( <dongleState> )
+ beginPos := Pos('<dongleState>', aString) + Length('<dongleState>');
+ endPos := Pos('</dongleState>', aString);
+ values.add(Copy(aString, beginPos, endPos - beginPos));
+ except
+ on e: Exception do
+ values.add('off');
+ end;
- //Searching for sound state ( <soundState> )
- beginPos := Pos('<soundState>', aString) + Length('<soundState>');
- endPos := Pos('</soundState>', aString);
- result[3] := Copy(aString, beginPos, endPos - beginPos);
- //Searching for activity state ( <gadgets> )
- //beginPos := Pos('<alerts>', aString) + Length('<alerts>');
- result[4] := 'false';
+ try
+ //Searching for radio state ( <radioState> )
+ beginPos := Pos('<radioState>', aString) + Length('<radioState>');
+ endPos := Pos('</radioState>', aString);
+ values.add(Copy(aString, beginPos, endPos - beginPos));
+ except
+ on e : Exception do
+ values.add('off');
+ end;
+
+ try
+ //Searching for sound state ( <soundState> )
+ beginPos := Pos('<soundState>', aString) + Length('<soundState>');
+ endPos := Pos('</soundState>', aString);
+ values.add(Copy(aString, beginPos, endPos - beginPos));
+ except
+ on e : Exception do
+ values.Add('off');
+ end;
+
+ try
+ //Searching for activity state ( <gadgets> )
+ //beginPos := Pos('<alerts>', aString) + Length('<alerts>');
+ values.add('off');
+ except
+ on e : Exception do
+ values.Add('off');
+ end;
end;
{#### Return parsed states ####}
-function getStates() : TStringList;
+function getStates(var values : TStringList) : boolean;
var
res : string;
begin
+
res := TuxUtils.DownloadHTTP('http://127.0.0.1:270/0/wi_user_01/get_states?');
if res <> '' then
begin
- GlobalState := TuxUtils.parseStates(res);
- result := GlobalState;
+ TuxUtils.parseStates(res, values);
+ result := true;
end
else
begin
- GlobalState := nil;
- result := nil;
+ values := nil;
+ result := false;
end;
end;
{#### Return the dongle state ####}
-function isDongleConnected() : boolean;
+function isDongleConnected(states : TStringList) : boolean;
begin
- if Assigned(GlobalState) then
- result := StrToBool(GlobalState[1])
+ if states <> nil then
+ if states[1] = 'on' then
+ result := true
+ else
+ result := false
else
result := false;
end;
{#### Return the sound state ####}
-function isSoundOn() : boolean;
+function isSoundOn(states : TStringList) : boolean;
begin
- if Assigned(GlobalState) then
- result := StrToBool(GlobalState[3])
+ if states <> nil then
+ if states[3] = 'on' then
+ result := true
+ else
+ result := false
else
result := false;
end;
{#### Return the radio connection state ####}
-function isRadioConnected() : boolean;
+function isRadioConnected(states : TStringList) : boolean;
begin
- if Assigned(GlobalState) then
- result := StrToBool(GlobalState[2])
+ if states <> nil then
+ if states[2] = 'on' then
+ result := true
+ else
+ result := false
else
result := false;
end;
{#### Return true if a gadget is in activity ####}
-function isOnActivity() : boolean;
+function isOnActivity(states : TStringList) : boolean;
begin
- if Assigned(GlobalState) then
- result := StrToBool(GlobalState[4])
+ if states <> nil then
+ result := false
else
result := false;
end;
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 12:30:05 UTC (rev 5144)
@@ -59,6 +59,7 @@
Height = 715
Align = alClient
TabOrder = 0
+ Silent = False
RegisterAsBrowser = True
RegisterAsDropTarget = False
OnDocumentComplete = EmbeddedWB1DocumentComplete
@@ -529,7 +530,6 @@
Top = 8
end
object ConnectionChecker: TTimer
- Enabled = False
Interval = 2000
OnTimer = ConnectionCheckerTimer
Left = 104
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 12:13:00 UTC (rev 5143)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 12:30:05 UTC (rev 5144)
@@ -72,8 +72,6 @@
url : String;
Tray : TNotifyIconData;
AppIcon : TIcon;
- serverStarted : boolean;
- radioState : boolean;
implementation
@@ -88,8 +86,7 @@
procedure TForm1.FormCreate(Sender: TObject);
begin
url := 'http://127.0.0.1:270/user/';
- radioState := false;
-
+
//Tray icon initialization.
Tray.cbSize := SizeOf(Tray);
Tray.wnd := Handle;
@@ -110,8 +107,6 @@
EmbeddedWB1.Go(url);
- ConnectionChecker.Enabled := True;
-
end;
@@ -279,12 +274,20 @@
procedure TForm1.ConnectionCheckerTimer(Sender: TObject);
var
server, dongle : boolean;
+ temp : TStringList;
+
begin
- TuxUtils.getStates();
+ try
+ TuxUtils.getStates(temp);
+ dongle := TuxUtils.isDongleConnected(temp);
+ except
+ dongle := false;
+ end;
+
+ temp.Free;
server := TuxUtils.isTuxDroidServerStarted();
- dongle := TuxUtils.isDongleConnected();
-
- //Changing tray icon if server isn't started or no radio detected.
+
+ //Changing tray icon if server isn't started or no radio detected.
if ( server and dongle ) then
begin
ImageList1.GetIcon(0, AppIcon);
@@ -298,7 +301,7 @@
Shell_NotifyIcon(Nim_Modify, @tray);
end;
Application.ProcessMessages;
- self.ConnectionChecker.Enabled := true;
+
end;
end.
|
|
From: remi <c2m...@c2...> - 2009-07-23 10:34:10
|
Author: remi
Date: 2009-07-23 12:33:58 +0200 (Thu, 23 Jul 2009)
New Revision: 5142
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py
software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
Log:
* Updated some binds : "http://127.0.0.1:270/" -> "user page" and "http://127.0.0.1:270/debug/" -> "Main server page"
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-07-23 09:53:48 UTC (rev 5141)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-07-23 10:33:58 UTC (rev 5142)
@@ -87,17 +87,17 @@
'title' : 'Tux Droid Server V %s' % serverVersion,
'section' : 'Index',
'items' : {
- 'Resources' : 'menu/resources?resource_name=index',
- 'Logs' : 'menu/logs?log_name=index',
- 'Clients' : 'menu/clients?',
+ 'Resources' : '/menu/resources?resource_name=index',
+ 'Logs' : '/menu/logs?log_name=index',
+ 'Clients' : '/menu/clients?',
}
}
return contentStruct
# Register the service into the resource
resourceMenu.addService(TDSServiceMenuIndex)
-# Bind the root url to this service
-resourcesManager.addBinding("ROOT", "menu", "index")
+# Bind the debug index url to this service
+resourcesManager.addBinding("debug", "menu", "index")
# ==============================================================================
# Declaration of the service "resources".
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-07-23 09:53:48 UTC (rev 5141)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-07-23 10:33:58 UTC (rev 5142)
@@ -146,6 +146,9 @@
"skin=user_01&language=en&menu=livewithtux")
resourcesManager.addBinding("user/index", "wi_user_01", "index",
"skin=user_01&language=en&menu=livewithtux")
+# Bind the root url to this service
+resourcesManager.addBinding("ROOT", "wi_user_01", "index",
+ "skin=user_01&language=en&menu=livewithtux")
# ------------------------------------------------------------------------------
# Declaration of the service "live_with_tux".
|
|
From: jerome <c2m...@c2...> - 2009-07-23 09:54:03
|
Author: jerome
Date: 2009-07-23 11:53:48 +0200 (Thu, 23 Jul 2009)
New Revision: 5141
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Retrieving all needed status except 'activity'.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof 2009-07-23 09:45:58 UTC (rev 5140)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof 2009-07-23 09:53:48 UTC (rev 5141)
@@ -46,7 +46,7 @@
PackageDLLOutputDir=
PackageDCPOutputDir=
SearchPath=
-Packages=
+Packages=vcl;rtl;vclx;VclSmp;vclshlctrls;Python_d6;PNG_D6;PngComponentsD6;PngComponentsD6D;acntD6;Package4;AdvCircularProgressPkgD6;EmbeddedWebBrowser_D6
Conditionals=
DebugSourceDirs=
UsePackages=0
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 09:45:58 UTC (rev 5140)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-23 09:53:48 UTC (rev 5141)
@@ -5,14 +5,25 @@
uses
ShellAPI, Registry, SysUtils, Variants, Classes, TlHelp32, LibXmlParser,
LibXmlComps, TXmlThread, ComCtrls, StdCtrls, OleCtrls, Controls, Windows,
- EmbeddedWB;
+ EmbeddedWB, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
+ IdHTTP, dialogs;
+ function DownloadHTTP(const AUrl : string): string;
+ function parseStates(aString : string): TStringList;
+ function getStates(): TStringList;
+
function isTuxDroidServerStarted() : boolean;
- function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
+ function isDongleConnected() : boolean;
+ function isSoundOn() : boolean;
+ function isRadioConnected() : boolean;
+ function isOnActivity() : boolean;
+
var
- XmlScanner1: TXmlScanner;
+ XmlScanner1 : TXmlScanner;
+ GlobalState : TStringList;
+
implementation
@@ -48,51 +59,131 @@
end;
+{### This function download a file from internet and store it onto a string ###}
+function DownloadHTTP(const AUrl : string) : string;
+var
+ output : TMemoryStream;
+ c : char;
+begin
-//Return the dongle connection state.
-function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
+ output := TMemoryStream.Create;
+ result := '';
+
+ with TIdHTTP.Create(nil) do
+ try
+ try
+ Get(AUrl, output);
+
+ if output <> nil then
+ begin
+ output.Position := 0;
+ repeat
+ output.Read(c, 1);
+ output.Seek(1, output.Position);
+
+ if c <> #0 then
+ result := result + c;
+
+ until output.Position = output.Size;
+ output.Free;
+ end;
+ except
+ On e : Exception do
+ result := '';
+ end;
+ finally
+ Free;
+ end;
+
+end;
+
+
+{####### This function parse a string to retrieve global informations ######}
+function parseStates(aString : string) : TStringList;
var
- targetDir : String;
- downloaded : boolean;
- xmlFile : TFileName;
- xmlThread : TXmlThreadObject;
+ beginPos, endPos : Integer;
+begin
-const
- command = 'http://127.0.0.1:270/0/status/request_one?status_name=radio_state';
- fileName = 'radio.xml';
+ //Searching for dongle state ( <dongleState> )
+ beginPos := Pos('<dongleState>', aString) + Length('<dongleState>');
+ endPos := Pos('</dongleState>', aString);
+ result[1] := Copy(aString, beginPos, endPos - beginPos);
+ //Searching for radio state ( <radioState> )
+ beginPos := Pos('<radioState>', aString) + Length('<radioState>');
+ endPos := Pos('</radioState>', aString);
+ result[2] := Copy(aString, beginPos, endPos - beginPos);
+
+ //Searching for sound state ( <soundState> )
+ beginPos := Pos('<soundState>', aString) + Length('<soundState>');
+ endPos := Pos('</soundState>', aString);
+ result[3] := Copy(aString, beginPos, endPos - beginPos);
+
+ //Searching for activity state ( <gadgets> )
+ //beginPos := Pos('<alerts>', aString) + Length('<alerts>');
+ result[4] := 'false';
+end;
+
+
+{#### Return parsed states ####}
+function getStates() : TStringList;
+var
+ res : string;
begin
+ res := TuxUtils.DownloadHTTP('http://127.0.0.1:270/0/wi_user_01/get_states?');
- targetDir := ExtractFilePath(ApplicationExeName);
- downloaded := false;
- boolValue := false;
+ if res <> '' then
+ begin
+ GlobalState := TuxUtils.parseStates(res);
+ result := GlobalState;
+ end
+ else
+ begin
+ GlobalState := nil;
+ result := nil;
+ end;
- //Checking if file exists and remove it.
- if FileExists(targetDir + '\' + fileName) then
- begin
- DeleteFile(fileName);
- end;
+end;
- Try
- downloaded := EmbeddedWB1.DownloadFile(command, targetDir + '\' + fileName);
- Except
- result := false;
- end;
- //Getting result.
- if downloaded then
- begin
- xmlFile := targetDir + '\' + fileName;
+{#### Return the dongle state ####}
+function isDongleConnected() : boolean;
+begin
+ if Assigned(GlobalState) then
+ result := StrToBool(GlobalState[1])
+ else
+ result := false;
+end;
- xmlScanner1 := TXmlScanner.Create(nil);
- XmlScanner1.LoadFromFile(xmlFile);
- xmlThread := TXmlThreadObject.create(XmlScanner1);
- xmlThread.Resume;
- boolValue := xmlThread.getResult();
- end;
- DeleteFile(PChar(xmlFile));
- Result := boolValue;
+{#### Return the sound state ####}
+function isSoundOn() : boolean;
+begin
+ if Assigned(GlobalState) then
+ result := StrToBool(GlobalState[3])
+ else
+ result := false;
end;
+
+{#### Return the radio connection state ####}
+function isRadioConnected() : boolean;
+begin
+ if Assigned(GlobalState) then
+ result := StrToBool(GlobalState[2])
+ else
+ result := false;
+end;
+
+
+{#### Return true if a gadget is in activity ####}
+function isOnActivity() : boolean;
+begin
+ if Assigned(GlobalState) then
+ result := StrToBool(GlobalState[4])
+ else
+ result := false;
+end;
+
+
end.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 09:45:58 UTC (rev 5140)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-23 09:53:48 UTC (rev 5141)
@@ -117,10 +117,10 @@
end
end
object ImageList1: TImageList
- Left = 72
+ Left = 40
Top = 8
Bitmap = {
- 494C010106000900040010001000FFFFFFFFFF00FFFFFFFFFFFFFFFF424D3600
+ 494C010106000900040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
0000000000003600000028000000400000003000000001002000000000000030
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
@@ -251,280 +251,288 @@
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000002D1307FF2D1307FF2D1307FF180B05FF0F252BFF0940
- 4FFF404040FF0000000000000000000000000000000000000000000000000000
+ 000000000000202020FF000000FF000000FF202020FF00000000000000000000
+ 0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000FEFEFE0000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000592811FF70422CFF997868FFAD9387FFAD9387FF070F11FF1ABFEDFF1CCC
- FDFF17A6CEFF13292FFF00000000000000000000000000000000000000000000
+ 0000101010FF06404FFF11B3DDFF11B3DDFF0A667FFF000000FF505050FF0000
+ 0000000000000000000000000000000000000000000000000000000000000000
000000000000CDCDCD00B6B6B600F3F3F3000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000987868FF6535
- 1DFFA3724AFFD8B48DFFD4AD82FFE0C3A4FF989089FF0E667FFF1CCCFDFF1CCC
- FDFF1CCCFDFF19B3DDFF111D1FFF000000000000000000000000000000000000
+ 0000000000000000000000000000000000000000000000000000000000006060
+ 60FF05333FFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF0FA6CEFF021A20FF3030
+ 30FF000000000000000000000000000000000000000000000000000000000000
0000000000005E5E5E001E1E1E00C8C8C8000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000000000000000000000000000A38577FF683315FFD3B7
- 9DFFDCBC99FFC18749FFC18749FFC18749FF1A1E19FF1ABFEDFF1CCCFDFF1CCC
- FDFF1CCCFDFF1CCCFDFF1599BEFF606060FF000000000000000000000000DBDB
+ 0000000000000000000000000000000000000000000000000000000000000000
+ 00FF0E99BEFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF12BFEDFF0426
+ 2FFF303030FF000000000000000000000000000000000000000000000000DBDB
DB0085858500191919000000000057575700B5B5B50000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000000000000000000000000000005B270EFFAE753EFFE0C3
- A4FFFBF8F4FFE4CBAFFFC58F54FF79542EFF0E667FFF1CCCFDFF1CCCFDFF1CCC
- FDFF1CCCFDFF1CCCFDFF1CCCFDFF05262FFF0000000000000000000000008585
+ 000000000000000000000000000000000000000000000000000000000000021A
+ 20FF13CCFDFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF0FA6CEFF13CCFDFF12BF
+ EDFF010D10FF606060FF00000000000000000000000000000000000000008585
85000000000000000000000000000000000039393900DFDFDF00000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000000000000000000000987868FF814B24FFC58F54FFFBF8
- F4FFFFFFFFFFFFFFFFFFE0C3A4FF48331BFF17A6CEFF1CCCFDFF1CCCFDFF1CCC
- FDFF1CCCFDFF1CCCFDFF1CCCFDFF0C596FFF00000000D3D3D300707070002525
+ 0000000000000000000000000000000000000000000000000000202020FF0B73
+ 8EFF08596FFF0FA6CEFF13CCFDFF13CCFDFF074D5FFF05333FFF13CCFDFF13CC
+ FDFF0FA6CEFF000000FF000000000000000000000000D3D3D300707070002525
2500000000000000000000000000000000000A0A0A004C4C4C00AEAEAE000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000000000000000000065341DFFAE753EFFD1A577FFFFFF
- FFFFFFFFFFFFFFFFFFFFDCBC99FF3C2A17FF19B3DDFF1CCCFDFF1CCCFDFF1CCC
- FDFF1CCCFDFF17A6CEFF138CAEFF0C2228FF00000000ACACAC00020202000000
+ 0000000000000000000000000000000000000000000000000000010D10FF12BF
+ EDFF11B3DDFF05333FFF0D8CAEFF08596FFF000000FF05333FFF13CCFDFF13CC
+ FDFF13CCFDFF0A667FFF202020FF0000000000000000ACACAC00020202000000
000000000000141414001B1B1B000707070000000000000000004C4C4C00DFDF
DF00000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000005B270EFFC18749FFC99660FFFFFF
- FFFFF7F0E8FFD8B48DFFC18749FF956D42FF132930FF09404FFF303030FF1329
- 30FF09404FFF302212FF472C16FF241007FF00000000AFAFAF00090909000000
+ 00000000000000000000000000000000000000000000202020FF0A667FFF13CC
+ FDFF0A667FFF000000FF000000FF000000FF000000FF05333FFF13CCFDFF13CC
+ FDFF13CCFDFF12BFEDFF010D10FF0000000000000000AFAFAF00090909000000
00000000000080808000B7B7B7002626260000000000000000000A0A0A003939
3900B5B5B5000000000000000000FEFEFE000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000005B270EFFC99660FFF7F0E8FFE8D2
- BBFFD1A577FFC18749FFC18749FFE0C3A4FFEFEFEFFFEFEFEFFFFFFFFFFFFFFF
- FFFFEFEFEFFFC58F54FF8E572CFF2D1307FF00000000ACACAC00060606000000
+ 00000000000000000000000000000000000000000000010D10FF12BFEDFF13CC
+ FDFF0A667FFF000000FF000000FF000000FF000000FF05333FFF13CCFDFF13CC
+ FDFF13CCFDFF13CCFDFF08596FFF505050FF00000000ACACAC00060606000000
000042424200D3D3D300000000007A7A7A001E1E1E0000000000000000000000
00005C5C5C00CFCFCF00F5F5F500000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000005B270EFFD6B695FFF7F0E8FFF0E1
- D2FFC18749FFC18749FFC18749FFD4AD82FFFFFFFFFFF7F0E8FFFBF8F4FFFFFF
- FFFFFFFFFFFFF3E9DDFF814B24FF2D1307FF00000000A3A3A300000000004E4E
+ 000000000000000000000000000000000000505050FF074D5FFF13CCFDFF13CC
+ FDFF0A667FFF000000FF000000FF000000FF000000FF05333FFF13CCFDFF13CC
+ FDFF13CCFDFF13CCFDFF0E99BEFF101010FF00000000A3A3A300000000004E4E
4E00E7E7E7000000000000000000FDFDFD00A8A8A8000C0C0C00000000000000
0000000000002B2B2B00BBBBBB00000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000000000000000000000794F3BFFB29077FFFFFFFFFFFBF8
- F4FFC58F54FFC18749FFC18749FFDCBC99FFFBF8F4FFF3E9DDFFFFFFFFFFFFFF
- FFFFFBF8F4FFFFFFFFFF65351DFF0000000000000000C8C8C80065656500AAAA
+ 000000000000000000000000000000000000101010FF0D8CAEFF13CCFDFF13CC
+ FDFF0A667FFF000000FF000000FF000000FF000000FF010D10FF0FA6CEFF13CC
+ FDFF13CCFDFF13CCFDFF13CCFDFF000000FF00000000C8C8C80065656500AAAA
AA0000000000000000000000000000000000EDEDED007C7C7C002C2C2C000000
00000000000000000000ABABAB00000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000000000000000000000AC9286FF764830FFFBF8F4FFFFFF
- FFFFE8D2BBFFCD9E6BFFC18749FFC58F54FFECDAC6FFFFFFFFFFFFFFFFFFFFFF
- FFFFFFFFFFFFC2AEA5FF51222AFF0000000000000000FEFEFE00FBFBFB00FDFD
+ 000000000000000000000000000000000000000000FF12BFEDFF13CCFDFF13CC
+ FDFF11B3DDFF0E99BEFF0E99BEFF08596FFF000000FF05333FFF08596FFF0FA6
+ CEFF13CCFDFF13CCFDFF13CCFDFF000000FF00000000FEFEFE00FBFBFB00FDFD
FD00000000000000000000000000000000000000000000000000999999000101
01000000000010101000B1B1B100000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000000000000000000000000000000004F220CFFA98C7BFFFFFF
- FFFFFFFFFFFFF7F0E8FFCD9E6BFFC18749FFDCBC99FFE8D2BBFFFFFFFFFFFFFF
- FFFFDCCFC6FF65351DFF00000000000000000000000000000000000000000000
+ 000000000000000000000000000000000000000000FF13CCFDFF13CCFDFF13CC
+ FDFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF08596FFF05333FFF13CCFDFF0859
+ 6FFF0FA6CEFF13CCFDFF0E99BEFF000000FF0000000000000000000000000000
0000000000000000000000000000FEFEFE000000000000000000E4E4E4008E8E
8E001D1D1D0000000000A6A6A600000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000552410FFA98C
- 7BFFECDAC6FFFBF8F4FFFBF8F4FFD4AD82FFC18749FFC58F54FFE0C3A4FFBD93
- 6BFF612D12FF381808FF00000000000000000000000000000000000000000000
+ 000000000000000000000000000000000000000000FF0E99BEFF13CCFDFF13CC
+ FDFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF13CCFDFF0FA6CEFF13CCFDFF0C80
+ 9EFF08596FFF0A667FFF010D10FF606060FF0000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00007373730014141400ACACAC00000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000000000004F22
- 0CFF6E3919FFAE896CFFD2AE8AFFC18749FFC18749FFAE753EFF814B24FF5B27
- 0EFFA38577FF0000000000000000000000000000000000000000000000000000
+ 000000000000000000000000000000000000707070FF021A20FF0E99BEFF11B3
+ DDFF0A667FFF010D10FF000000FF074D5FFF0FA6CEFF0D8CAEFF05333FFF1010
+ 10FF404040FF404040FF7F7F7FFF000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000D5D5D500B2B2B200E4E4E400000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
+ 00000000000000000000000000000000000000000000505050FF000000FF0000
+ 00FF202020FF0000000000000000404040FF000000FF000000FF505050FF0000
0000000000000000000000000000000000000000000000000000000000000000
- 0000AC9286FF794F3BFF5B270EFF5B270EFF5B270EFF65341DFF987868FF0000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
+ 000000000000404040FF000000FF000000FF505050FF00000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000101010FF000000FF000000FF606060FF000000000000
- 0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000010101FF000000FF000000FF242424FF000000000000
- 0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000000000FF000000FF000000FF0E0E0EFF000000000000
- 0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000FF000000FF000000FF050505FF000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000010D10FF0C809EFF13CCFDFF0E99BEFF05333FFF101010FF0000
+ 00000000000000000000101010FF000000FF000000FF606060FF000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000000D00FF008100FF00CF00FF009B00FF003400FF010101FF0000
+ 00000000000000000000101010FF000000FF000000FF606060FF000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 000000000000001010FF009F9FFF00FFFFFF00BFBFFF004040FF000000FF0000
+ 0000303030FF09395BFF188FE3FF188FE3FF0D4D79FF020A0FFF707070FF0000
0000000000000000000000000000000000000000000000000000000000000000
000000000000010010FF0C009EFF1300FDFF0E00BEFF05003FFF000000FF0000
0000000000000000000000000000000000000000000000000000000000000000
- 0000202020FF0B738EFF13CCFDFF13CCFDFF13CCFDFF0FC2CEFF0A667FFF0000
+ 000000000000001010FF009F9FFF00FFFFFF00BFBFFF004040FF101010FF0000
+ 0000000000000000000000000000000000000000000000000000000000000000
+ 000000000000010D10FF0C809EFF13CCFDFF0E99BEFF05333FFF101010FF0000
+ 0000000000000000000000000000000000000000000000000000000000007F7F
+ 7FFF06283DFF189DF3FF189DF3FF189DF3FF189DF3FF158AD5FF041E2EFF6060
+ 60FF000000000000000000000000000000000000000000000000000000000000
+ 0000000000FF0B008EFF1300FDFF1300FDFF1300FDFF1300FDFF0A007FFF0000
00FF000000000000000000000000000000000000000000000000000000000000
- 0000040404FF007400FF00CF00FF00CF00FF00CF00FF00CF00FF006800FF0000
+ 0000202020FF008F8FFF00FFFFFF02F1F1FF07C5C6FF02F1F1FF008080FF0000
00FF000000000000000000000000000000000000000000000000000000000000
- 0000010101FF008F8FFF00FFFFFF02F1F1FF07C5C6FF02F1F1FF008080FF0000
- 00FF000000000000000000000000000000000000000000000000000000000000
- 0000000000FF0B008EFF1300FDFF1300FDFF1300FDFF1300FDFF0A007FFF0000
- 00FF000000000000000000000000000000000000000000000000000000000000
- 0000021A20FF13CCFDFF13CCFDFF13CCFDFF11C5DDFF009500FF0CB79EFF0C80
+ 0000202020FF0B738EFF13CCFDFF13CCFDFF13CCFDFF0FC2CEFF0A667FFF0000
+ 00FF000000000000000000000000000000000000000000000000000000001010
+ 10FF1284C6FF16A3F4FF16A3F4FF16A3F4FF16A3F4FF16A3F4FF1599E4FF041F
+ 2EFF606060FF0000000000000000000000000000000000000000000000000000
+ 0000020020FF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF0C00
9EFF000000FF0000000000000000000000000000000000000000000000000000
- 0000001A00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF0081
- 00FF000000FF0000000000000000000000000000000000000000000000000000
0000002020FF00FFFFFF00FFFFFF116E70FF1B171AFF116E70FF00FFFFFF009F
9FFF000000FF0000000000000000000000000000000000000000000000000000
- 0000020020FF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF0C00
- 9EFF000000FF0000000000000000000000000000000000000000000000004040
+ 0000021A20FF13CCFDFF13CCFDFF13CCFDFF11C5DDFF009500FF0CB79EFF0C80
+ 9EFF000000FF0000000000000000000000000000000000000000000000000420
+ 2EFF15A8F4FF15A8F4FF15A8F4FF15A8F4FF15A8F4FF15A8F4FF15A8F4FF139D
+ E5FF04202EFF7F7F7FFF00000000000000000000000000000000000000000101
+ 01FF0A007FFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF08006FFF000000FF00000000000000000000000000000000000000004040
+ 40FF008080FF00FFFFFF00FFFFFF116E70FF1B171AFF116E70FF00FFFFFF00FF
+ FFFF007070FF101010FF00000000000000000000000000000000000000004040
40FF0A667FFF13CCFDFF13CCFDFF13CCFDFF0EBEBEFF009500FF07AA5FFF13CC
- FDFF08596FFF101010FF00000000000000000000000000000000000000001010
- 10FF006800FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF005B00FF010101FF00000000000000000000000000000000000000000404
- 04FF008080FF00FFFFFF00FFFFFF116E70FF1B171AFF116E70FF00FFFFFF00FF
- FFFF007070FF000000FF00000000000000000000000000000000000000000101
- 01FF0A007FFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF08006FFF000000FF00000000000000000000000000000000000000000000
+ FDFF08596FFF101010FF00000000000000000000000000000000404040FF0C6C
+ 99FF13ADF5FF13ADF5FF13ADF5FF13ADF5FF13ADF5FF13ADF5FF13ADF5FF13AD
+ F5FF0F8DC7FF000000FF00000000000000000000000000000000000000000000
+ 00FF1100DDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF1300FDFF05003FFF050505FF000000000000000000000000000000000000
+ 00FF00DFDFFF00FFFFFF00FFFFFF00FFFFFF07C5C6FF00FFFFFF00FFFFFF00FF
+ FFFF00FFFFFF004040FF606060FF000000000000000000000000000000000000
00FF11B3DDFF13CCFDFF0AB17FFF0FC2CEFF0DBBAEFF009500FF049F2FFF13CC
- FDFF13CCFDFF05333FFF606060FF000000000000000000000000000000000000
- 00FF00B500FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF003400FF242424FF000000000000000000000000000000000000
- 00FF00DFDFFF00FFFFFF00FFFFFF00FFFFFF07C5C6FF00FFFFFF00FFFFFF00FF
- FFFF00FFFFFF004040FF0E0E0EFF000000000000000000000000000000000000
- 00FF1100DDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF05003FFF050505FF000000000000000000000000404040FF0546
+ FDFF13CCFDFF05333FFF606060FF00000000000000000000000002161FFF12B2
+ F6FF12B2F6FF12B2F6FF12B2F6FF12B2F6FF12B2F6FF12B2F6FF12B2F6FF12B2
+ F6FF12B2F6FF09597BFF404040FF000000000000000000000000010101FF0700
+ 5FFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF1300FDFF1100DDFF000000FF000000000000000000000000404040FF0060
+ 60FF00FFFFFF00FFFFFF00FFFFFF03E2E2FF0E8B8DFF03E2E2FF00FFFFFF00FF
+ FFFF00FFFFFF00DFDFFF000000FF000000000000000000000000404040FF0546
3FFF0EBEBEFF0EBEBEFF009500FF07AA5FFF0AB17FFF009500FF009500FF0FC2
- CEFF0EBEBEFF0CA59EFF000000FF000000000000000000000000101010FF004E
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00B500FF000000FF000000000000000000000000040404FF0060
- 60FF00FFFFFF00FFFFFF00FFFFFF03E2E2FF0E8B8DFF03E2E2FF00FFFFFF00FF
- FFFF00FFFFFF00DFDFFF000000FF000000000000000000000000010101FF0700
- 5FFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1100DDFF000000FF000000000000000000000000000000FF0082
+ CEFF0EBEBEFF0CA59EFF000000FF0000000000000000404040FF0A739AFF10B7
+ F7FF10B7F7FF10B7F7FF10B7F7FF10B7F7FF10B7F7FF10B7F7FF10B7F7FF10B7
+ F7FF10B7F7FF0FACE7FF010C0FFF000000000000000000000000000000FF1100
+ DDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF1300FDFF1300FDFF07005FFF050505FF0000000000000000000000FF00DF
+ DFFF00FFFFFF00FFFFFF00FFFFFF08B7B7FF1B171AFF08B7B7FF00FFFFFF00FF
+ FFFF00FFFFFF00FFFFFF006060FF606060FF0000000000000000000000FF0082
00FF009500FF009500FF009500FF019810FF08AD6FFF009500FF009500FF0095
- 00FF009500FF009500FF003800FF606060FF0000000000000000000000FF00B5
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00CF00FF004E00FF242424FF0000000000000000000000FF00DF
- DFFF00FFFFFF00FFFFFF00FFFFFF08B7B7FF1B171AFF08B7B7FF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF006060FF0E0E0EFF0000000000000000000000FF1100
- DDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1300FDFF07005FFF050505FF00000000707070FF06494FFF0EBE
+ 00FF009500FF009500FF003800FF606060FF00000000010C10FF0FBDF8FF0FBD
+ F8FF0FBDF8FF0FBDF8FF0FBDF8FF0FBDF8FF0FBDF8FF0FBDF8FF0FBDF8FF0FBD
+ F8FF0FBDF8FF0FBDF8FF06536CFF606060FF000000000A0A0AFF07005FFF1300
+ FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF1300FDFF1300FDFF0D00AEFF000000FF00000000707070FF006060FF00FF
+ FFFF00FFFFFF00FFFFFF00FFFFFF0E8B8DFF1B171AFF0E8B8DFF00FFFFFF00FF
+ FFFF00FFFFFF00FFFFFF00AFAFFF202020FF00000000707070FF06494FFF0EBE
BEFF08AD6FFF009500FF009500FF009500FF019810FF05A33FFF009500FF0095
- 00FF0EBEBEFF13CCFDFF0D8CAEFF202020FF00000000313131FF004E00FF00CF
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00CF00FF008E00FF040404FF00000000161616FF006060FF00FF
+ 00FF0EBEBEFF13CCFDFF0D8CAEFF202020FF707070FF06556DFF0DC2F8FF0DC2
+ F8FF0DC2F8FF0DC2F8FF0DC2F8FF0DC2F8FF0DC2F8FF0DC2F8FF0DC2F8FF0DC2
+ F8FF0DC2F8FF0DC2F8FF0B9DCAFF303030FF00000000000000FF0D00AEFF1300
+ FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
+ FDFF1300FDFF1300FDFF1200EDFF000000FF00000000202020FF00AFAFFF00FF
FFFF00FFFFFF00FFFFFF00FFFFFF0E8B8DFF1B171AFF0E8B8DFF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF00AFAFFF010101FF000000000A0A0AFF07005FFF1300
+ FFFF00FFFFFF00FFFFFF00EFEFFF000000FF00000000202020FF0D8CAEFF13CC
+ FDFF11C5DDFF009500FF049F2FFF009500FF009500FF07AA5FFF049F2FFF0095
+ 00FF12C9EDFF13CCFDFF12BFEDFF000000FF303030FF0995BBFF0CC7F9FF0CC7
+ F9FF0CC7F9FF0CC7F9FF0CC7F9FF0CC7F9FF0CC7F9FF0CC7F9FF0CC7F9FF0CC7
+ F9FF0CC7F9FF0CC7F9FF0CC7F9FF000000FF00000000000000FF1200EDFF1300
FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1300FDFF0D00AEFF000000FF00000000202020FF0D8CAEFF13CC
- FDFF11C5DDFF009500FF049F2FFF009500FF009500FF07AA5FFF049F2FFF0095
- 00FF12C9EDFF13CCFDFF12BFEDFF000000FF00000000040404FF008E00FF00CF
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00CF00FF00C200FF000000FF00000000010101FF00AFAFFF00FF
+ FDFF1300FDFF1300FDFF1300FDFF000000FF00000000000000FF00EFEFFF00FF
FFFF00FFFFFF00FFFFFF00FFFFFF0E8B8DFF1B171AFF0E8B8DFF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF00EFEFFF000000FF00000000000000FF0D00AEFF1300
+ FFFF00FFFFFF00FFFFFF00FFFFFF000000FF00000000000000FF12BFEDFF13CC
+ FDFF13CCFDFF029C20FF07AA5FFF06A64FFF009500FF0AB17FFF07AA5FFF029C
+ 20FF13CCFDFF13CCFDFF13CCFDFF000000FF000000FF0ACCFAFF0ACCFAFF0ACC
+ FAFF0ACCFAFF0ACCFAFF0ACCFAFF0ACCFAFF0ACCFAFF0ACCFAFF0ACCFAFF0ACC
+ FAFF0ACCFAFF0ACCFAFF0ACCFAFF000000FF00000000000000FF1300FDFF1300
FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1300FDFF1200EDFF000000FF00000000000000FF12BFEDFF13CC
- FDFF13CCFDFF029C20FF07AA5FFF06A64FFF009500FF0AB17FFF07AA5FFF029C
- 20FF13CCFDFF13CCFDFF13CCFDFF000000FF00000000000000FF00C200FF00CF
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00CF00FF00CF00FF000000FF00000000000000FF00EFEFFF00FF
+ FDFF1300FDFF1300FDFF1200EDFF000000FF00000000000000FF00FFFFFF00FF
FFFF00FFFFFF00FFFFFF00FFFFFF0E8B8DFF1B171AFF0E8B8DFF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF00FFFFFF000000FF00000000000000FF1200EDFF1300
- FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1300FDFF1300FDFF000000FF00000000000000FF13CCFDFF13CC
+ FFFF00FFFFFF00FFFFFF00EFEFFF000000FF00000000000000FF13CCFDFF13CC
FDFF13CCFDFF11C5DDFF12C9EDFF0CB79EFF009500FF0CB79EFF12C9EDFF11C5
- DDFF13CCFDFF13CCFDFF12BFEDFF000000FF00000000000000FF00CF00FF00CF
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF
- 00FF00CF00FF00CF00FF00C200FF000000FF00000000000000FF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF00FFFFFF0E8B8DFF1B171AFF0E8B8DFF00FFFFFF00FF
- FFFF00FFFFFF00FFFFFF00EFEFFF000000FF00000000000000FF1300FDFF1300
- FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300
- FDFF1300FDFF1300FDFF1200EDFF000000FF00000000000000FF11B3DDFF13CC
+ DDFF13CCFDFF13CCFDFF12BFEDFF000000FF000000FF09D1FBFF09D1FBFF09D1
+ FBFF09D1FBFF09D1FBFF09D1FBFF09D1FBFF09D1FBFF09D1FBFF09D1FBFF09D1
+ FBFF09D1FBFF09D1FBFF08B7DBFF101010FF00000000000000FF1100DDFF1300
+ FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1100
+ DDFF0E00BEFF0D00AEFF04002FFF010101FF00000000000000FF00DFDFFF00FF
+ FFFF00FFFFFF00FFFFFF00FFFFFF03E2E2FF07C5C6FF03E2E2FF00FFFFFF00DF
+ DFFF00BFBFFF00AFAFFF003030FF404040FF00000000000000FF11B3DDFF13CC
FDFF13CCFDFF13CCFDFF13CCFDFF11C5DDFF05A33FFF0FC2CEFF13CCFDFF11B3
- DDFF0E99BEFF0D8CAEFF04262FFF404040FF00000000000000FF00B500FF00CF
- 00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00CF00FF00B5
- 00FF009B00FF008E00FF002700FF101010FF00000000000000FF00DFDFFF00FF
- FFFF00FFFFFF00FFFFFF00FFFFFF03E2E2FF07C5C6FF03E2E2FF00FFFFFF00DF
- DFFF00BFBFFF00AFAFFF003030FF040404FF00000000000000FF1100DDFF1300
- FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1300FDFF1100
- DDFF0E00BEFF0D00AEFF04002FFF010101FF00000000505050FF04262FFF12BF
+ DDFF0E99BEFF0D8CAEFF04262FFF404040FF202020FF05A0BDFF07D6FCFF07D6
+ FCFF07D6FCFF07D6FCFF07D6FCFF07D6FCFF07D6FCFF07D6FCFF07D6FCFF0593
+ ADFF046B7EFF046B7EFF011B1FFF7F7F7FFF00000000030303FF04002FFF1200
+ EDFF1100DDFF07005FFF010010FF020020FF0E00BEFF1200EDFF0B008EFF0100
+ 10FF000000FF010101FF050505FF0000000000000000505050FF003030FF00EF
+ EFFF00DFDFFF006060FF001010FF002020FF00BFBFFF00EFEFFF008F8FFF0010
+ 10FF303030FF404040FF606060FF0000000000000000505050FF04262FFF12BF
EDFF11B3DDFF074D5FFF010D10FF021A20FF0E99BEFF12BFEDFF0B738EFF010D
- 10FF303030FF404040FF606060FF0000000000000000191919FF002700FF00C2
- 00FF00B500FF004E00FF000D00FF001A00FF009B00FF00C200FF007400FF000D
- 00FF090909FF101010FF242424FF0000000000000000080808FF003030FF00EF
- EFFF00DFDFFF006060FF001010FF002020FF00BFBFFF00EFEFFF008F8FFF0010
- 10FF020202FF040404FF0E0E0EFF0000000000000000030303FF04002FFF1200
- EDFF1100DDFF07005FFF010010FF020020FF0E00BEFF1200EDFF0B008EFF0100
- 10FF000000FF010101FF050505FF000000000000000000000000404040FF0000
+ 10FF303030FF404040FF606060FF000000007F7F7FFF01292FFF05C0DDFF05CD
+ ECFF037B8EFF011B20FF000E10FF036D7EFF05CDECFF05C0DDFF02444FFF1010
+ 10FF7F7F7FFF707070FF00000000000000000000000000000000010101FF0000
+ 00FF000000FF010101FF000000000A0A0AFF000000FF000000FF000000FF0000
+ 0000000000000000000000000000000000000000000000000000404040FF0000
00FF000000FF404040FF00000000707070FF000000FF000000FF202020FF0000
- 0000000000000000000000000000000000000000000000000000101010FF0000
- 00FF000000FF101010FF00000000313131FF000000FF000000FF040404FF0000
- 0000000000000000000000000000000000000000000000000000040404FF0000
- 00FF000000FF040404FF00000000161616FF000000FF000000FF010101FF0000
- 0000000000000000000000000000000000000000000000000000010101FF0000
- 00FF000000FF010101FF000000000A0A0AFF000000FF000000FF000000FF0000
+ 0000000000000000000000000000000000000000000000000000404040FF0000
+ 00FF000000FF404040FF00000000707070FF000000FF000000FF202020FF0000
+ 00000000000000000000000000000000000000000000707070FF000000FF0000
+ 00FF404040FF0000000000000000505050FF000000FF101010FF606060FF0000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000000000000000
- 0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000424D3E000000000000003E000000
2800000040000000300000000100010000000000800100000000000000000000
000000000000000000000000FFFFFF0000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
- 00000000000000000000000000000000FC07FF7F00000000F003F8FF00000000
- C001F8FF000000008000E07F000000008000E03F000000000000801F00000000
- 0000800F00000000000080060000000000008201000000000000860100000000
- 00018F010000000000018FC1000000008003FEC100000000C003FFF100000000
- E007FFF100000000F01FFFFF00000000FC3FFC3FFC3FFC3FF81FF81FF81FF81F
- F00FF00FF00FF00FF007F007F007F007E003E003E003E003E001E001E001E001
- C001C001C001C001C000C000C000C00080008000800080008000800080008000
- 8000800080008000800080008000800080008000800080008001800180018001
- C21FC21FC21FC21FFFFFFFFFFFFFFFFF}
+ 00000000000000000000000000000000F87FFF7F00000000F01FF8FF00000000
+ E00FF8FF00000000E007E07F00000000E003E03F00000000C003801F00000000
+ C001800F00000000800180060000000080008201000000000000860100000000
+ 00008F010000000000008FC1000000000000FEC1000000000000FFF100000000
+ 0001FFF100000000861FFFFF00000000F87FFC3FFC3FFC3FF01FF81FF81FF81F
+ E00FF00FF00FF00FE007F007F007F007E003E003E003E003C003E001E001E001
+ C001C001C001C0018001C000C000C00080008000800080000000800080008000
+ 0000800080008000000080008000800000008000800080000000800180018001
+ 0003C21FC21FC21F861FFFFFFFFFFFFF00000000000000000000000000000000
+ 000000000000}
end
object EwbControl1: TEwbControl
InternetFeatures = [Behaviors, DisableMkProtocol, GetUrlDomFilePathUnencoded]
- Left = 136
+ Left = 72
Top = 8
end
+ object ConnectionChecker: TTimer
+ Enabled = False
+ Interval = 2000
+ OnTimer = ConnectionCheckerTimer
+ Left = 104
+ Top = 8
+ end
end
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 09:45:58 UTC (rev 5140)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-23 09:53:48 UTC (rev 5141)
@@ -28,8 +28,8 @@
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw_EWB, EwbCore, EmbeddedWB, Menus, ImgList, IEDownload,
- ExtCtrls, EwbControlComponent, AppEvnts, StdCtrls, ComCtrls, TuxUtils,
- LibXmlParser, LibXmlComps, ShellAPI, Registry;
+ ExtCtrls, EwbControlComponent, AppEvnts, StdCtrls, ComCtrls, ShellAPI, TuxUtils,
+ Registry;
const wm_AppelMessage = wm_user + 1;
@@ -45,6 +45,7 @@
ImageList1: TImageList;
EwbControl1: TEwbControl;
StatusBar1: TStatusBar;
+ ConnectionChecker: TTimer;
procedure FormCreate(Sender: TObject);
procedure ShowHide1Click(Sender: TObject);
@@ -54,6 +55,7 @@
procedure Mute1Click(Sender: TObject);
procedure EmbeddedWB1DocumentComplete(ASender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
+ procedure ConnectionCheckerTimer(Sender: TObject);
private
{ Darations priv }
@@ -86,9 +88,8 @@
procedure TForm1.FormCreate(Sender: TObject);
begin
url := 'http://127.0.0.1:270/user/';
-
radioState := false;
-
+
//Tray icon initialization.
Tray.cbSize := SizeOf(Tray);
Tray.wnd := Handle;
@@ -96,7 +97,7 @@
Tray.UCallbackMessage := wm_AppelMessage;
AppIcon := TIcon.Create;
- ImageList1.GetIcon(1, AppIcon);
+ ImageList1.GetIcon(0, AppIcon);
Application.Icon := AppIcon;
Form1.Icon := AppIcon;
@@ -109,13 +110,7 @@
EmbeddedWB1.Go(url);
- //Changing tray icon if server isn't started or no radio detected.
- if ( not TuxUtils.isTuxDroidServerStarted() ) then
- begin
- ImageList1.GetIcon(3, AppIcon);
- Tray.hIcon := AppIcon.Handle;
- Shell_NotifyIcon(Nim_Modify, @tray);
- end;
+ ConnectionChecker.Enabled := True;
end;
@@ -124,7 +119,6 @@
procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose := False;
- ShowHide1.Caption := 'Show';
Form1.Hide;
end;
@@ -280,5 +274,32 @@
end;
end;
+
+{#### Check server and dongle state every 3000 ms ####}
+procedure TForm1.ConnectionCheckerTimer(Sender: TObject);
+var
+ server, dongle : boolean;
+begin
+ TuxUtils.getStates();
+ server := TuxUtils.isTuxDroidServerStarted();
+ dongle := TuxUtils.isDongleConnected();
+
+ //Changing tray icon if server isn't started or no radio detected.
+ if ( server and dongle ) then
+ begin
+ ImageList1.GetIcon(0, AppIcon);
+ Tray.hIcon := AppIcon.Handle;
+ Shell_NotifyIcon(Nim_Modify, @tray);
+ end
+ else
+ begin
+ ImageList1.GetIcon(1, AppIcon);
+ Tray.hIcon := AppIcon.Handle;
+ Shell_NotifyIcon(Nim_Modify, @tray);
+ end;
+ Application.ProcessMessages;
+ self.ConnectionChecker.Enabled := true;
+end;
+
end.
|
|
From: remi <c2m...@c2...> - 2009-07-23 09:46:12
|
Author: remi
Date: 2009-07-23 11:45:58 +0200 (Thu, 23 Jul 2009)
New Revision: 5140
Modified:
software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py
Log:
* Reverted commit #5108
Modified: software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py 2009-07-23 08:30:12 UTC (rev 5139)
+++ software_suite_v3/smart-core/smart-server/trunk/TDSConfiguration.py 2009-07-23 09:45:58 UTC (rev 5140)
@@ -86,12 +86,12 @@
if os.name == 'nt':
TDS_RESOURCES_CONF_PATH = os.path.join(ALLUSERSBASEDIR, "configurations", "resources")
else:
- TDS_RESOURCES_CONF_PATH = os.path.join(TUXDROID_BASE_PATH, "resources_conf")
+ TDS_RESOURCES_CONF_PATH = os.path.join("/etc/tuxdroid", "resources_conf")
# Path of the user configurations
if os.name == 'nt':
TDS_USERS_CONF_PATH = os.path.join(ALLUSERSBASEDIR, "configurations", "users_conf")
else:
- TDS_USERS_CONF_PATH = os.path.join(TUXDROID_BASE_PATH, "users_conf")
+ TDS_USERS_CONF_PATH = os.path.join("/etc/tuxdroid", "users_conf")
# Path of the default content of the server
if os.name == 'nt':
TDS_DEFAULT_CONTENT_PATH = os.path.join(ALLUSERSBASEDIR, "resources")
|
|
From: ks156 <c2m...@c2...> - 2009-07-23 08:30:24
|
Author: ks156 Date: 2009-07-23 10:30:12 +0200 (Thu, 23 Jul 2009) New Revision: 5139 Modified: software_suite_v3/software/plugin/plugin-WMP/trunk/src/com/kysoh/tuxdroid/WMPlayer.java Log: * Fixed a non utf8 character. Modified: software_suite_v3/software/plugin/plugin-WMP/trunk/src/com/kysoh/tuxdroid/WMPlayer.java =================================================================== --- software_suite_v3/software/plugin/plugin-WMP/trunk/src/com/kysoh/tuxdroid/WMPlayer.java 2009-07-22 14:22:24 UTC (rev 5138) +++ software_suite_v3/software/plugin/plugin-WMP/trunk/src/com/kysoh/tuxdroid/WMPlayer.java 2009-07-23 08:30:12 UTC (rev 5139) @@ -1,6 +1,6 @@ /* This file is part of "TuxDroid Gadget Windows Media player". * Copyright 2008, kysoh - * Author : Jme Conan jer...@ky... + * Author : Jérome Conan jer...@ky... * Site : http://www.kysoh.com/ * * "TuxDroid Gadget Windows Media player" is free software; you can redistribute it and/or |
|
From: jerome <c2m...@c2...> - 2009-07-22 14:22:41
|
Author: jerome Date: 2009-07-22 16:22:24 +0200 (Wed, 22 Jul 2009) New Revision: 5138 Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/EmbeddedWB_D5-D2009_Version_14.67.9.zip software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/indy9.0.18_source.zip Log: * Added dependencies packages. Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/EmbeddedWB_D5-D2009_Version_14.67.9.zip =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/EmbeddedWB_D5-D2009_Version_14.67.9.zip ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/indy9.0.18_source.zip =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/dependencies/indy9.0.18_source.zip ___________________________________________________________________ Name: svn:mime-type + application/octet-stream |
Author: remi
Date: 2009-07-22 15:52:19 +0200 (Wed, 22 Jul 2009)
New Revision: 5137
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
software_suite_v3/smart-core/smart-server/trunk/util/string/String.py
Log:
* Show TTS messages in the page "Live with Tux".
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css 2009-07-22 12:20:46 UTC (rev 5136)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css 2009-07-22 13:52:19 UTC (rev 5137)
@@ -368,6 +368,13 @@
font-family:Verdana, Bitstream Vera Sans;
}
+.notifyHintGadgetMessage{
+ font-size:12px;
+ color:#FFFFFF;
+ text-align:left;
+ font-family:Verdana, Bitstream Vera Sans;
+}
+
div.notifyHintGadgetMessages{
left:0px;
top:5px;
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl 2009-07-22 12:20:46 UTC (rev 5136)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl 2009-07-22 13:52:19 UTC (rev 5137)
@@ -46,6 +46,7 @@
var knowedAlertGadgetUuid = null;
var emptyGadgetIcon = "/data/web_interface/user_01/img/empty.png";
var emptyGadgetName = " ";
+ var knowedGadgetMessagesDict = null;
function updateStates()
{
@@ -142,6 +143,19 @@
{
updateCurrentAlertGadget("0", emptyGadgetName, emptyGadgetIcon);
}
+ var gadgetMessagesDict = null;
+ try
+ {
+ gadgetMessagesDict = states.get("gadget_messages");
+ }
+ catch (e)
+ {
+ gadgetMessagesDict = null;
+ }
+ if (gadgetMessagesDict != null)
+ {
+ updateMessagesBox(gadgetMessagesDict);
+ }
}
if (batteryState != knowedBatteryState)
{
@@ -308,9 +322,46 @@
setpng(document.getElementById('notifyHintGadgetIcon'));
document.getElementById("notifyHintGadgetName").firstChild.nodeValue = name;
document.getElementById("notifyHintGadgetDescription").firstChild.nodeValue = description;
+ clearMessagesBox();
}
}
+ function updateMessagesBox(gadgetMessagesDict)
+ {
+ if (gadgetMessagesDict.get("count") == "0")
+ {
+ return;
+ }
+ knowedCount = 0;
+ if (knowedGadgetMessagesDict != null)
+ {
+ knowedCount = parseInt(knowedGadgetMessagesDict.get("count"));
+ }
+ currentCount = parseInt(gadgetMessagesDict.get("count"));
+ if (knowedCount == currentCount)
+ {
+ return;
+ }
+ knowedGadgetMessagesDict = gadgetMessagesDict;
+ var divContent = '<span class="notifyHintGadgetMessage">';
+ for (i = 0; i < currentCount; i++)
+ {
+ message = gadgetMessagesDict.get("msg_" + i);
+ divContent += message + "<br>";
+ }
+ divContent += "</span>";
+ document.getElementById("notifyHintGadgetMessages").innerHTML = divContent;
+ // Scroll down
+ var objDiv = document.getElementById("notifyHintGadgetMessages");
+ objDiv.scrollTop = objDiv.scrollHeight;
+ }
+
+ function clearMessagesBox()
+ {
+ document.getElementById("notifyHintGadgetMessages").innerHTML = "<span></span>";
+ knowedGadgetMessagesDict = null;
+ }
+
function updateGadgetThumb01(uuid, name, icon)
{
if ((knowedGadget01Name != name) || (knowedGadget01Uuid != uuid))
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-07-22 12:20:46 UTC (rev 5136)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-07-22 13:52:19 UTC (rev 5137)
@@ -6,6 +6,7 @@
import time
from translation.Translation import Translation
+from util.string.String import String
PGU_CONTEXT_LAYER_USER = 0
PGU_CONTEXT_LAYER_SCHEDULER = 1
@@ -36,6 +37,7 @@
if self.__pluginInterpreterContext.getInstanceParameters()['startedBy'] == 'scheduler':
self.__contextLayer = PGU_CONTEXT_LAYER_SCHEDULER
self.__eventStack = []
+ self.__messagesHistory = []
self.__eventStackMutex = threading.Lock()
self.__contextComplete = False
self.__contextCompleteMutex = threading.Lock()
@@ -124,6 +126,16 @@
self.__eventStackMutex.release()
return result
+ def getMessagesHistory(self):
+ """
+ """
+ self.__eventStackMutex.acquire()
+ result = []
+ for message in self.__messagesHistory:
+ result.append(message)
+ self.__eventStackMutex.release()
+ return result
+
def insertMessage(self, message, locutor, pitch):
"""
"""
@@ -132,6 +144,7 @@
'locutor' : locutor,
'pitch' : pitch,
})
+ self.__messagesHistory.append(message)
def insertActuation(self, actuationName, arguments = []):
"""
@@ -556,6 +569,36 @@
result['uuid'] = pguContext.getPguObject().getDescription().getUuid()
return result
+ def getLastStartedOnDemandUgcMessages(self):
+ """
+ """
+ def fillResult(pguContext):
+ result = {}
+ if pguContext == None:
+ result['count'] = 0
+ return result
+ else:
+ if not pguContext.executionIsStarted():
+ result['count'] = 0
+ return result
+ messages = pguContext.getMessagesHistory()
+ result['count'] = len(messages)
+ for i, message in enumerate(messages):
+ if not String.isUtf8(message):
+ try:
+ tmp = message.decode("latin-1", "ignore")
+ message = tmp.encode("utf-8", "ignore")
+ except:
+ pass
+ message = String.toUtf8(message)
+ result['msg_%d' % i] = message
+ return result
+ pguContext = self.getForegroundPguContext()
+ if pguContext != None:
+ if pguContext.getContextLayer() != PGU_CONTEXT_LAYER_SCHEDULER:
+ return fillResult(pguContext)
+ return fillResult(self.getBackgroundPguContext())
+
def __setStarted(self, value):
"""
"""
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-07-22 12:20:46 UTC (rev 5136)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-07-22 13:52:19 UTC (rev 5137)
@@ -330,6 +330,7 @@
currentAlertData = resourceRobotContentInteractions.getPguContextsManager().getCurrentUgcForegroundScheduled()
if currentAlertData != {}:
contentStruct['root']['alert'] = currentAlertData
+ contentStruct['root']['gadget_messages'] = resourceRobotContentInteractions.getPguContextsManager().getLastStartedOnDemandUgcMessages()
return headersStruct, contentStruct
# Register the service into the resource
Modified: software_suite_v3/smart-core/smart-server/trunk/util/string/String.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/string/String.py 2009-07-22 12:20:46 UTC (rev 5136)
+++ software_suite_v3/smart-core/smart-server/trunk/util/string/String.py 2009-07-22 13:52:19 UTC (rev 5137)
@@ -42,6 +42,20 @@
return text
# --------------------------------------------------------------------------
+ # Check if the text is encoded in 'utf-8'.
+ # --------------------------------------------------------------------------
+ def isUtf8(text):
+ """Check if the text is encoded in 'utf-8'.
+ @param text: Input text to check.
+ @return: A boolean.
+ """
+ encoding = detect(text)['encoding']
+ if encoding.lower() in ["utf8", "utf-8"]:
+ return True
+ else:
+ return False
+
+ # --------------------------------------------------------------------------
# Translate a text.
# --------------------------------------------------------------------------
def translate(text, fromLang, toLang, inConsole = False):
@@ -161,6 +175,7 @@
return text
toUtf8 = staticmethod(toUtf8)
+ isUtf8 = staticmethod(isUtf8)
translate = staticmethod(translate)
autoTranslate = staticmethod(autoTranslate)
getLanguage = staticmethod(getLanguage)
|
|
From: jerome <c2m...@c2...> - 2009-07-22 12:52:53
|
Author: jerome Date: 2009-07-22 14:20:11 +0200 (Wed, 22 Jul 2009) New Revision: 5135 Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/mute.ico software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/tuxbox.ico Log: * Update icons. Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/mute.ico =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/mute.ico ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/tuxbox.ico =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/tuxbox.ico ___________________________________________________________________ Name: svn:mime-type + application/octet-stream |
|
From: jerome <c2m...@c2...> - 2009-07-22 12:21:53
|
Author: jerome Date: 2009-07-22 14:20:46 +0200 (Wed, 22 Jul 2009) New Revision: 5136 Removed: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/connected.ico software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/webbrowser.ico Log: * Deleted two old icons. Deleted: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/connected.ico =================================================================== (Binary files differ) Deleted: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/images/ico/webbrowser.ico =================================================================== (Binary files differ) |
|
From: jerome <c2m...@c2...> - 2009-07-22 11:24:49
|
Author: jerome
Date: 2009-07-22 13:24:43 +0200 (Wed, 22 Jul 2009)
New Revision: 5134
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
Log:
* Update the dongle connection check function.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-22 10:48:51 UTC (rev 5133)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-22 11:24:43 UTC (rev 5134)
@@ -8,7 +8,7 @@
EmbeddedWB;
function isTuxDroidServerStarted() : boolean;
- function isDongleConnected(ApplicationExeName : String; EmbeddedWB1 : TEmbeddedWB) : boolean;
+ function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
var
XmlScanner1: TXmlScanner;
@@ -50,7 +50,7 @@
//Return the dongle connection state.
-function isDongleConnected(ApplicationExeName : String; EmbeddedWB1 : TEmbeddedWB) : boolean;
+function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
var
targetDir : String;
downloaded : boolean;
@@ -65,7 +65,7 @@
targetDir := ExtractFilePath(ApplicationExeName);
downloaded := false;
- boolvalue := false;
+ boolValue := false;
//Checking if file exists and remove it.
if FileExists(targetDir + '\' + fileName) then
@@ -84,6 +84,7 @@
begin
xmlFile := targetDir + '\' + fileName;
+ xmlScanner1 := TXmlScanner.Create(nil);
XmlScanner1.LoadFromFile(xmlFile);
xmlThread := TXmlThreadObject.create(XmlScanner1);
xmlThread.Resume;
|
|
From: jerome <c2m...@c2...> - 2009-07-22 10:48:54
|
Author: jerome
Date: 2009-07-22 12:48:51 +0200 (Wed, 22 Jul 2009)
New Revision: 5133
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
Log:
* Updated TuxUtils location.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-22 10:46:58 UTC (rev 5132)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr 2009-07-22 10:48:51 UTC (rev 5133)
@@ -4,7 +4,7 @@
Forms,
Unit1 in 'Unit1.pas' {Form1},
TXmlThread in 'TXmlThread.pas',
- TuxUtils in 'images\bmp\TuxUtils.pas';
+ TuxUtils in 'TuxUtils.pas';
{$R *.res}
|
|
From: jerome <c2m...@c2...> - 2009-07-22 10:47:05
|
Author: jerome Date: 2009-07-22 12:46:58 +0200 (Wed, 22 Jul 2009) New Revision: 5132 Added: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dof software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.dpr software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas Log: * Added special class for tuxdroid server and TuxBox 2.0 communication. Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg =================================================================== --- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg 2009-07-22 09:26:23 UTC (rev 5131) +++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Project2.cfg 2009-07-22 10:46:58 UTC (rev 5132) @@ -1 +1,35 @@ - |
|
From: jerome <c2m...@c2...> - 2009-07-22 09:26:30
|
Author: jerome
Date: 2009-07-22 11:26:23 +0200 (Wed, 22 Jul 2009)
New Revision: 5131
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
Log:
* Deleted 'caption string toggle' when clicking 'Show / Hide' popup menu item.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-22 09:22:03 UTC (rev 5130)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.dfm 2009-07-22 09:26:23 UTC (rev 5131)
@@ -94,11 +94,10 @@
end
object PopupMenu1: TPopupMenu
Images = ImageList1
- OnPopup = PopupMenu1Popup
Left = 8
Top = 8
object ShowHide1: TMenuItem
- Caption = 'Show/Hide'
+ Caption = 'Show / Hide'
OnClick = ShowHide1Click
end
object Mute1: TMenuItem
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-22 09:22:03 UTC (rev 5130)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/Unit1.pas 2009-07-22 09:26:23 UTC (rev 5131)
@@ -29,7 +29,8 @@
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, SHDocVw_EWB, EwbCore, EmbeddedWB, ShellAPI, Menus, Registry,
ImgList, LibXmlParser, LibXmlComps, IEDownload, ExtCtrls, TlHelp32,
- EwbControlComponent, TXmlThread, ComCtrls, AppEvnts, PngImageList;
+ EwbControlComponent, TXmlThread, ComCtrls, AppEvnts, PngImageList,
+ StdCtrls;
const wm_AppelMessage = wm_user + 1;
@@ -48,7 +49,6 @@
StatusBar1: TStatusBar;
procedure FormCreate(Sender: TObject);
- procedure PopupMenu1Popup(Sender: TObject);
procedure ShowHide1Click(Sender: TObject);
procedure Quit1Click(Sender: TObject);
procedure Help1Click(Sender: TObject);
@@ -143,16 +143,6 @@
{####### Tray icon properties and events ######}
{###############################################}
-//Actions to do when popup menu is showed.
-procedure TForm1.PopupMenu1Popup(Sender: TObject);
-begin
- if Form1.Visible then
- ShowHide1.Caption := 'Hide'
- else
- ShowHide1.Caption := 'Show';
-end;
-
-
//Tray menu show/hide click.
procedure TForm1.ShowHide1Click(Sender: TObject);
begin
@@ -254,12 +244,10 @@
if Form1.Visible then
begin
Form1.Visible := false;
- ShowHide1.Caption := 'Show';
end
else
begin
Form1.Visible := true;
- ShowHide1.Caption := 'Hide';
SetForegroundWindow(Application.Handle);
end;
|