//------------------------------------------------------------------
// Brings up a file chooser and then loads the chosen image
// This is called by the UI when the load alpha brush menu item is chosen
//------------------------------------------------------------------
void ImpressionistUI::cb_load_alpha_brush(Fl_Menu_* o, void* v)
{
	ImpressionistDoc *pDoc = whoami(o)->getDocument();

	char* newfile = fl_file_chooser("Open File?", "*.bmp", pDoc->getImageName());
	if (newfile != NULL) {
		pDoc->loadAlphaBrush(newfile);
	}
	for (int i = 0; i < NUM_BRUSH_TYPE; ++i)
	{
		if (brushTypeMenu[i].label() == "Alpha Mapped")
			brushTypeMenu[i].activate();
	}
}