diff options
Diffstat (limited to 'src/ui/widget/style-swatch.h')
| -rw-r--r-- | src/ui/widget/style-swatch.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/ui/widget/style-swatch.h b/src/ui/widget/style-swatch.h new file mode 100644 index 000000000..d78b3d64e --- /dev/null +++ b/src/ui/widget/style-swatch.h @@ -0,0 +1,88 @@ +/** + * \brief Static style swatch (fill, stroke, opacity) + * + * Author: + * buliabyak@gmail.com + * + * Copyright (C) 2005 author + * + * Released under GNU GPL. Read the file 'COPYING' for more information. + */ + +#ifndef INKSCAPE_UI_CURRENT_STYLE_H +#define INKSCAPE_UI_CURRENT_STYLE_H + +#include <gtkmm/table.h> +#include <gtkmm/label.h> +#include <gtkmm/box.h> +#include <gtkmm/eventbox.h> +#include <gtkmm/enums.h> + +#include <glibmm/i18n.h> + +#include <desktop.h> + +#include "button.h" + +class SPUnit; +class SPStyle; +class SPCSSAttr; + +namespace Inkscape { +namespace UI { +namespace Widget { + +class StyleSwatch : public Gtk::HBox +{ +public: + StyleSwatch (SPStyle *style); + StyleSwatch (SPCSSAttr *attr); + + ~StyleSwatch(); + + void setStyle(SPStyle *style); + void setStyle(SPCSSAttr *attr); + SPCSSAttr *getStyle(); + +protected: + SPCSSAttr *_css; + + Gtk::Table _table; + + Gtk::Label _label[2]; + + Gtk::EventBox _place[2]; + Gtk::EventBox _opacity_place; + + Gtk::Label _value[2]; + Gtk::Label _opacity_value; + + Gtk::Widget *_color_preview[2]; + Glib::ustring __color[2]; + + Gtk::HBox _stroke; + Gtk::EventBox _stroke_width_place; + Gtk::Label _stroke_width; + + SPUnit *_sw_unit; + + Gtk::Tooltips _tooltips; +}; + + +} // namespace Widget +} // namespace UI +} // namespace Inkscape + +#endif // INKSCAPE_UI_WIDGET_BUTTON_H + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : |
