Personal Video Database

English => Feature Suggestions => Topic started by: Zacca on April 18, 2010, 05:05:58 pm

Title: Improve the edit mode skin
Post by: Zacca on April 18, 2010, 05:05:58 pm
In a skin like Zwhite there is something don't work fine in the edit mode...
1)There should be a size for the boxes like ID or Year only in the edit mode...example:the box of the ID is as great as that of Title
2)When i have to add manually a new movie i don't have references where write the title..i think the "permanent" would have the attribute "s" for
skin - "e" for editmode and "b" for both so i can put a new line before the title's line where i write ---ID---TITLE---YEAR---COUNTRY

Thanks
Title: Re: Improve the edit mode skin
Post by: rick.ca on April 18, 2010, 11:41:50 pm
Quote
1)There should be a size for the boxes like ID or Year only in the edit mode.

I suppose that might make things easier, but it's currently controlled using the width attribute. For example, the following code displays three short fields in one row (see attached screenshot)...

Code: [Select]
<row>
<column>
<label permanent="true" width="132" halign="right">
 <caption>Type:</caption>
 </label>
 <spacer width="7"/>
 <custom width="175" field="Work type"/>     //Width of "Type" set to 175
 </column>
<column>
<label width="75" halign="right">
 <caption>Film:</caption>
 </label>
 <spacer width="7"/>
 <custom field="Color type"/>     //"Color type" fills available space between "Type" and "Year"
 </column>
<column width="75" halign="right">
 <fieldlabel field="year"/>
 </column>
<column width="100">     //Width of "Year" set to 100
 <year/>
 </column>
 </row>

Quote
2)When i have to add manually a new movie i don't have references where write the title.

Good idea! But just for the fun of it, here's a workaround...

Code: [Select]
<row>
<column>
<label permanent="false">
 <caption>Title:</caption>
 </label>
 <spacer width="450"/>
 <custom field=".dummy" width="1"/>
 </column>
 </row>

".dummy" is an actual custom field used only for the purpose of creating captions in skins. Because there is no data in the field and the permanent attribute is set to "false," it shows only in edit mode. I've placed this above the fields that otherwise have no captions.


[attachment deleted by admin]
Title: Re: Improve the edit mode skin
Post by: Zacca on April 19, 2010, 12:04:05 pm
1)The "first line of Zwhite is...

Code: [Select]
<!--V Title -->
<row>
<column space="10" wordwrap="false">
<num autosize="true">
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </num>
<title autosize="true">
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </title>
<label>
 <caption>(</caption>
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </label>
<year autosize="true">
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </year>
<label>
 <caption>)</caption>
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </label>
<country autosize="true" linkcolor1="$000000" linkcolor2="$222222">
<font>
 <size>18</size>
 <name>Arial black</name>
 <color>$000000</color>
 <bold/>
 </font>
 </country>
 </column>
 </row>
<row>

The field ID-Title-Year-Country have the attribute autosize, if i put the width the autosize don't work and the words of the line have a wrong space.



2)I write this code...

Code: [Select]
<!--V Title EM
 -->
<row>
<column space="10">
<label permanent="false">
 <caption>ID</caption>
 </label>
<label>
 <caption>Title</caption>
 </label>
<label>
 <caption>Year</caption>
 </label>
<label>
 <caption>Country</caption>
 </label>
 </column>
 </row>

But if i set permanent=true i show the captions always, if i set permanent=false i don't show nothing.


ideas as a future solutions
1)autosize combined with width - the width so only work for the edit mode
2)the "permanent" would have the attribute "s" for skin - "e" for editmode and "b" for both (above mentioned)
Title: Re: Improve the edit mode skin
Post by: rick.ca on April 19, 2010, 06:06:31 pm
Quote
The field ID-Title-Year-Country have the attribute autosize, if i put the width the autosize don't work and the words of the line have a wrong space.

True, you can't use autosize and width at the same time. But I find it difficult to imagine why a different format is necessary in edit mode. I think the first line of Zwhite in edit mode, for example, looks fine. Giving the fields equal width is reasonable behaviour for autosized fields. I don't have any objection to your suggestion, but I don't think many would use it.

Quote
But if i set permanent=true i show the captions always, if i set permanent=false i don't show nothing.

True. That's why my workaround uses a dummy field. The permanence attribute only applies to a field. A label (by iteself) either exists or it doesn't.
Title: Re: Improve the edit mode skin
Post by: Zacca on April 19, 2010, 06:41:29 pm
Quote
True, you can't use autosize and width at the same time. But I find it difficult to imagine why a different format is necessary in edit mode. I think the first line of Zwhite in edit mode, for example, looks fine. Giving the fields equal width is reasonable behaviour for autosized fields. I don't have any objection to your suggestion, but I don't think many would use it.
Yes..it's not important..just for beauty  ;)



Quote
True. That's why my workaround uses a dummy field. The permanence attribute only applies to a field. A label (by iteself) either exists or it doesn't.

Code: [Select]
<row>
<column>
<label permanent="false">
 <caption>Title:</caption>
 </label>
 <spacer width="450"/>
 <custom field=".dummy" width="1"/>
 </column>
 </row>

In my .19 version seems not work
Title: Re: Improve the edit mode skin
Post by: rick.ca on April 19, 2010, 07:02:11 pm
Quote
...just for beauty

Well, in that case, I'd vote for the ability to change the colour of these edit-mode-only captions. That would be a great way to draw attention to the specific fields that are most likely to need editing (e.g., fields where the information must be added manually).

Quote
In my .19 version seems not work

Have you added .dummy as a custom field?
Title: Re: Improve the edit mode skin
Post by: Zacca on April 19, 2010, 08:16:10 pm
Quote
Well, in that case, I'd vote for the ability to change the colour of these edit-mode-only captions. That would be a great way to draw attention to the specific fields that are most likely to need editing (e.g., fields where the information must be added manually).
We wait for the news in the 2.x version  ;)

Quote
Have you added .dummy as a custom field?

it's official, put me in the list of the stupid  ;D
Title: Re: Improve the edit mode skin
Post by: rick.ca on April 19, 2010, 09:08:46 pm
Sorry, I thought calling it ".dummy" would help. ;D