Public Methods | |
RotateColorCmd (TreeView &atv) | |
void | operator() () |
|
01338 : 01339 tv(atv) 01340 {} void operator()() |
|
Implements Command.
01342 { 01343 static int i=0; 01344 switch(i%3) 01345 { 01346 case 0: 01347 tv.set_cpick(new ColorPicker); 01348 break; 01349 01350 case 1: 01351 tv.set_cpick(new GidColor); 01352 break; 01353 01354 case 2: 01355 tv.set_cpick(new AgeColor); 01356 break; 01357 }; 01358 ++i; 01359 tv.draw_rect(); 01360 } |