First patch of the LockableColorPicker tool.
Still Work In Progress, but can be used without too much hassle.
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user