00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PAPYRUSGTKMARKERWIDGET_H
00020 #define PAPYRUSGTKMARKERWIDGET_H
00021
00022 #include <gtkmm/table.h>
00023 #include <papyrusmm/markercombobox.h>
00024 #include <papyrusmm/linestylewidget.h>
00025
00026 namespace PapyrusGtk {
00027
00031 class MarkerWidget : public Gtk::Table
00032 {
00033 public:
00034 MarkerWidget(bool use_preview=true);
00035
00036 ~MarkerWidget();
00037
00038 Papyrus::Marker::pointer get_marker();
00039
00040 bool use_preview();
00041 void set_use_preview(bool use=true);
00042
00043 protected:
00044 Gtk::Expander* m_expander;
00045 PapyrusGtk::Viewport* m_viewport;
00046 Papyrus::Polyline::pointer m_line;
00047 Papyrus::Marker::pointer m_marker;
00048
00049 Gtk::ColorButton m_fill_color_button;
00050 Gtk::ColorButton m_outline_color_button;
00051 Gtk::Adjustment m_marker_width_adjustment;
00052 Gtk::SpinButton m_marker_width_entry;
00053 Gtk::Adjustment m_marker_height_adjustment;
00054 Gtk::SpinButton m_marker_height_entry;
00055 Gtk::Adjustment m_line_width_adjustment;
00056 Gtk::SpinButton m_line_width_entry;
00057 PapyrusGtk::MarkerComboBox m_marker_combobox;
00058 PapyrusGtk::LineJoinButtonBox m_line_join_buttonbox;
00059 PapyrusGtk::LineCapButtonBox m_line_cap_buttonbox;
00060
00061 void on_marker_style_changed();
00062 void on_fill_color_changed();
00063 void on_outline_color_changed();
00064 void on_marker_width_changed();
00065 void on_marker_height_changed();
00066 void on_line_width_changed();
00067 void on_line_join_changed( Cairo::LineJoin );
00068 void on_line_cap_changed( Cairo::LineCap );
00069
00070 void update_line_marker();
00071 };
00072
00073 }
00074
00075 #endif