I've been meaning to investigate how the KDE games (mahjongg, KPatience,
etc) do their scaling in more recent versions of KDE (3.5+?)...    My
suspicion is that they have converted the graphics over to SVG and they use
some canvas proportioning trick to scale them.   I think ultimately that is
the way to go.


On Dec 18, 2007 12:47 PM, Synthe <[EMAIL PROTECTED]> wrote:

> After a while thinking about how to best approach scaling in the mixxx
> skinning interface, i came up with this is a possible solution to the way
> scaling would work in terms of structure in the XML file.  Also adding
> static images that could be placed around would make scaling much easier
> to
> deal with.
>
> Currently in qt4 (in mixxx) if you overlay 2 transparent images, it gets
> very wonky.  I'm not sure if this is because it doesn't know which is on
> top
> of which, or if it's just the way it is.  If a z-index would help that
> situation out, that would also be put into the <Pos> tag.
>
> If you have any comments or questions, please reply.
>
>  -DJSynthe
>
> <Pos>
>  <Scale>     <!--  optional tag, choose 1 child -->
>    <ScaleX />
>    <ScaleY />
>    <ScaleBoth />
>    <ScaleNone />
>  </Scale>
>  <Anchor>
>    <!-- ScaleNone or scale not included allows only 1 child -->
>    <!-- ScaleY needs 2 children, a top and bottom (or center) -->
>    <!-- ScaleX needs 2 children, a left and right (or center) -->
>    <!-- ScaleBoth needs 2 children, top left right and bottom all need to
>         be covered (or center covering an X and Y) -->
>    <ThisTopLeft>  <!-- needs exactly 2 children, one for x, one for y-->
>      <Top>***int***</Top>
>      <Bottom>***int***</Bottom>
>      <CenterY>***int***</CenterY>
>      <Left>***int***</Left>
>      <Right>***int***</Right>
>      <CenterX>***int***</CenterX>
>    </ThisTopLeft>
>    <ThisTopRight>  <!-- needs exactly 2 children, one for x, one for y-->
>      <Top>***int***</Top>
>      <Bottom>***int***</Bottom>
>      <CenterY>***int***</CenterY>
>      <Left>***int***</Left>
>      <Right>***int***</Right>
>      <CenterX>***int***</CenterX>
>    </ThisTopRight>
>    <ThisBottomLeft>  <!--needs exactly 2 children, one for x, one for y-->
>      <Top>***int***</Top>
>      <Bottom>***int***</Bottom>
>      <CenterY>***int***</CenterY>
>      <Left>***int***</Left>
>      <Right>***int***</Right>
>      <CenterX>***int***</CenterX>
>    </ThisBottomLeft>
>    <ThisBottomRight>  <!--needs exactly 2 children, one for x, one for
> y-->
>      <Top>***int***</Top>
>      <Bottom>***int***</Bottom>
>      <CenterY>***int***</CenterY>
>      <Left>***int***</Left>
>      <Right>***int***</Right>
>      <CenterX>***int***</CenterX>
>    </ThisBottomRight>
>    <ThisCenter>  <!-- needs exactly 2 children, one for x, one for y-->
>      <Top>***int***</Top>
>      <Bottom>***int***</Bottom>
>      <CenterY>***int***</CenterY>
>      <Left>***int***</Left>
>      <Right>***int***</Right>
>      <CenterX>***int***</CenterX>
>    </ThisCenter>
>  </Anchor>
> </Pos>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>



-- 
            __
--- == __/ t.O ==--
http://stacktrace.org/
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to