~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/ui/dialog/align-and-distribute.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * \brief Align and Distribute dialog
3
 
 *
4
 
 * Authors:
 
1
/** @file
 
2
 * @brief Align and Distribute dialog
 
3
 */
 
4
/* Authors:
5
5
 *   Bryce W. Harrington <bryce@bryceharrington.org>
6
6
 *   Aubanel MONNIER <aubi@libertysurf.fr>
7
7
 *   Frank Felfe <innerspace@iname.com>
65
65
    std::list<SPItem *>::iterator find_master(std::list <SPItem *> &list, bool horizontal);
66
66
    void setMode(bool nodeEdit);
67
67
 
68
 
    NR::Maybe<NR::Rect> randomize_bbox;
 
68
    Geom::OptRect randomize_bbox;
69
69
 
70
70
protected:
71
71
 
72
72
    void on_ref_change();
 
73
    void on_selgrp_toggled();
73
74
    void addDistributeButton(const Glib::ustring &id, const Glib::ustring tiptext, 
74
75
                                      guint row, guint col, bool onInterSpace, 
75
 
                                      NR::Dim2 orientation, float kBegin, float kEnd);
 
76
                                      Geom::Dim2 orientation, float kBegin, float kEnd);
76
77
    void addAlignButton(const Glib::ustring &id, const Glib::ustring tiptext, 
77
78
                        guint row, guint col);
78
79
    void addNodeButton(const Glib::ustring &id, const Glib::ustring tiptext, 
79
 
                        guint col, NR::Dim2 orientation, bool distribute);
 
80
                        guint col, Geom::Dim2 orientation, bool distribute);
80
81
    void addRemoveOverlapsButton(const Glib::ustring &id,
81
82
                        const Glib::ustring tiptext,
82
83
                        guint row, guint col);
88
89
    void addRandomizeButton(const Glib::ustring &id, const Glib::ustring tiptext, 
89
90
                        guint row, guint col);
90
91
    void addBaselineButton(const Glib::ustring &id, const Glib::ustring tiptext,
91
 
                           guint row, guint col, Gtk::Table &table, NR::Dim2 orientation, bool distribute);
 
92
                           guint row, guint col, Gtk::Table &table, Geom::Dim2 orientation, bool distribute);
92
93
 
93
94
    std::list<Action *> _actionList;
94
95
    Gtk::Frame _alignFrame, _distributeFrame, _removeOverlapFrame, _graphLayoutFrame, _nodesFrame;
95
96
    Gtk::Table _alignTable, _distributeTable, _removeOverlapTable, _graphLayoutTable, _nodesTable;
96
97
    Gtk::HBox _anchorBox;
 
98
    Gtk::HBox _selgrpBox;
97
99
    Gtk::VBox _alignBox;
98
100
    Gtk::Label _anchorLabel;
 
101
    Gtk::Label _selgrpLabel;
 
102
    Gtk::CheckButton _selgrp;
99
103
    Gtk::ComboBoxText _combo;
100
104
    Gtk::Tooltips _tooltips;
101
105
 
104
108
    AlignAndDistribute& operator=(AlignAndDistribute const &d);
105
109
};
106
110
 
 
111
 
 
112
struct BBoxSort
 
113
{
 
114
    SPItem *item;
 
115
    float anchor;
 
116
    Geom::Rect bbox;
 
117
    BBoxSort(SPItem *pItem, Geom::Rect bounds, Geom::Dim2 orientation, double kBegin, double kEnd);
 
118
    BBoxSort(const BBoxSort &rhs);
 
119
};
 
120
bool operator< (const BBoxSort &a, const BBoxSort &b);
 
121
 
107
122
} // namespace Dialog
108
123
} // namespace UI
109
124
} // namespace Inkscape