color-picker.cpp revision a24300c2eab4cabe40a694337648df816de022ff
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* bulia byak <buliabyak@users.sf.net>
* Ralf Stephan <ralf@ark.in-berlin.de>
* Abhishek Sharma
*
* Copyright (C) Authors 2000-2005
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "color-picker.h"
#include "inkscape.h"
#include "desktop-handles.h"
#include "document.h"
#include "document-undo.h"
#include "dialogs/dialog-events.h"
#include "ui/widget/color-notebook.h"
#include "verbs.h"
static bool _in_use = false;
namespace Inkscape {
namespace UI {
namespace Widget {
_colorSelectorDialog("dialogs.colorpickerwindow")
{
_selected_color.signal_released.connect(sigc::mem_fun(this, &ColorPicker::_onSelectedColorChanged));
}
{
closeWindow();
}
{
#if WITH_GTKMM_3_0
*_color_selector, true, true, 0);
#else
*_color_selector, true, true, 0);
#endif
_color_selector->show();
}
{
if (_in_use) return;
if (_color_selector)
{
_updating = true;
_updating = false;
}
}
void ColorPicker::closeWindow()
{
}
void ColorPicker::on_clicked()
{
if (_color_selector)
{
_updating = true;
_updating = false;
}
}
{
}
void ColorPicker::_onSelectedColorChanged() {
if (_updating) {
return;
}
if (_in_use) {
return;
} else {
_in_use = true;
}
if (_undo && SP_ACTIVE_DESKTOP) {
/* TODO: annotate */ "color-picker.cpp:130");
}
_in_use = false;
}
}//namespace Widget
}//namespace UI
}//namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :