Hello,

 

instead of compiling new sources why not export the tournament data in XML
with reference to a default stylesheet. Then anybody can update the
stylesheet to create his own visual format without changing compiled code.

 

                Gerd

 

 

 

Von: Steven [mailto:stevena...@yahoo.com] 
Gesendet: Sonntag, 21. März 2010 08:53
An: stephane plop
Cc: scid-users@lists.sourceforge.net
Betreff: Re: [Scid-users] Tournament grid

 


Is this what you wanted ? I can't test the row functionality without your
css.
You'll have to compile Scid yourself though :<

Attached is an altered crosstab.cpp. Place it in the src directory, or you
can make 
the changes yourself: Lines to replace begin with a single '-', lines to add
begin with 
a single '+'

S.A.

--- src/crosstab.cpp.orig       2010-03-21 17:26:13.000000000 +1000


+++ src/crosstab.cpp    2010-03-21 17:26:13.000000000 +1000


@@ -533,10 +533,10 @@


if (OutputFormat == CROSSTABLE_Html) {


StartTable = "n<p><table border=1 cellspacing=0 cellpadding=4>n";


EndTable = "n";


-        StartRow = "<tr>";


+        StartRow = "<tr class=\"MyRowstyle\">";


EndRow = "";


NewLine = "n";


-        BlankRowLine = "<tr>n";


+        BlankRowLine = "<tr
 class=\"MyRowstyle\">n";


StartCol = "<td>";


EndCol = "";


StartRightCol = "<td align=right>";


@@ -731,7 +731,7 @@


dstr->Append (stemp);


}


if (PrintRatings) {


-        dstr->Append (StartBoldCol, " Rtng", EndBoldCol);


+        dstr->Append (StartBoldCol, " rating", EndBoldCol);


}


if (PrintTitles) {


dstr->Append (StartBoldCol, "    ", EndBoldCol);


@@ -898,7 +898,7 @@


dstr->Append (stemp);


}


if (PrintRatings) {


-        dstr->Append (StartBoldCol, " Rtng", EndBoldCol);


+        dstr->Append (StartBoldCol, " rating", EndBoldCol);


}


if (PrintTitles) {


dstr->Append (StartBoldCol, "    ", EndBoldCol);



--- On Sat, 20/3/10, stephane plop <stephane_...@hotmail.fr> wrote:


From: stephane plop <stephane_...@hotmail.fr>
Subject: RE: [Scid-users] Tournament grid
To: stevena...@yahoo.com
Cc: scid-users@lists.sourceforge.net
Received: Saturday, 20 March, 2010, 9:27 PM



> Date: Fri, 19 Mar 2010 17:10:32 -0700
> From: stevena...@yahoo.com
> Subject: Re: [Scid-users] Tournament grid
> To: stephane_...@hotmail.fr
> CC: scid-users@lists.sourceforge.net
> 
> What do your html changes look like ?
> 

Hello,

I'm using  a CSS, so the changes look like :
<tr> => <tr class="MyRowstyle">

I also change change the content of the <th></th> tags, to translate it
("Player" and "rating").


Regards

-- 
Stephane

  _____  

Hotmail débarque sur votre téléphone ! Paramétrez
<http://www.messengersurvotremobile.com/?d=Hotmail>  Hotmail sur votre
téléphone! Gratuit ! 


 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to