bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] How do I do this in gtk?


From: Jim Segrave
Subject: [Bug-gnubg] How do I do this in gtk?
Date: Tue, 22 Oct 2002 17:36:42 +0200
User-agent: Mutt/1.4i

I'm still grinding away at making rollouts more configurable (in
particular using different evaluations at later plies). But the
overall configuration for rollouts can, in the worst case, get
overwhelming, as well as too large for one screen. If the user wants
to do more common things, like set player 0 and player 1 to use the
same evaluations, make the cube and chequer eval contexts the same,
etc., then they really don't want to see:

player 0  player 0  player 1  player 1  player 0  player 0  etc.
chequer   cube      chequer   cube      later chq later cube
play      decision  play      decision  play      decision

I thought the most appropriate would be to use a notebook in the same
vein as set appearance. The first, general page would have things
like:

truncated         [ ]
plies             [      ]

later evaluations [ ]
after ply         [      ]
var redn          [ ]
 
and all the other usual options, along with radio buttons to 
say  more or less 'Player 0 and Player 1 use the same evaluations' and
'Cube and Chequer evaluations are the same'.

Then there would be separate pages for the various evaluations - cube
and chequer for player 0, player 1, late cube and chequer for player
0, later cube and chequer for player 1, cube and chequer for the
truncation point evaluation.

In order to make setup easy, I want to disable un-needed pages - for
example, if you've said player 0 and player 1 are the same, then
player 1's pages become inactive. If you say cube and chequer are the
same, the cube settings on each page become inactive. If you don't
want truncated rollouts, the truncation page becomes inactive, etc.

Setting the default to player 0 = player 1, cube = chequer, late
evaluations = no, then setting up rollouts is about as easy as it is
now and simply starting gnubg and saving settings will cause existing
.gnubgautorcs to update the way they should.

My question is - how can one de-activate a page in a notebook or a
vbox within a page (for the chequer play)?
Can you change the titles on the tabs once the widget has been
displayed, so that, for example, the player 0 and player 0 late tabs 
become 'both players' and 'both players later' or some such?

I could have separate code for the various cases and close and
re-create the window to reflect changes, but that seems the wrong way
to do it.


-- 
Jim Segrave           address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]