Changeset 5140
- Timestamp:
- Jun 12, 2017, 3:37:20 PM (4 years ago)
- Location:
- lliurex-connect/trunk/fuentes
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-connect/trunk/fuentes/debian/control
r5015 r5140 10 10 Package: lliurex-connect 11 11 Architecture: all 12 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}12 Depends: python-apt, ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} 13 13 Description: Communicate with your tablet 14 14 Tools to connect Android tablets -
lliurex-connect/trunk/fuentes/debian/rules
r5016 r5140 2 2 3 3 %: 4 dh $@ --with llx dev4 dh $@ --with llxsrc,llxdev -
lliurex-connect/trunk/fuentes/lliurex-connect/usr/share/lliurex-connect/help/info.css
r5015 r5140 28 28 29 29 .infotext{ 30 width: auto;30 width: 500px; 31 31 float: left; 32 32 clear: right; … … 37 37 } 38 38 39 40 41 .chrome{ 42 background-image: url(../img/chrome.png); 43 } 44 45 46 .allcast_reveicer{ 47 background-image: url(../img/allcast_receiver.png); 48 } 49 50 39 51 .xsdl{ 40 52 background-image: url(../img/xsdl.png); -
lliurex-connect/trunk/fuentes/lliurex-connect/usr/share/lliurex-connect/help/info.html
r5015 r5140 3 3 <link rel="stylesheet" href="info.css"> 4 4 <script src="jquery-2.1.4.js"></script> 5 <script> 6 function populateText(description, google_desc, google_link, allcast_desc, allcast_link, mirroring_desc, 7 mirroring_link, xserver_desc, xserver_link){ 8 $("#info").append(description); 9 $("#desc_chrome").append(google_desc); 10 $("#google_link").append(google_link); 11 $("#desc_allcast_rcv").append(allcast_desc); 12 $("#allcast_link").append(allcast_link); 13 $("#mirror_description").append(mirroring_desc); 14 $("#mirroring_link").append(mirroring_link); 15 $("#xsdl_description").append(xserver_desc); 16 $("#xserver_link").append(xserver_link); 17 18 } 19 </script> 5 20 </head> 6 21 22 <!--body onload="tralari();"--> 7 23 <body> 8 24 <h1>Help</h1> 9 <div id="info"></div> 25 <div id="info"> 26 27 </div> 28 29 30 <div class="inforow"> 31 <div class="infoicon chrome"></div> 32 <div class="infotext"> 33 <span id="desc_chrome"></span> 34 <a id="google_link" class="link" href="https://www.google.es/chrome/browser/desktop/index.html"> 35 </a> 36 </div> 37 </div> 38 39 <div class="inforow"> 40 <div class="infoicon allcast_reveicer"></div> 41 <div class="infotext"> 42 <span id="desc_allcast_rcv"></span> 43 <a id="allcast_link" class="link" href="https://chrome.google.com/webstore/detail/allcast-receiver/hjbljnpdahefgnopeohlaeohgkiidnoe?hl=ca&utm_source=chrome-ntp-launcher"></a> 44 </div> 45 </div> 46 10 47 11 48 <div class="inforow"> 12 49 <div class="infoicon mirror"></div> 13 <div class="infotext" id="mirror_description"> 14 <a class="link" href="https://play.google.com/store/apps/details?id=x.org.server"> 15 <!--a id="mirrror_app_link"> 16 Go to app XServer XSDL in Google Play 17 </a--> 50 <div class="infotext"> 51 <span id="mirror_description"></span> 52 <a id="mirroring_link" class="link" href="https://play.google.com/store/apps/details?id=com.koushikdutta.mirror"> 53 </a> 18 54 </div> 19 55 … … 22 58 <div class="inforow"> 23 59 <div class="infoicon xsdl"></div> 24 <div class="infotext" id="xsdl_description">This is an application... 25 <!--a class="link" href="https://play.google.com/store/apps/details?id=com.koushikdutta.mirror"--> 26 <a id="xsdl_app_link"> 27 Go to app Screen Recording and Mirror in Google Play 28 </a> 60 <div class="infotext" id="xsdl_description"> 61 <span id="xserver_desc"></span> 62 <a id="xserver_link" class="link" href="https://play.google.com/store/apps/details?id=x.org.server"></a> 29 63 </div> 30 64 </div> -
lliurex-connect/trunk/fuentes/lliurex-connect/usr/share/lliurex-connect/splash.py
r5015 r5140 2 2 import gi 3 3 import os 4 import apt 4 5 import subprocess 5 6 gi.require_version('Gtk', '3.0') … … 9 10 import iniparse 10 11 from appdirs import * 12 13 import gettext 14 gettext.textdomain('lliurex-connect') 15 _ = gettext.gettext 11 16 12 17 … … 28 33 # Set check status 29 34 self.active=False; 35 self.chromeInstalled=False; 36 30 37 if (checked=="True"): 31 38 self.active=True; 39 40 # Is google chrome installed 41 cache=apt.Cache() 42 self.chromeInstalled=cache['google-chrome-stable'].is_installed 43 32 44 33 45 # Creating main container … … 38 50 #Create Webkit view 39 51 40 view = WebKit.WebView(); 41 view.open(os.path.abspath("help/info.html")); 42 view.connect('navigation-policy-decision-requested', self.on_nav_request) 52 self.view = WebKit.WebView(); 53 self.view.open(os.path.abspath("help/info.html")); 54 self.view.connect('navigation-policy-decision-requested', self.on_nav_request) 55 self.view.connect('load-finished', self._finished_loading) 43 56 #view.connect("navigation-requested", self.on_click_link) 44 57 … … 60 73 hbox.pack_end(buttonClose, False, True, 0); 61 74 62 container.add( view);75 container.add(self.view); 63 76 container.add(row); 64 77 container.add(hbox); 65 78 66 view.execute_script("$('#info').html('%s')" % "Pajaritos tralari");79 #view.execute_script("$('#info').html('%s')" % "Pajaritos tralari"); 67 80 68 def on_click_link(self, view, frame, request): 69 print("Mavigation change requested") 70 #self.webview.get_back_forward_list().clear() 71 return False 81 #view.execute_script('tralari()'); 82 83 #def on_click_link(self, view, frame, request): 84 # print("Mavigation change requested") 85 # #self.webview.get_back_forward_list().clear() 86 # return False 87 # pass 88 89 def _finished_loading(self, webview, webfame): 90 description=_("LliureX Connect is a suite of tools to achieve the connection between tablet and your LliureX computer. For the mirroring capabilities, you need an Chrome extension called AllCast Receicer."); 91 google_desc=_("You need Google Chrome to use Mirroring capabilities in this computer. Press the following link to download Google Chrome."); 92 google_link=_("Download Chrome"); 93 allcast_desc=_("Allcast Receiver is a Google Chrome App to receive video streaming from an Android Device through Recording and Mirroring App."); 94 allcast_link=_("Download AllCast Receiver"); 95 mirroring_desc=_("Screen Recording and Mirror allows you to send video streaming to AllCast Receiver Google Chrome app."); 96 mirroring_link=_("Go to app Screen Recording and Mirror in Google Play"); 97 xserver_desc=_("XDSL Server is a Linux graphical server for your Android device. It alloys you to launch any application in yout system and see it in your device."); 98 xserver_link=_("Go to app X Server for Android in Google Play"); 99 100 parameters='"'+description+'","'+google_desc+'","'+google_link+'","'+allcast_desc+'","'+allcast_link+'","'+mirroring_desc+'","'+mirroring_link+'","'+xserver_desc+'","'+xserver_link+'"'; 101 102 print (parameters); 103 104 self.view.execute_script('populateText('+parameters+')'); 72 105 pass 73 106 74 107 def on_nav_request(self, view, frame, request, action, policy, data=None): 108 75 109 # Loading URL in Firefox 76 110 url = request.get_uri() 77 command='firefox '+url; 111 112 browser="firefox "; 113 if (self.chromeInstalled): 114 browser="/opt/google/chrome/google-chrome "; 115 116 command=browser+url; 78 117 79 118 proc = subprocess.Popen([command], shell=True, stdout=subprocess.PIPE)
Note: See TracChangeset
for help on using the changeset viewer.