2
#ifndef SEEN_SWATCHES_H
3
#define SEEN_SWATCHES_H
5
* A simple dialog for previewing icon representation.
10
* Copyright (C) 2005 Jon A. Cruz
12
* Released under GNU GPL, read the file 'COPYING' for more information
15
#include <gtkmm/textview.h>
16
#include <gtkmm/tooltips.h>
18
#include "ui/widget/panel.h"
19
#include "ui/previewholder.h"
28
* The color swatch you see on screen as a clickable box.
30
class ColorItem : public Inkscape::UI::Previewable
33
ColorItem( unsigned int r, unsigned int g, unsigned int b,
34
Glib::ustring& name );
36
ColorItem(ColorItem const &other);
37
virtual ColorItem &operator=(ColorItem const &other);
38
virtual Gtk::Widget* getPreview(PreviewStyle style,
40
Gtk::BuiltinIconSize size);
41
void buttonClicked(bool secondary = false);
54
* A panel that displays color swatches.
56
class SwatchesPanel : public Inkscape::UI::Widget::Panel
60
virtual ~SwatchesPanel();
62
static SwatchesPanel& getInstance();
65
virtual void _handleAction( int setId, int itemId );
68
SwatchesPanel(SwatchesPanel const &); // no copy
69
SwatchesPanel &operator=(SwatchesPanel const &); // no assign
71
static SwatchesPanel* instance;
73
PreviewHolder* _holder;
78
} //namespace Inkscape
82
#endif // SEEN_SWATCHES_H
87
c-file-style:"stroustrup"
88
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
93
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :