First patch of the LockableColorPicker tool.

Still Work In Progress, but can be used without too much hassle.
This commit is contained in:
Hombre
2016-09-30 01:03:57 +02:00
parent db6b43e3c0
commit f904bc8f84
43 changed files with 14509 additions and 97 deletions

View File

@@ -178,7 +178,6 @@ CropWindow* ImageArea::getCropWindow (int x, int y)
return cw;
}
void ImageArea::redraw ()
{
// dirty prevents multiple updates queued up
@@ -188,6 +187,11 @@ void ImageArea::redraw ()
}
}
void ImageArea::switchPickerVisibility (bool isVisible)
{
redraw();
}
bool ImageArea::on_expose_event(GdkEventExpose* event)
{
dirty = false;
@@ -690,6 +694,16 @@ ToolMode ImageArea::getToolMode ()
}
}
bool ImageArea::showColorPickers ()
{
if (listener && listener->getToolBar()) {
return listener->getToolBar()->showColorPickers ();
} else {
return false;
}
}
void ImageArea::setToolHand ()
{