MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2007-01-06, 21:23   #1 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Search Button

Okay, yesterday I downloaded Mediaportal, thought I'd play around with the source code so downloaded that. But I don't know what you're working on or anything, so this may be useless

First, a quick question:
When I run it as a debug in VS2005 I can't use my keyboard arrow keys to navigate (works in normally installed version). Any idea why?


In the version I got the search function appeared to be disabled (for the music section anyway). Not quite sure why but I decided to make my own. I sorted out the GUISMSInput control and combined it with a button to make a search control that turns into a textbox when you focus on it. you can enter a search term with keyboard or numpad/remote. (However this uses the given method of determining what you're using, which seems like quite a hack ). Using the already existing methods it updates the search as you type, not sure how fast that would be on a large list. If you mouse away from the control it keeps the search, showing what you entered on the button. If you delete what you entered it goes back to the folder you were looking at previously.

I've done a video of it here: http://wilco.34sp.com/mpsearchvid.html

(Potential) Bugs:
The code for determining if you're using a remote (and thus to use SMS input mode) looks ropey. (if you only press keys 0-9 it assumes you're using a remote, not sure what happens if you press another key on the remote).
I made a new layer section to draw the keypad onto to make sure its above the rest, as it seems you can only have 1 object drawing each layer? Potential bugs there
Needs skinning
Not sure how fast it is.

If you'd think it would be useful I can put together the files I've used. I'm not a great coder (just a small hobby), tho I've tried to stick to the guidelines.
Wilco is offline   Reply With Quote
Old 2007-01-06, 21:32   #2 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Oh, and it only search the by title, I was going to edit this to include artist, but I can't find your database structure. Where can I find this?
Wilco is offline   Reply With Quote
Old 2007-01-07, 00:17   #3 (permalink)
Portal Member
 
Join Date: Jan 2005
Posts: 184
Thanks: 1
Thanked 0 Times in 0 Posts


Default

hi,

it´s great i think .. i like your search. there could also be something like that in MYTV program-search. thank you

bye


wunschkind
wunschkind is offline   Reply With Quote
Old 2007-01-07, 02:00   #4 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 22
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Yeah, it uses the same searching routine as the Virtual Keyboard (which i found after i posted and went looking ) so its probably just about as simple as changing the skin and ~20 lines of code in each file. The bugs need looking at tho I think. TBH I like mine better (not biased ), How do you find the virtual keyboard? I'd find it easier to use the number keys on the remote SMS style. Also takes up less space.
Wilco is offline   Reply With Quote
Old 2007-01-07, 07:12   #5 (permalink)
 
infinityloop's Avatar
 
Join Date: Dec 2004
Location: 127.0.0.1
Age: 29
Posts: 6,408
Thanks: 183
Thanked 146 Times in 101 Posts

Country:

My System

Default

the sms-style input looks very nice
__________________
regards
chris

MediaPortal Project Coordinator
Test Team Leader

Do not start to moan if something is not working as you want it to be.
Remember that MediaPortal is Open Source.
YOU can improve it!
infinityloop is online now   Reply With Quote
Old 2007-01-07, 13:47   #6 (permalink)
rtv
Portal Developer
 
rtv's Avatar
 
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,765
Thanks: 130
Thanked 133 Times in 93 Posts

Country:

My System

Default

Please look at the scheduling in TVEngine3 there has just been implemented a SMS search as well - would be a pity to have another section using different code to achieve the same..

The search is disabled just in "shares" view.

Performance: Just make sure it doesn't start before the 3rd char is entered. The scenario as described above would stall MP for serveral minutes here

If you want help on integrating this just ask here - that's been on the list of mPod and me for quite some time now..
__________________
rtv is online now   Reply With Quote
Reply

Bookmarks

Tags
button, search

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] Unable to scan TV chanels and radio Bram pre 1.0 RC1 0 2006-11-05 14:45
T9 search in database views: Return button? GoldenEye General Support 4 2006-06-13 00:02
Issue with My TV, My Videos and Web Browser Efros The old Bugreport Forum 15 2006-05-15 22:01
cosmicmyth skin Anonymous Skins 17 2004-09-23 18:33
search button in tv guide Anonymous Improvement Suggestions 0 2004-05-17 07:39


All times are GMT +1. The time now is 21:10.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden