On Thu, Jul 31, 2003 at 05:28:59PM +0000, Angus Leeming spake thusly: > Martin Vermeer wrote: > > > OK, show me :-) > > I already have. New branches are defined in the Document dialog right? > > Branch: [ Russian ] // text widget > Selected: o // check button > Colour: [display color] [ Modify ] // 2 buttons > > [ Add New Branch to List] // button
That has changed... we have a pair of browsers now. New Branch [ ] [ Add ] Avail. Br. Selected Br. +-------+ +-------+ |Russian| [->] |Russian| |English| | | |French | [X ] | | | | | | +-------+ +-------+ [ Remove ] Colour: [#####] [Modify] ... will work too. > Of the colour line, button 1 will display the current colour, button 2 will > lauch the colour picker to change it. See the Preferences dialog. > Use some > static HSVColor default_branch_color(0,1,1); > default_branch_color.h += 10; > if (default_branch_color.h > 359.9) default_branch_color.h = 0; > to initialise the colour for each new branch. > > All info stored in > struct BranchParams { > string name; > bool selected; > RGBColor color; > }; Actually I have class Branch { ... private: /// string branch_; /// bool selected_; /// string color_; }; in BranchList.h. Storing as a string is OK I guess. What formati for the .lyx file? 255,0,0? 1.0,0.0,0.0? #ff0000? I would propose the first, three bytes in decimal, but space separated: \color 255 0 0. Easiest to lex. Can we agree on that? > where's the difficulty? Waiting for me when the coding begins :-/ > -- > Angus Martin
pgp00000.pgp
Description: PGP signature