swatches.h revision d6e9ccff06a62c4c68fa310b34c75573fde19e79
/** @file
* @brief Color swatches dialog
*/
/* Authors:
* Jon A. Cruz
*
* Copyright (C) 2005 Jon A. Cruz
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_DIALOGS_SWATCHES_H
#define SEEN_DIALOGS_SWATCHES_H
#include <gtkmm/textview.h>
#include <gtkmm/tooltips.h>
#include "ui/previewholder.h"
#include "widgets/ege-paint-def.h"
/**
* The color swatch you see on screen as a clickable box.
*/
{
ColorItem( unsigned int r, unsigned int g, unsigned int b,
::PreviewSize size,
void buttonClicked(bool secondary = false);
void* ptr;
static void _wireMagicColors( void* p );
static void _colorDefChanged(void* data);
bool _isLive;
bool _linkIsTone;
int _linkPercent;
int _linkGray;
};
/**
* A panel that displays color swatches.
*/
{
virtual ~SwatchesPanel();
static SwatchesPanel& getInstance();
static SwatchesPanel* instance;
int _currentIndex;
void* _ptr;
};
} //namespace Dialogs
} //namespace UI
} //namespace Inkscape
#endif // SEEN_SWATCHES_H
/*
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:encoding=utf-8:textwidth=99 :