src/viewer/svpaint.cpp
SVMenuNode *SVPaint::BuildPopupMenu() {
  auto *root = new SVMenuNode(); // Empty root node
  // Initial color is white, so we  all values to 255.
  root->AddChild("R",                 // Shown caption.
                 1,                   // assoc. command_id.
                 "255",               // initial value.
                 "Red Color Value?"); // Shown description.
  root->AddChild("G", 2, "255", "Green Color Value?");
  root->AddChild("B", 3, "255", "Blue Color Value?");
  return root;
}
// Build a sample popup menu.
Build a sample popup menu.
Build a sample popup menu .
SVMenuNode *SVPaint::BuildPopupMenu() {
  auto *root = new SVMenuNode(); 
  root->AddChild("R",                 
                 1,                   
                 "255",               
                 "Red Color Value?"); 
  root->AddChild("G", 2, "255", "Green Color Value?");
  root->AddChild("B", 3, "255", "Blue Color Value?");
  return root;
}
SVMenuNode * SVPaint :: BuildPopupMenu ( ) { auto * root = new SVMenuNode ( ) ; root -> AddChild ( " " , 1 , " " , " " ) ; root -> AddChild ( " " , 2 , " " , " " ) ; root -> AddChild ( " " , 3 , " " , " " ) ; return root ; }
Build a sample popup menu.
Build a sample popup menu .
// Empty root node // Initial color is white, so we  all values to 255. // Shown caption. // assoc. command_id. // initial value. // Shown description.