The branch, dharma has been updated
via 513e26643ffa481eb6c9a8f8ae020ce46a22794e (commit)
from 4e153144d6acc9ee4f0f82b867497282ad62e441 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=513e26643ffa481eb6c9a8f8ae020ce46a22794e
commit 513e26643ffa481eb6c9a8f8ae020ce46a22794e
Author: amet <[email protected]>
Date: Sun Jan 9 18:45:59 2011 +0400
[script.forum.browser] -v 0.8.1
- Follow links in Web Viewer
diff --git a/script.forum.browser/addon.xml b/script.forum.browser/addon.xml
index dd66c22..b65a900 100644
--- a/script.forum.browser/addon.xml
+++ b/script.forum.browser/addon.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.forum.browser"
name="Forum Browser"
- version="0.8.0"
+ version="0.8.1"
provider-name="Rick Phillips (ruuk)">
<requires>
<import addon="xbmc.python" version="1.0"/>
- <import addon="script.module.beautifulsoup" version="3.0.8.1"/>
<import addon="script.module.simplejson" version="2.0.9"/>
+ <import addon="script.web.viewer" version="0.7.3"/>
</requires>
<extension point="xbmc.python.script"
library="default.py">
@@ -15,6 +15,6 @@
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<summary lang="en">Browse forums within XBMC</summary>
- <description lang="en">Browse Forums in XBMC. View forums, threads, posts,
subscriptions and private messages. Post replies, send private messages, delete
posts, quote posts. View images in posts, follow post forum links and download
post links. Translate post messages via Google Translate. Currently supports
Forums: xbmc.org,boxee.tv,xbmc4xbox.org,dvhk.pl</description>
+ <description lang="en">Browse Forums in XBMC. View forums, threads, posts,
subscriptions and private messages. Follow links in Web Viewer. Post replies,
send private messages, delete posts, quote posts. View images in posts, follow
post forum links and download post links. Translate post messages via Google
Translate. Currently supports Forums:
xbmc.org,boxee.tv,xbmc4xbox.org,dvhk.pl</description>
</extension>
</addon>
\ No newline at end of file
diff --git a/script.forum.browser/changelog.txt
b/script.forum.browser/changelog.txt
index a1f810c..25ffc89 100644
--- a/script.forum.browser/changelog.txt
+++ b/script.forum.browser/changelog.txt
@@ -1,6 +1,10 @@
Forum Browser Changelog
-Current Version : 0.8.0
+Current Version : 0.8.1
+
+*** 0.8.1 ***
+
+Follow links in Web Viewer
*** 0.8.0 ***
diff --git a/script.forum.browser/default.py b/script.forum.browser/default.py
index a16199f..3c1ebab 100644
--- a/script.forum.browser/default.py
+++ b/script.forum.browser/default.py
@@ -1,7 +1,8 @@
-import urllib2, re, os, sys, time, urlparse
+import urllib2, re, os, sys, time, urlparse, htmlentitydefs
import xbmc, xbmcgui, xbmcaddon #...@unresolvedimport
from googletranslate import googleTranslateAPI
import threading
+from webviewer import webviewer #...@unresolvedimport
'''
TODO:
@@ -14,7 +15,7 @@ __plugin__ = 'Forum Browser'
__author__ = 'ruuk (Rick Phillips)'
__url__ = 'http://code.google.com/p/forumbrowserxbmc/'
__date__ = '12-12-2010'
-__version__ = '0.8.0'
+__version__ = '0.8.1'
__addon__ = xbmcaddon.Addon(id='script.forum.browser')
__language__ = __addon__.getLocalizedString
@@ -385,7 +386,7 @@ class ForumBrowser:
def login(self):
LOG('LOGGING IN')
if not self.mechanize:
- import mechanize
+ from webviewer import mechanize #...@unresolvedimport
self.mechanize = mechanize
if not self.browser: self.browser = self.mechanize.Browser()
response = self.browser.open(self.getURL('login'))
@@ -446,7 +447,10 @@ class ForumBrowser:
def makeURL(self,phppart):
if not phppart: return ''
- url = self._url + phppart
+ if phppart.startswith('http://'):
+ url = phppart
+ else:
+ url = self._url + phppart
return url.replace('&','&').replace('/./','/')
def getPMCounts(self,html=''):
@@ -987,9 +991,11 @@ class BaseWindow(xbmcgui.WindowXMLDialog,ThreadWindow):
return False
def onAction(self,action):
+ #print action.getId()
if action == ACTION_PARENT_DIR:
action = ACTION_PREVIOUS_MENU
if ThreadWindow.onAction(self,action): return
+ if action == ACTION_PREVIOUS_MENU: self.close()
xbmcgui.WindowXMLDialog.onAction(self,action)
def startProgress(self):
@@ -1069,7 +1075,7 @@ class ImagesDialog(BaseWindow):
def __init__( self, *args, **kwargs ):
self.images = kwargs.get('images')
self.index = 0
- xbmcgui.WindowXML.__init__( self, *args, **kwargs )
+ BaseWindow.__init__( self, *args, **kwargs )
def onInit(self):
self.setTheme()
@@ -1116,7 +1122,7 @@ class ImagesDialog(BaseWindow):
self.nextImage()
elif action == ACTION_PREV_ITEM:
self.prevImage()
- xbmcgui.WindowXMLDialog.onAction(self,action)
+ BaseWindow.onAction(self,action)
######################################################################################
# Post Dialog
@@ -1360,7 +1366,7 @@ class TextPostDialog(PostDialog):
#if not self.editButton.isSelected(): return False
aid = action.getId()
bc = action.getButtonCode()
- print aid,bc
+ #print aid,bc
try:
shift = False
if bc & 0x00020000:
@@ -1707,6 +1713,8 @@ class MessageWindow(BaseWindow):
self.action = PostMessage(tid=link.tid,pid=link.pid)
self.close()
else:
+ webviewer.getWebResult(link.url,dialog=True)
+ return
base =
xbmcgui.Dialog().browse(3,__language__(30144),'files')
if not base: return
fname,ftype =
Downloader(message=__language__(30145)).downloadURL(base,link.url)
@@ -1724,11 +1732,9 @@ class MessageWindow(BaseWindow):
del w
def onAction(self,action):
- if action == ACTION_PARENT_DIR:
- action = ACTION_PREVIOUS_MENU
- elif action == ACTION_CONTEXT_MENU:
- self.doMenu()
BaseWindow.onAction(self,action)
+ if action == ACTION_CONTEXT_MENU:
+ self.doMenu()
def doMenu(self):
options = [__language__(30134),__language__(30135)]
@@ -2164,7 +2170,7 @@ class ThreadsWindow(PageWindow):
fid = item.getProperty('fid') or self.fid
lastid = item.getProperty('lastid')
topic = item.getProperty('title')
- w = RepliesWindow("script-forumbrowser-replies.xml" ,
__addon__.getAddonInfo('path'),
THEME,tid=tid,fid=fid,lastid=lastid,topic=topic,parent=self)
+ w = RepliesWindow("script-forumbrowser-replies.xml" ,
__addon__.getAddonInfo('path'),THEME,tid=tid,fid=fid,lastid=lastid,topic=topic,parent=self)
w.doModal()
del w
@@ -2306,7 +2312,7 @@ class ForumsWindow(BaseWindow):
self.getControl(203).setLabel(__language__(3009) + disp)
def openPMWindow(self):
- w = RepliesWindow("script-forumbrowser-replies.xml" ,
__addon__.getAddonInfo('path'),
THEME,tid='private_messages',topic=__language__(30176),parent=self)
+ w = RepliesWindow("script-forumbrowser-replies.xml" ,
__addon__.getAddonInfo('path'),THEME,tid='private_messages',topic=__language__(30176),parent=self)
w.doModal()
del w
self.setPMCounts(FB.getPMCounts())
@@ -2589,25 +2595,14 @@ def calculatePage(low,high,total):
return str(int(round(float(high)/((high-low)+1))))
def cUConvert(m): return unichr(int(m.group(1)))
-def cConvert(m): return chr(int(m.group(1)))
+def cTConvert(m): return
unichr(htmlentitydefs.name2codepoint.get(m.group(1),32))
def convertHTMLCodes(html):
- #conv = False
- #try:
- # html = re.sub('&#(\d{1,3});',cConvert,html)
- # conv = True
- #except:
- # pass
- #if not conv:
try:
- html = re.sub('&#(\d{1,3});',cUConvert,html)
+ html = re.sub('&#(\d{1,5});',cUConvert,unicode(html,'utf8'))
+ html = re.sub('&(\w+?);',cTConvert,html)
except:
pass
- return html .replace("<", "<")\
- .replace(">", ">")\
- .replace("&", "&")\
- .replace(""",'"')\
- .replace("'","'")\
- .replace(" "," ")
+ return html
def messageToText(html):
html = MC.lineFilter.sub('',html)
diff --git a/script.forum.browser/forums/forum.xbmc.org
b/script.forum.browser/forums/forum.xbmc.org
index 39afc6d..fb49cbd 100644
--- a/script.forum.browser/forums/forum.xbmc.org
+++ b/script.forum.browser/forums/forum.xbmc.org
@@ -3,8 +3,9 @@
# import other data here ex-> import:forum.xbmc.org
### URLs ######################################
-# Base url including the trailing /
+# Base URL including the trailing /
url:base=http://forum.xbmc.org/
+#The part after the slash on the base URL
url:forums=index.php
url:threads=forumdisplay.php?f=!FORUMID!
url:replies=showthread.php?t=!THREADID!&p=!POSTID!&mode=linear
@@ -40,7 +41,6 @@ format:pm_csv_columns=date,folder,title,user,to,message
format:pm_csv_folder=Inbox
filter:pm_counts1=<a href="private.php">(?P<display>Private Messages</a>:
Unread (?:<strong>)?(?P<unread>\d+)(?:</strong>)?, Total (?P<total>\d+)).</div>
-#<a href="usercp.php">Your Notifications:</a> <strong>1</strong>
filter:pm_counts2=Private Messages.+?<a
href="private.php".+?>(?P<unread>\d+)</a>
url:pm_new_message=private.php?do=newpm
@@ -57,10 +57,11 @@ form:pm_submit_wait=1
filter:logo=<a href="index.php.*?"><img src="(?P<suburl>.*?)"
# valid match names are forumid, title, and description
filter:forums=(?P<subforum>\s/>\s)*(?<!\s/></a>|ntrol">|an="5">)(?:<a\shref="forumdisplay.php\?).*?f=(?P<forumid>\d+)">(?P<title>.*?)</a>.*?(?:(?:<div
class="smallfont">(?P<description>.*?)</div>)|,)
-# valid match names are threadid, title, starter and lastposter
+#start looking for threads after this string
filter:threads_start_after=<!-- threads list -->
+# valid match names are threadid, title, starter and lastposter
filter:threads=(?P<sticky>Sticky: )?<a
href="showthread.php\?[^<>]*?t=(?P<threadid>\d+)"\sid="thread_title.*?>(?P<title>.*?)</a>.*?window.open\(\'member.php\?.*?u=\d+\',
\'_self\'\)">(?P<starter>.*?)</span.*?<a
href="member.php.*?rel="nofollow">(?P<lastposter>.*?)</a>
-# this should match the entire text for every post on the page from which the
post filter will extract
+# this should match the entire text for every post on the page from which the
post filter will extract
filter:replies=<table\s.*?id="post\d+.*?<!-- / message -->.*?(?:<!-- sig
-->.+?<!-- / sig -->)?
# valid match names are postid, date, userid, user, avatar, title, and message
filter:private_message===replies
diff --git a/script.forum.browser/icon.png b/script.forum.browser/icon.png
index fba5d33..e0afcb0 100644
Binary files a/script.forum.browser/icon.png and
b/script.forum.browser/icon.png differ
diff --git
a/script.forum.browser/resources/skins/Default/720p/script-forumbrowser-replies.xml
b/script.forum.browser/resources/skins/Default/720p/script-forumbrowser-replies.xml
index a9e40ea..e08c1c7 100644
---
a/script.forum.browser/resources/skins/Default/720p/script-forumbrowser-replies.xml
+++
b/script.forum.browser/resources/skins/Default/720p/script-forumbrowser-replies.xml
@@ -1,498 +1,508 @@
<window>
- <defaultcontrol>120</defaultcontrol>
- <coordinates>
- <system>1</system>
- <posx>0</posx>
- <posy>0</posy>
- </coordinates>
- <animation effect="fade" time="250">WindowOpen</animation>
- <animation effect="fade" time="250">WindowClose</animation>
- <controls>
- <control type="group">
- <posx>0</posx>
- <posy>0</posy>
- <control type="image" id="101">
- <posx>0</posx>
- <posy>0</posy>
- <width>1280</width>
- <height>720</height>
- <texture border="40">default-panel-full.png</texture>
- </control>
-
- <control type="image" id="251">
- <description>page header tab icon</description>
- <posx>10</posx>
- <posy>4</posy>
- <width>1260</width>
- <height>80</height>
- <texture border="10">title-background.png</texture>
- </control>
- <control type="label" id="103">
- <description>textarea</description>
- <posx>20</posx>
- <posy>22</posy>
- <width>100</width>
- <height>40</height>
- <font>font18</font>
- <textcolor>white</textcolor>
- <aligny>center</aligny>
- <align>center</align>
- <label>Posts</label>
- <wrapmultiline>true</wrapmultiline>
- </control>
- <control type="button" id="201">
- <description>Post Reply</description>
- <onleft>202</onleft>
- <onright>200</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <posx>130</posx>
- <posy>30</posy>
- <width>135</width>
- <height>28</height>
- <visible>true</visible>
- <font>font12</font>
- <align>center</align>
- <aligny>center</aligny>
- <label>$LOCALIZE[SCRIPT3002]</label>
- <texturefocus border="10">FBbutton-focus.png</texturefocus>
- <texturenofocus border="10">FBbutton-nofocus.png</texturenofocus>
- <textcolor>FF000000</textcolor>
- </control>
-
- <control type="label" id="104">
- <description>Topic</description>
- <posx>280</posx>
- <posy>14</posy>
- <width>600</width>
- <height>60</height>
- <font>font18</font>
- <textcolor>white</textcolor>
- <aligny>center</aligny>
- <align>center</align>
- <wrapmultiline>true</wrapmultiline>
- </control>
-
- <control type="button" id="200">
- <description>The Button</description>
- <onleft>201</onleft>
- <onright>105</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <posx>885</posx>
- <posy>31</posy>
- <width>50</width>
- <height>27</height>
- <visible>true</visible>
- <colordiffuse>FFFFFFFF</colordiffuse>
- <font>font12</font>
- <align>right</align>
- <textcolor>FF000000</textcolor>
- <disabledcolor>20555555</disabledcolor>
- <textoffsetx>33</textoffsetx>
- <texturefocus>left-focus.png</texturefocus>
- <texturenofocus>left-nofocus.png</texturenofocus>
- </control>
- <control type="button" id="105">
- <description>Page Button</description>
- <posx>940</posx>
- <posy>29</posy>
- <width>230</width>
- <height>30</height>
- <onleft>200</onleft>
- <onright>106</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <font>font12</font>
- <textcolor>FF000000</textcolor>
- <aligny>center</aligny>
- <align>center</align>
- <texturefocus border="10">FBbutton-focus.png</texturefocus>
- <texturenofocus border="10">FBbutton-nofocus.png</texturenofocus>
- <visible>!Control.IsVisible(106)</visible>
- </control>
- <control type="button" id="106">
- <description>Stop Button</description>
- <posx>1025</posx>
- <posy>29</posy>
- <width>60</width>
- <height>30</height>
- <onleft>105</onleft>
- <onright>202</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <font>font12</font>
- <textcolor>FF000000</textcolor>
- <aligny>center</aligny>
- <align>center</align>
- <label>$LOCALIZE[SCRIPT3010]</label>
- <colordiffuse>FFFF0000</colordiffuse>
- <texturefocus border="10">FBbutton-focus.png</texturefocus>
- <texturenofocus border="10">FBbutton-nofocus.png</texturenofocus>
- </control>
- <control type="button" id="202">
- <description>The Button</description>
- <onleft>106</onleft>
- <onright>201</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <posx>1174</posx>
- <posy>31</posy>
- <width>50</width>
- <height>27</height>
- <visible>true</visible>
- <colordiffuse>FFFFFFFF</colordiffuse>
- <font>font12</font>
- <align>left</align>
- <textcolor>FF000000</textcolor>
- <disabledcolor>20555555</disabledcolor>
- <textoffsetx>4</textoffsetx>
- <texturefocus>right-focus.png</texturefocus>
- <texturenofocus>right-nofocus.png</texturenofocus>
- </control>
- <control type="button" id="110">
- <description>Close Button</description>
- <posx>1230</posx>
- <posy>15</posy>
- <width>32</width>
- <height>28</height>
- <texturefocus>close-button-focus.png</texturefocus>
- <texturenofocus>close-button.png</texturenofocus>
- <visible>system.getbool(input.enablemouse)</visible>
- <onclick>PreviousMenu</onclick>
- </control>
- <control type="image">
- <description>page header tab icon</description>
- <posx>10</posx>
- <posy>4</posy>
- <width>1260</width>
- <height>80</height>
- <texture>overlay.png</texture>
- </control>
-
- <control type="image" id="300">
- <posx>14</posx>
- <posy>86</posy>
- <width>1252</width>
- <height>2</height>
- <texture>TRseparator.png</texture>
- </control>
- <control type="image" id="310">
- <posx>14</posx>
- <posy>86</posy>
- <width>1</width>
- <height>2</height>
- <texture>progress.png</texture>
- </control>
- <control type="image" id="301">
- <posx>10</posx>
- <posy>387</posy>
- <width>1260</width>
- <height>2</height>
- <texture>TRseparator.png</texture>
- <visible>false</visible>
- </control>
- <control type="image" id="302">
- <posx>10</posx>
- <posy>604</posy>
- <width>1260</width>
- <height>2</height>
- <texture>TRseparator.png</texture>
- <visible>false</visible>
- </control>
-
- <control type="image" id="115">
- <description>listbg</description>
- <posx>15</posx>
- <posy>122</posy>
- <width>1066</width>
- <height>270</height>
- <colordiffuse>FF000000</colordiffuse>
- <texture>text-background.png</texture>
- <visible>false</visible>
- </control>
-
- <!-- ** Required ** Do not change <id> or <type> -->
- <control type="list" id="120">
- <posx>10</posx>
- <posy>90</posy>
- <width>1245</width>
- <height>626</height>
- <onleft>202</onleft>
- <onright>201</onright>
- <onup>120</onup>
- <ondown>120</ondown>
- <viewtype label="535">list</viewtype>
- <pagecontrol>121</pagecontrol>
- <scrolltime>200</scrolltime>
- <itemlayout height="100">
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>100</height>
- <texture border="10">text-background.png</texture>
- <visible>StringCompare(ListItem.Genre,light)</visible>
- <colordiffuse>A0FFFFFF</colordiffuse>
- </control>
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>100</height>
- <texture border="10">text-background.png</texture>
- <visible>StringCompare(ListItem.Genre,dark)</visible>
- <colordiffuse>AA000000</colordiffuse>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>4</posy>
- <width>175</width>
- <height>40</height>
- <font>font18</font>
- <aligny>center</aligny>
- <textcolor>white</textcolor>
- <selectedcolor>white</selectedcolor>
- <align>left</align>
- <info>ListItem.Label</info>
- <visible>StringCompare(ListItem.Director,)</visible>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>4</posy>
- <width>175</width>
- <height>40</height>
- <font>font18</font>
- <aligny>center</aligny>
- <textcolor>FF55FF55</textcolor>
- <selectedcolor>FF55FF55</selectedcolor>
- <align>left</align>
- <info>ListItem.Label</info>
- <visible>StringCompare(ListItem.Director,me)</visible>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>40</posy>
- <width>175</width>
- <height>30</height>
- <font>font12</font>
- <aligny>center</aligny>
- <textcolor>FFAAAAAA</textcolor>
- <selectedcolor>FFAAAAAA</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(status)</info>
- </control>
- <control type="label">
- <posx>210</posx>
- <posy>0</posy>
- <width>1025</width>
- <height>15</height>
- <font>font12</font>
- <aligny>left</aligny>
- <textcolor>FF222222</textcolor>
- <selectedcolor>green</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(date)</info>
- <visible>StringCompare(ListItem.Genre,light)</visible>
- </control>
- <control type="label">
- <posx>210</posx>
- <posy>0</posy>
- <width>1025</width>
- <height>15</height>
- <font>font12</font>
- <aligny>left</aligny>
- <textcolor>FFAAAAAA</textcolor>
- <selectedcolor>green</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(date)</info>
- <visible>StringCompare(ListItem.Genre,dark)</visible>
- </control>
- <control type="textbox">
- <posx>210</posx>
- <posy>15</posy>
- <width>1025</width>
- <height>55</height>
- <font>font12</font>
- <aligny>center</aligny>
- <textcolor>white</textcolor>
- <selectedcolor>white</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(message)</info>
- <visible>true</visible>
- <scroll>false</scroll>
- <wrapmultiline>true</wrapmultiline>
- </control>
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>100</height>
- <texture>overlay.png</texture>
- <visible>true</visible>
- </control>
- </itemlayout>
- <focusedlayout height="200">
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>200</height>
- <texture border="10">text-background-border.png</texture>
- <visible>true</visible>
- </control>
- <control type="image">
- <posx>144</posx>
- <posy>147</posy>
- <width>60</width>
- <height>25</height>
- <texture>triangle-outline.png</texture>
- <visible>true</visible>
- </control>
- <control type="image">
- <posx>144</posx>
- <posy>147</posy>
- <width>60</width>
- <height>25</height>
- <texture>triangle.png</texture>
- <visible>StringCompare(ListItem.Genre,dark)</visible>
- <colordiffuse>FF000000</colordiffuse>
- </control>
- <control type="image">
- <posx>144</posx>
- <posy>147</posy>
- <width>60</width>
- <height>25</height>
- <texture>triangle.png</texture>
- <visible>StringCompare(ListItem.Genre,light)</visible>
- <colordiffuse>FFFFFFFF</colordiffuse>
- </control>
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>200</height>
- <texture border="10">text-background-fade.png</texture>
- <visible>StringCompare(ListItem.Genre,light)</visible>
- <colordiffuse>FFFFFFFF</colordiffuse>
- </control>
- <control type="image">
- <posx>200</posx>
- <posy>0</posy>
- <width>1045</width>
- <height>200</height>
- <texture border="10">text-background-fade.png</texture>
- <visible>StringCompare(ListItem.Genre,dark)</visible>
- <colordiffuse>FF000000</colordiffuse>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>4</posy>
- <width>175</width>
- <height>40</height>
- <font>font18</font>
- <aligny>center</aligny>
- <textcolor>white</textcolor>
- <selectedcolor>white</selectedcolor>
- <align>left</align>
- <info>ListItem.Label</info>
- <visible>StringCompare(ListItem.Director,)</visible>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>4</posy>
- <width>175</width>
- <height>40</height>
- <font>font18</font>
- <aligny>center</aligny>
- <textcolor>FF55FF55</textcolor>
- <selectedcolor>FF55FF55</selectedcolor>
- <align>left</align>
- <info>ListItem.Label</info>
- <visible>StringCompare(ListItem.Director,me)</visible>
- </control>
- <control type="label">
- <posx>10</posx>
- <posy>40</posy>
- <width>175</width>
- <height>30</height>
- <font>font12</font>
- <aligny>center</aligny>
- <textcolor>FFAAAAAA</textcolor>
- <selectedcolor>FFAAAAAA</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(status)</info>
- </control>
- <control type="image">
- <posx>10</posx>
- <posy>68</posy>
- <width>128</width>
- <height>128</height>
- <texture
fallback="avatar-none.png">$INFO[ListItem.Property(avatar)]</texture>
- <aspectratio>keep</aspectratio>
- <visible>true</visible>
- </control>
- <control type="label">
- <posx>210</posx>
- <posy>0</posy>
- <width>1025</width>
- <height>15</height>
- <font>font12</font>
- <aligny>left</aligny>
- <textcolor>FF222222</textcolor>
- <selectedcolor>green</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(date)</info>
- <visible>StringCompare(ListItem.Genre,light)</visible>
- </control>
- <control type="label">
- <posx>210</posx>
- <posy>0</posy>
- <width>1025</width>
- <height>15</height>
- <font>font12</font>
- <aligny>left</aligny>
- <textcolor>FFAAAAAA</textcolor>
- <selectedcolor>green</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(date)</info>
- <visible>StringCompare(ListItem.Genre,dark)</visible>
- </control>
- <control type="textbox">
- <posx>210</posx>
- <posy>15</posy>
- <width>1025</width>
- <height>175</height>
- <font>font12</font>
- <aligny>center</aligny>
- <textcolor>white</textcolor>
- <selectedcolor>green</selectedcolor>
- <align>left</align>
- <info>ListItem.Property(message)</info>
- <visible>true</visible>
- </control>
- </focusedlayout>
- </control>
- <control type="group">
- <posx>1258</posx>
- <posy>90</posy>
- <control type="scrollbar" id="121">
- <description>scroll bar indicator for lists</description>
- <posx>0</posx>
- <posy>0</posy>
- <width>12</width>
- <height>626</height>
- <texturesliderbackground
border="6">default-scroll_back.png</texturesliderbackground>
- <texturesliderbar
border="6">default-scroll_mid.png</texturesliderbar>
- <texturesliderbarfocus
border="6">default-scroll_mid.png</texturesliderbarfocus>
- <textureslidernib>-</textureslidernib>
- <textureslidernibfocus>-</textureslidernibfocus>
- <orientation>vertical</orientation>
- <showonepage>false</showonepage>
- <visible>Control.IsVisible(120)</visible>
- </control>
- </control>
+ <defaultcontrol>120</defaultcontrol>
+ <coordinates>
+ <system>1</system>
+ <posx>0</posx>
+ <posy>0</posy>
+ </coordinates>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="250">WindowClose</animation>
+ <controls>
+ <control type="group">
+ <posx>0</posx>
+ <posy>0</posy>
+ <control type="image" id="101">
+ <posx>0</posx>
+ <posy>0</posy>
+ <width>1280</width>
+ <height>720</height>
+ <texture
border="40">default-panel-full.png</texture>
+ </control>
- </control>
- </controls>
+ <control type="image" id="251">
+ <description>page header tab icon</description>
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>1260</width>
+ <height>80</height>
+ <texture
border="10">title-background.png</texture>
+ </control>
+ <control type="label" id="103">
+ <description>textarea</description>
+ <posx>20</posx>
+ <posy>22</posy>
+ <width>100</width>
+ <height>40</height>
+ <font>font18</font>
+ <textcolor>white</textcolor>
+ <aligny>center</aligny>
+ <align>center</align>
+ <label>Posts</label>
+ <wrapmultiline>true</wrapmultiline>
+ </control>
+ <control type="button" id="201">
+ <description>Post Reply</description>
+ <onleft>202</onleft>
+ <onright>200</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <posx>130</posx>
+ <posy>30</posy>
+ <width>135</width>
+ <height>28</height>
+ <visible>true</visible>
+ <font>font12</font>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$LOCALIZE[SCRIPT3002]</label>
+ <texturefocus
border="10">FBbutton-focus.png</texturefocus>
+ <texturenofocus border="10">FBbutton-nofocus.png
+ </texturenofocus>
+ <textcolor>FF000000</textcolor>
+ </control>
+
+ <control type="label" id="104">
+ <description>Topic</description>
+ <posx>280</posx>
+ <posy>14</posy>
+ <width>600</width>
+ <height>60</height>
+ <font>font18</font>
+ <textcolor>white</textcolor>
+ <aligny>center</aligny>
+ <align>center</align>
+ <wrapmultiline>true</wrapmultiline>
+ </control>
+
+ <control type="button" id="200">
+ <description>The Button</description>
+ <onleft>201</onleft>
+ <onright>105</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <posx>885</posx>
+ <posy>31</posy>
+ <width>50</width>
+ <height>27</height>
+ <visible>true</visible>
+ <colordiffuse>FFFFFFFF</colordiffuse>
+ <font>font12</font>
+ <align>right</align>
+ <textcolor>FF000000</textcolor>
+ <disabledcolor>20555555</disabledcolor>
+ <textoffsetx>33</textoffsetx>
+ <texturefocus>left-focus.png</texturefocus>
+
<texturenofocus>left-nofocus.png</texturenofocus>
+ </control>
+ <control type="button" id="105">
+ <description>Page Button</description>
+ <posx>940</posx>
+ <posy>29</posy>
+ <width>230</width>
+ <height>30</height>
+ <onleft>200</onleft>
+ <onright>106</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <font>font12</font>
+ <textcolor>FF000000</textcolor>
+ <aligny>center</aligny>
+ <align>center</align>
+ <texturefocus
border="10">FBbutton-focus.png</texturefocus>
+ <texturenofocus border="10">FBbutton-nofocus.png
+ </texturenofocus>
+ <visible>!Control.IsVisible(106)</visible>
+ </control>
+ <control type="button" id="106">
+ <description>Stop Button</description>
+ <posx>1025</posx>
+ <posy>29</posy>
+ <width>60</width>
+ <height>30</height>
+ <onleft>105</onleft>
+ <onright>202</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <font>font12</font>
+ <textcolor>FF000000</textcolor>
+ <aligny>center</aligny>
+ <align>center</align>
+ <label>$LOCALIZE[SCRIPT3010]</label>
+ <colordiffuse>FFFF0000</colordiffuse>
+ <texturefocus
border="10">FBbutton-focus.png</texturefocus>
+ <texturenofocus border="10">FBbutton-nofocus.png
+ </texturenofocus>
+ </control>
+ <control type="button" id="202">
+ <description>The Button</description>
+ <onleft>106</onleft>
+ <onright>201</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <posx>1174</posx>
+ <posy>31</posy>
+ <width>50</width>
+ <height>27</height>
+ <visible>true</visible>
+ <colordiffuse>FFFFFFFF</colordiffuse>
+ <font>font12</font>
+ <align>left</align>
+ <textcolor>FF000000</textcolor>
+ <disabledcolor>20555555</disabledcolor>
+ <textoffsetx>4</textoffsetx>
+ <texturefocus>right-focus.png</texturefocus>
+
<texturenofocus>right-nofocus.png</texturenofocus>
+ </control>
+ <control type="button" id="110">
+ <description>Close Button</description>
+ <posx>1230</posx>
+ <posy>15</posy>
+ <width>32</width>
+ <height>28</height>
+
<texturefocus>close-button-focus.png</texturefocus>
+
<texturenofocus>close-button.png</texturenofocus>
+
<visible>system.getbool(input.enablemouse)</visible>
+ <onclick>PreviousMenu</onclick>
+ </control>
+ <control type="image">
+ <description>page header tab icon</description>
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>1260</width>
+ <height>80</height>
+ <texture>overlay.png</texture>
+ </control>
+
+ <control type="image" id="300">
+ <posx>14</posx>
+ <posy>86</posy>
+ <width>1252</width>
+ <height>2</height>
+ <texture>TRseparator.png</texture>
+ </control>
+ <control type="image" id="310">
+ <posx>14</posx>
+ <posy>86</posy>
+ <width>1</width>
+ <height>2</height>
+ <texture>progress.png</texture>
+ </control>
+ <control type="image" id="301">
+ <posx>10</posx>
+ <posy>387</posy>
+ <width>1260</width>
+ <height>2</height>
+ <texture>TRseparator.png</texture>
+ <visible>false</visible>
+ </control>
+ <control type="image" id="302">
+ <posx>10</posx>
+ <posy>604</posy>
+ <width>1260</width>
+ <height>2</height>
+ <texture>TRseparator.png</texture>
+ <visible>false</visible>
+ </control>
+
+ <control type="image" id="115">
+ <description>listbg</description>
+ <posx>15</posx>
+ <posy>122</posy>
+ <width>1066</width>
+ <height>270</height>
+ <colordiffuse>FF000000</colordiffuse>
+ <texture>text-background.png</texture>
+ <visible>false</visible>
+ </control>
+ </control>
+ <control type="group">
+ <posx>0</posx>
+ <posy>0</posy>
+ <!-- ** Required ** Do not change <id> or <type> -->
+ <control type="list" id="120">
+ <posx>10</posx>
+ <posy>90</posy>
+ <width>1245</width>
+ <height>626</height>
+ <onleft>202</onleft>
+ <onright>201</onright>
+ <onup>120</onup>
+ <ondown>120</ondown>
+ <viewtype label="535">list</viewtype>
+ <pagecontrol>121</pagecontrol>
+ <scrolltime>200</scrolltime>
+ <itemlayout height="100">
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>100</height>
+ <texture
border="10">text-background.png</texture>
+
<visible>StringCompare(ListItem.Genre,light)</visible>
+
<colordiffuse>A0FFFFFF</colordiffuse>
+ </control>
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>100</height>
+ <texture
border="10">text-background.png</texture>
+
<visible>StringCompare(ListItem.Genre,dark)</visible>
+
<colordiffuse>AA000000</colordiffuse>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>175</width>
+ <height>40</height>
+ <font>font18</font>
+ <aligny>center</aligny>
+ <textcolor>white</textcolor>
+
<selectedcolor>white</selectedcolor>
+ <align>left</align>
+ <info>ListItem.Label</info>
+
<visible>StringCompare(ListItem.Director,)</visible>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>175</width>
+ <height>40</height>
+ <font>font18</font>
+ <aligny>center</aligny>
+ <textcolor>FF55FF55</textcolor>
+
<selectedcolor>FF55FF55</selectedcolor>
+ <align>left</align>
+ <info>ListItem.Label</info>
+
<visible>StringCompare(ListItem.Director,me)</visible>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>40</posy>
+ <width>175</width>
+ <height>30</height>
+ <font>font12</font>
+ <aligny>center</aligny>
+ <textcolor>FFAAAAAA</textcolor>
+
<selectedcolor>FFAAAAAA</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(status)</info>
+ </control>
+ <control type="label">
+ <posx>210</posx>
+ <posy>0</posy>
+ <width>1025</width>
+ <height>15</height>
+ <font>font12</font>
+ <aligny>left</aligny>
+ <textcolor>FF222222</textcolor>
+
<selectedcolor>green</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(date)</info>
+
<visible>StringCompare(ListItem.Genre,light)</visible>
+ </control>
+ <control type="label">
+ <posx>210</posx>
+ <posy>0</posy>
+ <width>1025</width>
+ <height>15</height>
+ <font>font12</font>
+ <aligny>left</aligny>
+ <textcolor>FFAAAAAA</textcolor>
+
<selectedcolor>green</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(date)</info>
+
<visible>StringCompare(ListItem.Genre,dark)</visible>
+ </control>
+ <control type="textbox">
+ <posx>210</posx>
+ <posy>15</posy>
+ <width>1025</width>
+ <height>55</height>
+ <font>font12</font>
+ <aligny>center</aligny>
+ <textcolor>white</textcolor>
+
<selectedcolor>white</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(message)</info>
+ <visible>true</visible>
+ <scroll>false</scroll>
+
<wrapmultiline>true</wrapmultiline>
+ </control>
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>100</height>
+ <texture>overlay.png</texture>
+ <visible>true</visible>
+ </control>
+ </itemlayout>
+ <focusedlayout height="200">
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>200</height>
+ <texture
border="10">text-background-border.png</texture>
+ <visible>true</visible>
+ </control>
+ <control type="image">
+ <posx>144</posx>
+ <posy>147</posy>
+ <width>60</width>
+ <height>25</height>
+
<texture>triangle-outline.png</texture>
+ <visible>true</visible>
+ </control>
+ <control type="image">
+ <posx>144</posx>
+ <posy>147</posy>
+ <width>60</width>
+ <height>25</height>
+ <texture>triangle.png</texture>
+
<visible>StringCompare(ListItem.Genre,dark)</visible>
+
<colordiffuse>FF000000</colordiffuse>
+ </control>
+ <control type="image">
+ <posx>144</posx>
+ <posy>147</posy>
+ <width>60</width>
+ <height>25</height>
+ <texture>triangle.png</texture>
+
<visible>StringCompare(ListItem.Genre,light)</visible>
+
<colordiffuse>FFFFFFFF</colordiffuse>
+ </control>
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>200</height>
+ <texture
border="10">text-background-fade.png</texture>
+
<visible>StringCompare(ListItem.Genre,light)</visible>
+
<colordiffuse>FFFFFFFF</colordiffuse>
+ </control>
+ <control type="image">
+ <posx>200</posx>
+ <posy>0</posy>
+ <width>1045</width>
+ <height>200</height>
+ <texture
border="10">text-background-fade.png</texture>
+
<visible>StringCompare(ListItem.Genre,dark)</visible>
+
<colordiffuse>FF000000</colordiffuse>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>175</width>
+ <height>40</height>
+ <font>font18</font>
+ <aligny>center</aligny>
+ <textcolor>white</textcolor>
+
<selectedcolor>white</selectedcolor>
+ <align>left</align>
+ <info>ListItem.Label</info>
+
<visible>StringCompare(ListItem.Director,)</visible>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>4</posy>
+ <width>175</width>
+ <height>40</height>
+ <font>font18</font>
+ <aligny>center</aligny>
+ <textcolor>FF55FF55</textcolor>
+
<selectedcolor>FF55FF55</selectedcolor>
+ <align>left</align>
+ <info>ListItem.Label</info>
+
<visible>StringCompare(ListItem.Director,me)</visible>
+ </control>
+ <control type="label">
+ <posx>10</posx>
+ <posy>40</posy>
+ <width>175</width>
+ <height>30</height>
+ <font>font12</font>
+ <aligny>center</aligny>
+ <textcolor>FFAAAAAA</textcolor>
+
<selectedcolor>FFAAAAAA</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(status)</info>
+ </control>
+ <control type="image">
+ <posx>10</posx>
+ <posy>68</posy>
+ <width>128</width>
+ <height>128</height>
+ <texture
fallback="avatar-none.png">$INFO[ListItem.Property(avatar)]
+ </texture>
+ <aspectratio>keep</aspectratio>
+ <visible>true</visible>
+ </control>
+ <control type="label">
+ <posx>210</posx>
+ <posy>0</posy>
+ <width>1025</width>
+ <height>15</height>
+ <font>font12</font>
+ <aligny>left</aligny>
+ <textcolor>FF222222</textcolor>
+
<selectedcolor>green</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(date)</info>
+
<visible>StringCompare(ListItem.Genre,light)</visible>
+ </control>
+ <control type="label">
+ <posx>210</posx>
+ <posy>0</posy>
+ <width>1025</width>
+ <height>15</height>
+ <font>font12</font>
+ <aligny>left</aligny>
+ <textcolor>FFAAAAAA</textcolor>
+
<selectedcolor>green</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(date)</info>
+
<visible>StringCompare(ListItem.Genre,dark)</visible>
+ </control>
+ <control type="textbox">
+ <posx>210</posx>
+ <posy>15</posy>
+ <width>1025</width>
+ <height>175</height>
+ <font>font12</font>
+ <aligny>center</aligny>
+ <textcolor>white</textcolor>
+
<selectedcolor>green</selectedcolor>
+ <align>left</align>
+
<info>ListItem.Property(message)</info>
+ <visible>true</visible>
+ </control>
+ </focusedlayout>
+ </control>
+ <control type="group">
+ <posx>1258</posx>
+ <posy>90</posy>
+ <control type="scrollbar" id="121">
+ <description>scroll bar indicator for
lists</description>
+ <posx>0</posx>
+ <posy>0</posy>
+ <width>12</width>
+ <height>626</height>
+ <texturesliderbackground
border="6">default-scroll_back.png
+ </texturesliderbackground>
+ <texturesliderbar
border="6">default-scroll_mid.png
+ </texturesliderbar>
+ <texturesliderbarfocus
border="6">default-scroll_mid.png
+ </texturesliderbarfocus>
+ <textureslidernib>-</textureslidernib>
+
<textureslidernibfocus>-</textureslidernibfocus>
+ <orientation>vertical</orientation>
+ <showonepage>false</showonepage>
+
<visible>Control.IsVisible(120)</visible>
+ </control>
+ </control>
+
+ </control>
+ </controls>
</window>
-----------------------------------------------------------------------
Summary of changes:
script.forum.browser/addon.xml | 6 +-
script.forum.browser/changelog.txt | 6 +-
script.forum.browser/default.py | 51 +-
script.forum.browser/forums/forum.xbmc.org | 9 +-
script.forum.browser/icon.png | Bin 37259 -> 41952 bytes
script.forum.browser/mechanize/__init__.py | 211 --
script.forum.browser/mechanize/_auth.py | 68 -
script.forum.browser/mechanize/_clientcookie.py | 1725 ----------
script.forum.browser/mechanize/_debug.py | 28 -
.../mechanize/_firefox3cookiejar.py | 248 --
script.forum.browser/mechanize/_form.py | 3282 --------------------
script.forum.browser/mechanize/_gzip.py | 105 -
script.forum.browser/mechanize/_headersutil.py | 241 --
script.forum.browser/mechanize/_html.py | 632 ----
script.forum.browser/mechanize/_http.py | 447 ---
script.forum.browser/mechanize/_lwpcookiejar.py | 185 --
script.forum.browser/mechanize/_markupbase.py | 393 ---
script.forum.browser/mechanize/_mechanize.py | 669 ----
.../mechanize/_mozillacookiejar.py | 161 -
script.forum.browser/mechanize/_msiecookiejar.py | 388 ---
script.forum.browser/mechanize/_opener.py | 442 ---
script.forum.browser/mechanize/_pullparser.py | 391 ---
script.forum.browser/mechanize/_request.py | 40 -
script.forum.browser/mechanize/_response.py | 525 ----
script.forum.browser/mechanize/_rfc3986.py | 245 --
script.forum.browser/mechanize/_sgmllib_copy.py | 559 ----
script.forum.browser/mechanize/_sockettimeout.py | 6 -
script.forum.browser/mechanize/_testcase.py | 162 -
script.forum.browser/mechanize/_urllib2.py | 50 -
script.forum.browser/mechanize/_urllib2_fork.py | 1414 ---------
script.forum.browser/mechanize/_useragent.py | 367 ---
script.forum.browser/mechanize/_util.py | 305 --
script.forum.browser/mechanize/_version.py | 2 -
script.forum.browser/resources/.DS_Store | Bin 6148 -> 0 bytes
.../Default/720p/script-forumbrowser-replies.xml | 1000 +++---
35 files changed, 541 insertions(+), 13822 deletions(-)
delete mode 100644 script.forum.browser/mechanize/__init__.py
delete mode 100644 script.forum.browser/mechanize/_auth.py
delete mode 100644 script.forum.browser/mechanize/_clientcookie.py
delete mode 100644 script.forum.browser/mechanize/_debug.py
delete mode 100644 script.forum.browser/mechanize/_firefox3cookiejar.py
delete mode 100644 script.forum.browser/mechanize/_form.py
delete mode 100644 script.forum.browser/mechanize/_gzip.py
delete mode 100644 script.forum.browser/mechanize/_headersutil.py
delete mode 100644 script.forum.browser/mechanize/_html.py
delete mode 100644 script.forum.browser/mechanize/_http.py
delete mode 100644 script.forum.browser/mechanize/_lwpcookiejar.py
delete mode 100644 script.forum.browser/mechanize/_markupbase.py
delete mode 100644 script.forum.browser/mechanize/_mechanize.py
delete mode 100644 script.forum.browser/mechanize/_mozillacookiejar.py
delete mode 100644 script.forum.browser/mechanize/_msiecookiejar.py
delete mode 100644 script.forum.browser/mechanize/_opener.py
delete mode 100644 script.forum.browser/mechanize/_pullparser.py
delete mode 100644 script.forum.browser/mechanize/_request.py
delete mode 100644 script.forum.browser/mechanize/_response.py
delete mode 100644 script.forum.browser/mechanize/_rfc3986.py
delete mode 100644 script.forum.browser/mechanize/_sgmllib_copy.py
delete mode 100644 script.forum.browser/mechanize/_sockettimeout.py
delete mode 100644 script.forum.browser/mechanize/_testcase.py
delete mode 100644 script.forum.browser/mechanize/_urllib2.py
delete mode 100644 script.forum.browser/mechanize/_urllib2_fork.py
delete mode 100644 script.forum.browser/mechanize/_useragent.py
delete mode 100644 script.forum.browser/mechanize/_util.py
delete mode 100644 script.forum.browser/mechanize/_version.py
delete mode 100644 script.forum.browser/resources/.DS_Store
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons