icon update
							
								
								
									
										6
									
								
								Core.py
									
									
									
									
									
								
							
							
						
						@ -65,6 +65,9 @@ class Core:
 | 
				
			|||||||
        contextMenu = [(self.localize('Search Control Window'),
 | 
					        contextMenu = [(self.localize('Search Control Window'),
 | 
				
			||||||
                'xbmc.RunScript(%s,)' % os.path.join(ROOT, 'controlcenter.py'))]
 | 
					                'xbmc.RunScript(%s,)' % os.path.join(ROOT, 'controlcenter.py'))]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        self.drawItem('< %s >' % self.localize('Search Window') + ' (BETA)', 'searchWindow',
 | 
				
			||||||
 | 
					                      image=self.ROOT + '/icons/kodi.png', isFolder=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if self.history_bool:
 | 
					        if self.history_bool:
 | 
				
			||||||
            HistorycontextMenu=[]
 | 
					            HistorycontextMenu=[]
 | 
				
			||||||
            HistorycontextMenu.extend(contextMenu)
 | 
					            HistorycontextMenu.extend(contextMenu)
 | 
				
			||||||
@ -84,9 +87,6 @@ class Core:
 | 
				
			|||||||
        DLScontextMenu.append(
 | 
					        DLScontextMenu.append(
 | 
				
			||||||
                (self.localize('Clear %s') % self.localize('Download Status'), ListString % ('DownloadStatus', 'clear', 'addtime', '')))
 | 
					                (self.localize('Clear %s') % self.localize('Download Status'), ListString % ('DownloadStatus', 'clear', 'addtime', '')))
 | 
				
			||||||
        DLScontextMenu.extend(contextMenu)
 | 
					        DLScontextMenu.extend(contextMenu)
 | 
				
			||||||
        if self.debug:
 | 
					 | 
				
			||||||
            self.drawItem('< %s >' % self.localize('Search Window'), 'searchWindow',
 | 
					 | 
				
			||||||
                          image=self.ROOT + '/icons/settings.png', isFolder=False)
 | 
					 | 
				
			||||||
        self.drawItem('< %s >' % self.localize('Download Status'), 'DownloadStatus', image=self.ROOT + '/icons/download.png',
 | 
					        self.drawItem('< %s >' % self.localize('Download Status'), 'DownloadStatus', image=self.ROOT + '/icons/download.png',
 | 
				
			||||||
                      contextMenu=DLScontextMenu, replaceMenu=False)
 | 
					                      contextMenu=DLScontextMenu, replaceMenu=False)
 | 
				
			||||||
        self.drawItem('< %s >' % self.localize('Torrent-client Browser'), 'uTorrentBrowser',
 | 
					        self.drawItem('< %s >' % self.localize('Torrent-client Browser'), 'uTorrentBrowser',
 | 
				
			||||||
 | 
				
			|||||||
@ -290,7 +290,7 @@ def localize(text):
 | 
				
			|||||||
            'Play (from %s)':'Reproducir (desde %s)',
 | 
					            'Play (from %s)':'Reproducir (desde %s)',
 | 
				
			||||||
            'Play (from start)':'Reproducir (desde el inicio)',
 | 
					            'Play (from start)':'Reproducir (desde el inicio)',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
	 'he': {
 | 
						    'he': {
 | 
				
			||||||
            'Seeds searching.': 'חיפוש זורעים',
 | 
					            'Seeds searching.': 'חיפוש זורעים',
 | 
				
			||||||
            'Please Wait': 'המתן',
 | 
					            'Please Wait': 'המתן',
 | 
				
			||||||
            'Information': 'מידע',
 | 
					            'Information': 'מידע',
 | 
				
			||||||
@ -809,6 +809,7 @@ def localize(text):
 | 
				
			|||||||
            'Play (from start)':'Lejátszás (az elejétől)',
 | 
					            'Play (from start)':'Lejátszás (az elejétől)',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        'ru': {
 | 
					        'ru': {
 | 
				
			||||||
 | 
					            'Search Window': 'Окно поиска',
 | 
				
			||||||
            'Seeds searching.': 'Идёт поиск сидов.',
 | 
					            'Seeds searching.': 'Идёт поиск сидов.',
 | 
				
			||||||
            'Please Wait': 'Подождите',
 | 
					            'Please Wait': 'Подождите',
 | 
				
			||||||
            'Information': 'Информация',
 | 
					            'Information': 'Информация',
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								icons/kodi.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 23 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/fcontrolcenter.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 17 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/fdownloadstatus.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 8.9 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/fhistory.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 16 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/fkeyboard.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/fsearch.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 8.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/ftorrentclient.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nfcontrolcenter.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 17 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nfdownloadstatus.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 8.9 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nfhistory.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 17 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nfkeyboard.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nfsearch.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 9.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								icons/searchwindow/nftorrentclient.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.7 KiB  | 
@ -64,26 +64,33 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.history()
 | 
					            self.history()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def icon(self, icon):
 | 
					    icon = __root__+'/icons/searchwindow/%s.png'
 | 
				
			||||||
        return '%s/icons/%s.png' %(__root__, icon)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def set_controls(self):
 | 
					    def set_controls(self):
 | 
				
			||||||
        self.background.setImage('%s/icons/%s.png' %(__root__, 'ContentPanel'))
 | 
					        self.background.setImage('%s/icons/%s.png' %(__root__, 'ContentPanel'))
 | 
				
			||||||
        self.input_search = pyxbmct.Edit("", _alignment=pyxbmct.ALIGN_CENTER_X | pyxbmct.ALIGN_CENTER_Y)
 | 
					 | 
				
			||||||
        self.placeControl(self.input_search, 0, 0, 1, 5)
 | 
					 | 
				
			||||||
        self.button_search = pyxbmct.Button("Search")
 | 
					 | 
				
			||||||
        self.placeControl(self.button_search, 0, 5, 1, 2)
 | 
					 | 
				
			||||||
        self.button_history = pyxbmct.Button("History")
 | 
					 | 
				
			||||||
        self.placeControl(self.button_history, 0, 7, 1, 2)
 | 
					 | 
				
			||||||
        self.button_controlcenter = pyxbmct.Button("Control\r\nCenter")
 | 
					 | 
				
			||||||
        self.placeControl(self.button_controlcenter, 0, 9, 1, 2)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        #Top menu
 | 
				
			||||||
 | 
					        self.button_downloadstatus = pyxbmct.Button("OFF", textColor = '0xFF0000FF', focusTexture = self.icon % 'fdownloadstatus', noFocusTexture = self.icon % 'nfdownloadstatus')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_downloadstatus, 0, 2, 1, 1)
 | 
				
			||||||
 | 
					        self.button_torrentclient = pyxbmct.Button("OFF", textColor = '0xFF0000FF', focusTexture = self.icon % 'ftorrentclient', noFocusTexture = self.icon % 'nftorrentclient')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_torrentclient, 0, 3, 1, 1)
 | 
				
			||||||
 | 
					        self.button_keyboard = pyxbmct.Button("", focusTexture = self.icon % 'fkeyboard', noFocusTexture = self.icon % 'nfkeyboard')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_keyboard, 0, 4, 1, 1)
 | 
				
			||||||
 | 
					        self.input_search = pyxbmct.Edit("", _alignment=pyxbmct.ALIGN_CENTER_X | pyxbmct.ALIGN_CENTER_Y)
 | 
				
			||||||
 | 
					        self.placeControl(self.input_search, 0, 5, 1, 5)
 | 
				
			||||||
 | 
					        self.button_search = pyxbmct.Button("", focusTexture = self.icon % 'fsearch', noFocusTexture = self.icon % 'nfsearch')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_search, 0, 10, 1, 1)
 | 
				
			||||||
 | 
					        self.button_history = pyxbmct.Button("", focusTexture = self.icon % 'fhistory', noFocusTexture = self.icon % 'nfhistory')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_history, 0, 11, 1, 1)
 | 
				
			||||||
 | 
					        self.button_controlcenter = pyxbmct.Button("", focusTexture = self.icon % 'fcontrolcenter', noFocusTexture = self.icon % 'nfcontrolcenter')
 | 
				
			||||||
 | 
					        self.placeControl(self.button_controlcenter, 0, 12, 1, 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        #Main
 | 
				
			||||||
        self.listing = pyxbmct.List(_imageWidth=60, _imageHeight=60, _itemTextXOffset=1,
 | 
					        self.listing = pyxbmct.List(_imageWidth=60, _imageHeight=60, _itemTextXOffset=1,
 | 
				
			||||||
                                    _itemTextYOffset=0, _itemHeight=60, _space=0, _alignmentY=4)
 | 
					                                    _itemTextYOffset=0, _itemHeight=60, _space=0, _alignmentY=4)
 | 
				
			||||||
        self.placeControl(self.listing, 1, 0, 8, 14)
 | 
					        self.placeControl(self.listing, 1, 0, 8, 14)
 | 
				
			||||||
        self.logoimg = pyxbmct.Image(__root__ + '/icons/fav.png')
 | 
					 | 
				
			||||||
        self.placeControl(self.logoimg, 200, 300, 1, 5)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        #Right menu
 | 
				
			||||||
        self.right_menu()
 | 
					        self.right_menu()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def connect_controls(self):
 | 
					    def connect_controls(self):
 | 
				
			||||||
@ -100,11 +107,15 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def set_navigation(self):
 | 
					    def set_navigation(self):
 | 
				
			||||||
        #Top menu
 | 
					        #Top menu
 | 
				
			||||||
        self.input_search.setNavigation(self.listing, self.listing, self.last_right_button, self.button_search)
 | 
					        self.button_downloadstatus.setNavigation(self.listing, self.listing, self.last_right_button, self.button_torrentclient)
 | 
				
			||||||
 | 
					        self.button_torrentclient.setNavigation(self.listing, self.listing, self.button_downloadstatus, self.button_keyboard)
 | 
				
			||||||
 | 
					        self.button_keyboard.setNavigation(self.listing, self.listing, self.button_torrentclient, self.input_search)
 | 
				
			||||||
 | 
					        self.input_search.setNavigation(self.listing, self.listing, self.button_keyboard, self.button_search)
 | 
				
			||||||
        self.button_search.setNavigation(self.listing, self.listing, self.input_search, self.button_history)
 | 
					        self.button_search.setNavigation(self.listing, self.listing, self.input_search, self.button_history)
 | 
				
			||||||
        self.button_history.setNavigation(self.listing, self.listing, self.button_search, self.button_controlcenter)
 | 
					        self.button_history.setNavigation(self.listing, self.listing, self.button_search, self.button_controlcenter)
 | 
				
			||||||
        self.button_controlcenter.setNavigation(self.listing, self.listing, self.button_history, self.last_right_button)
 | 
					        self.button_controlcenter.setNavigation(self.listing, self.listing, self.button_history, self.last_right_button)
 | 
				
			||||||
        #Listing
 | 
					
 | 
				
			||||||
 | 
					        #Main
 | 
				
			||||||
        self.listing.setNavigation(self.input_search, self.input_search, self.input_search, self.last_right_button)
 | 
					        self.listing.setNavigation(self.input_search, self.input_search, self.input_search, self.last_right_button)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if self.listing.size():
 | 
					        if self.listing.size():
 | 
				
			||||||
@ -430,7 +441,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def controlCenter(self, params={}):
 | 
					    def controlCenter(self, params={}):
 | 
				
			||||||
        import controlcenter
 | 
					        import controlcenter
 | 
				
			||||||
        controlcenter.main(params)
 | 
					        controlcenter.main()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def reconnect(self, event, callable):
 | 
					    def reconnect(self, event, callable):
 | 
				
			||||||
        self.disconnect(event)
 | 
					        self.disconnect(event)
 | 
				
			||||||
 | 
				
			|||||||