Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Pressing LEFT to get to WPS from file root

Poll

Pressing LEFT to get to WPS from file root

I'm strongly against it for my own private personal reasons!
123 (62.1%)
I dont mind, I wouldnt use it
18 (9.1%)
I'm strongly against it for my own private personal reasons!
36 (18.2%)
I wish I could bake a cake made from rainbows and give everyone a piece.
21 (10.6%)

Total Members Voted: 186

« previous next »
  • Print
Pages: 1 2 [3] 4 5 ... 15

Author Topic: Pressing LEFT to get to WPS from file root  (Read 94593 times)

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #30 on: August 16, 2005, 05:41:17 PM »
Well, I asked someone nicely on the IRC channel and they made me a SMALL patch (only like 2 lines long) that does this for me... it works a treat.  I have asked for his permission if I can post it here, and if he says Yes, then I will :)
Logged

Offline Marcogringo

  • Member
  • *
  • Posts: 21
Re: Pressing LEFT to get to WPS from file root
« Reply #31 on: August 18, 2005, 08:04:46 AM »
I didn't read all the previous messages, but, here is my idea :

When u are in "browse screen" :
- "play" button : do the default action (like dubble clic on windows), so, it'll open a directrory, play a music file, ...
- "record" button : allow the switch between active screens (a bit like Alt + Tab on windows). If u are playing a song while browsing files and that u press this button on time, it print the WPS screen. An other pression will make u return to the "browse screen". If u are listenig to the radio while browsing, it'll be the same thing with WPrS (While Playing radio Screen).
After, we'll could extend this system, per example : if you are recording the radio. One press on "record" button will carry u out, from the WRS (While Recording Screen) to the WPrS. The next pression will carry u out to the "browse files" screen. The next pression will bring u back to the WRS.

What about this idea ?
Logged

Offline Marcogringo

  • Member
  • *
  • Posts: 21
Re: Pressing LEFT to get to WPS from file root
« Reply #32 on: August 18, 2005, 08:08:29 AM »
Maybe it would be better to use the "jostick clic" to do these screen switch....
Logged

Offline Marcogringo

  • Member
  • *
  • Posts: 21
Re: Pressing LEFT to get to WPS from file root
« Reply #33 on: August 25, 2005, 04:35:48 AM »
No reactions. Was my idea not clear ?
Logged

Offline kenshin

  • Member
  • *
  • Posts: 366
  • IRC Nick: kenshin
Re: Pressing LEFT to get to WPS from file root
« Reply #34 on: August 25, 2005, 12:05:32 PM »
I agree that the button layout needs rethinking and more consistency but the idea that one button will have one function regardless of what screen is active is ludicrous. Buttons should perform the most logical function on the current screen. Retooling buttons is not inherently bad if there's a logical layout on each screen. And frankly, using "play" to exit the menus back to the WPS seems stupid to me. I would prefer "stop" which to me says "stop browsing".

And voting for "favorite layouts" is, in my experience, at best a crapshoot. What makes most sense to one user will seem insanely stupid to another. Quite frankly, only a handful of users really understand the impact of changing how buttons are handled and which one performs which function on which screen. I've been using Rockbox for over 6 months. I've dug into the code and subitted patches. And I still don't know which buttons do what on half the screens I use.
Logged
kenshin/kawika/sithia

Offline TiMiD

  • Developer
  • Member
  • *
  • Posts: 168
Re: Pressing LEFT to get to WPS from file root
« Reply #35 on: August 26, 2005, 07:23:57 PM »
Quote from: kenshin on August 25, 2005, 12:05:32 PM
And voting for "favorite layouts" is, in my experience, at best a crapshoot. What makes most sense to one user will seem insanely stupid to another.
I totally agree
I'm convinced that the best thing would be to make the button's layout totally customisable with a config file in which you could associate an action with a key, a key combination, a short press / long press

Also, a feature that miss me the most when I'm using rockbox is the "skip to next/last directory" shortcut (short + long joypad key press or rec on the remote in the original fw)
Logged
Un programme C, c'est comme un ciel d'été : c'est plein d'étoiles !

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Pressing LEFT to get to WPS from file root
« Reply #36 on: August 26, 2005, 10:02:01 PM »
Timid--  I agree with you as to the folder skip idea and I posted it as a feature request last weekend--hopefully, someone will pick it up!

:)

I also think that the short+long press key combination is a great possibility that isn't being taken advantage of as an option, such as for the folder skip or to scroll through long lists--that assumes that Rockbox could use that combination, of course.
Logged

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #37 on: August 27, 2005, 04:28:51 AM »
Oh I forgot to post the patch that allows you to go from root to wps:

