Subfolder Recurse restrictions

Developers forum for Univeral Media Server-related development (only for programmers)
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Subfolder Recurse restrictions

Post by DevlshOne »

Stolen from PMS, I think this is definitely something that needs to be looked at and added, if possible.
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Subfolder Recurse restrictions

Post by SubJunk »

Seems like a cool idea and should be easy to implement
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Re: Subfolder Recurse restrictions

Post by DevlshOne »

First JAVA-related question regarding the JGoodies lib.

So, what I'm thinking of trying is breaking up the "Shared Folders" area on that tab into separate "Recursive Shared Folders" and "Non-Recursive Shared Folders" areas (Split horizontally - 75% Recursive, 25% Non-recursive). The other alternative is to have a checkbox for each entry in the 'folders' array.

[NavigationShareTab.java]
It looks as if these are the row/col specs for the entire panel, right?

Code: Select all

private static final String PANEL_COL_SPEC = "left:pref, 50dlu, pref, 150dlu, pref, 25dlu, pref, 25dlu, pref, default:grow";
private static final String PANEL_ROW_SPEC = "p, 3dlu,  p, 3dlu, p, 3dlu,  p, 3dlu, p, 3dlu, p, 10dlu, p, 3dlu,  p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 10dlu, fill:default:grow";

private static final String SHARED_FOLDER_COL_SPEC = "left:pref, left:pref, pref, pref, pref, 0:grow";
private static final String SHARED_FOLDER_ROW_SPEC = "p, 3dlu, p, 3dlu, fill:default:grow";
Is this saying that the entire panel is 50 dialog units tall and 150 dialog units wide? What are the two 25 dlu entries?
And, if so, is the "Shared Folders" panel 3 dlu tall and 3 dlu wide?
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Subfolder Recurse restrictions

Post by SubJunk »

I think the best way to find answers to these and other questions will be to use Google and/or try changing values and seeing what effect the changes have :)
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Re: Subfolder Recurse restrictions

Post by DevlshOne »

SubJunk wrote:I think the best way to find answers to these and other questions will be to use Google and/or try changing values and seeing what effect the changes have :)
You are correct, sir. Changing the values and running debug shone the light on my DLU blues. :lol:

** EDIT **
Ok, maybe not. What has me stumped is why the PanelBuilder's column configuration is p,50dlu,p,150dlu,p,25dlu,p,25dlu,p. This indicates that there are 9 columns. I only count 3. Has this tab on the GUI gone through so many iterations that the current layout is just plastered onto a very old scheme?
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Subfolder Recurse restrictions

Post by SubJunk »

I count 10. The tickboxes, input box, labels, spacing between elements all have their own columns
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Re: Subfolder Recurse restrictions

Post by DevlshOne »

Yep, I got it now. I haven't quit, LOL. I've been working on the recursive folders bit and am revamping the Navigation Settings tab. I promise it will look good. :)

I've run into a new issue with JetBeans that I haven't seen yet (and I have had several successful test and builds):

Code: Select all

Error reading assemblies: No assembly descriptors found.
Anyone?
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Subfolder Recurse restrictions

Post by SubJunk »

I haven't seen that error before
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Re: Subfolder Recurse restrictions

Post by DevlshOne »

I ran the Maven resolve externals and it fixed it.
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
DevlshOne
Posts: 25
Joined: Tue Oct 23, 2012 6:01 am
Location: Georgia

Re: Subfolder Recurse restrictions

Post by DevlshOne »

Sorry guys, while I am sure I can work through the logic on this issue, the GUI is just too convoluted to iron out. I've been reading the JSGoodies API docs until my eyes cross and they still just don't make any sense. I've even tried downloading their "Skeleton" tool that allows you to build forms from scratch but it's of little to no use. If someone else is willing to work with me on the GUI, I'll gladly pound out the logic.
Server: WHS 2011 - AMD Athlon 2.8GHz {Black Edition} - 4GB PC2-6400 - 7TB
SELECT * FROM users WHERE clue IS NOT NULL; Results: 0 rows found
GO DAWGS! SEC East Champions, again!
Post Reply