void ImpressionistUI::cb_paintlyStrokeChoice(Fl_Widget* o, void* v) { ImpressionistUI* pUI = ((ImpressionistUI *)(o->user_data())); ImpressionistDoc* pDoc = pUI->getDocument(); int type = (int)v; switch (type) { case STROKE_CIRCLEBRUSH: pDoc->setPaintlyStroke(type); pDoc->setBrushType(BRUSH_CIRCLES); cout << "here" << endl; break; case STROKE_CURVEDBRUSH: pDoc->setPaintlyStroke(type); break; } }