~commonsmachinery/inkscape/cm-metadata

« back to all changes in this revision

Viewing changes to src/ui/dialog/symbols.h

  • Committer: Martin Owens
  • Date: 2013-06-15 13:29:48 UTC
  • Revision ID: doctormo@gmail.com-20130615132948-33tjw0mqk3vd94ki
Big change in symbols ui and selection chemistry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 * new symbols documents to be constructed and if saved in the prefs folder will
49
49
 * make those symbols available for all future documents.
50
50
 */
 
51
 
 
52
const int SYMBOL_ICON_SIZES[] = {16, 24, 32, 48, 64};
 
53
 
51
54
class SymbolsDialog : public UI::Widget::Panel {
52
55
 
53
56
public:
62
65
 
63
66
    static SymbolColumns *getColumns();
64
67
 
 
68
    void zoomin();
 
69
    void zoomout();
65
70
    void rebuild();
 
71
    void insertSymbol();
 
72
    void revertSymbol();
66
73
    void defsModified(SPObject *object, guint flags);
 
74
    void selectionChanged(Inkscape::Selection *selection);
 
75
    SPDocument* selectedSymbols();
 
76
    Glib::ustring selectedSymbolId();
67
77
    void iconChanged();
68
78
    void iconDragDataGet(const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection_data, guint info, guint time);
69
79
 
84
94
    /* Keep track of all symbol template documents */
85
95
    std::map<Glib::ustring, SPDocument*> symbolSets;
86
96
 
 
97
    // Index into sizes which is selected
 
98
    int in_sizes;
87
99
 
88
100
    Glib::RefPtr<Gtk::ListStore> store;
89
101
    Gtk::ComboBoxText* symbolSet;
90
102
    Gtk::IconView* iconView;
91
 
    Gtk::ComboBoxText* previewScale;
92
 
    Gtk::ComboBoxText* previewSize;
 
103
    Gtk::Button* addSymbol;
 
104
    Gtk::Button* removeSymbol;
 
105
    Gtk::ToggleButton* fitSymbol;
93
106
 
94
107
    void setTargetDesktop(SPDesktop *desktop);
95
108
    SPDesktop*  currentDesktop;