Code: [Select]
Index: tree.c
===================================================================
RCS file: /cvsroot/rockbox/apps/tree.c,v
retrieving revision 1.343
diff -u -b -r1.343 tree.c
--- tree.c 6 Jul 2005 22:57:54 -0000 1.343
+++ tree.c 16 Aug 2005 18:07:03 -0000
@@ -746,8 +746,10 @@
                     break;
                 }
 
-                if (!tc.dirlevel)
+                if (tc.dirlevel == 0) { /*root*/
+                    start_wps = true;
                     break;
+                }
 
                 if (id3db)
                     db_exit(&tc);
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Pressing LEFT to get to WPS from file root
« Reply #38 on: August 28, 2005, 06:51:37 PM »
Hmm--for some reason, doesn't work for me with today's build.
Logged

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #39 on: August 29, 2005, 02:00:09 AM »
It doesn't work after you have just unplugged the USB cable, and it boots to root.  It will only work when you end up going to root yourself. 
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Pressing LEFT to get to WPS from file root
« Reply #40 on: August 29, 2005, 08:54:30 AM »
Thnaks, but Hmm again:  I just booted up, started playing a tune, clicked the joystick to get to the root director, and moved the joystick to the left to get back to the WPS, and no go ...

I had copied the above text as is into a Notepad file and used that as a .patch; by any chance was I supposed to delete something (like the top header info.)?

Ah, well ....
« Last Edit: August 29, 2005, 09:02:57 AM by Mikerman »
Logged

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #41 on: August 29, 2005, 09:32:17 AM »
Try applying the patch manually!
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Pressing LEFT to get to WPS from file root
« Reply #42 on: August 29, 2005, 09:52:43 AM »
Thanks, and now you're REALLY testing my skills--I'm happy to be able to get CVS to work for me (or, better said, me to work for CVS) and to patch some files!

:)
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Pressing LEFT to get to WPS from file root
« Reply #43 on: August 29, 2005, 10:52:45 AM »
OK, Hshah, applied the patch manually and it worked great!  (Actually, I'm just relieved I didn't break the player.  ;) )

The left press really is intuitive--I had to think about what was different, it was so natural to use.  And it avoids having to move one's hand around to use the play/pause button--highly recommended for adoption!

:)

A couple of manual patching questions, from someone who doesn't do this (and so please forgive their basic nature):

--  In Windows Wordpad (which I used to edit the file), I get save document  choices of Text Document, Text Document - MS DOS Format, and Unicode Text Document (as well as Rich Text Format RTF)); I used the first, at which point I get a message about formatting not being saved--was this the correct format for saving?

--  In manually adding in the changes, are the spaces in each line important?  I tried to make everything look like the original above, including the blank spaces in each line and how the lines lined up, but wasn't sure that this was necessary.

And, thanks, again!

(edit:  And actually, a final question:  sometimes when I open a file in Windows Notepad, all the text is a run-on paragraph, with no line breaks; other times, the lines breaks are there.  Is there a rhyme or reason for this?  It doesn't seem to relate to Word Wrap for me.  Wordpad almost always seems to keep line breaks in.)
« Last Edit: August 29, 2005, 10:59:12 AM by Mikerman »
Logged

Offline kenshin

  • Member
  • *
  • Posts: 366
  • IRC Nick: kenshin
Re: Pressing LEFT to get to WPS from file root
« Reply #44 on: August 29, 2005, 11:06:27 AM »
Quote from: hshah on August 27, 2005, 04:28:51 AM
Oh I forgot to post the patch that allows you to go from root to wps:

Thanks for the patch, hshah. Now I'll know exactly what to change back in my personal builds if this ever goes into CVS.

Quote from: Mikerman on August 29, 2005, 10:52:45 AM
--  In manually adding in the changes, are the spaces in each line important?  I tried to make everything look like the original above, including the blank spaces in each line and how the lines lined up, but wasn't sure that this was necessary.

In general, extra whitespace in C code does nothing. If the whitespace is quoted then your output will be different. But if you're talking about leading or trailing whitespace have as much as you like.

Quote from: Mikerman on August 29, 2005, 10:52:45 AM
(edit: And actually, a final question: sometimes when I open a file in Windows Notepad, all the text is a run-on paragraph, with no line breaks; other times, the lines breaks are there. Is there a rhyme or reason for this? It doesn't seem to relate to Word Wrap for me. Wordpad almost always seems to keep line breaks in.)

The file you opened is using unix end of line markers (one character) and notepad only reads Windows end of line markers (two characters). Notepad is just being stupid.
Logged
kenshin/kawika/sithia

  • Print
Pages: 1 2 [3] 4 5 ... 15
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Pressing LEFT to get to WPS from file root
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.175 seconds with 26 queries.