~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/selcue.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_SELCUE_H__
 
2
#define __SP_SELCUE_H__
 
3
 
 
4
/*
 
5
 * Helper object for showing selected items
 
6
 *
 
7
 * Authors:
 
8
 *   bulia byak <bulia@users.sf.net>
 
9
 *   Carl Hetherington <inkscape@carlh.net>
 
10
 *
 
11
 * Copyright (C) 2004 Authors
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
16
#include <list>
 
17
#include <sigc++/sigc++.h>
 
18
 
 
19
class SPDesktop;
 
20
class SPCanvasItem;
 
21
 
 
22
namespace Inkscape {
 
23
 
 
24
class Selection;
 
25
 
 
26
class SelCue
 
27
{
 
28
public:
 
29
    SelCue(SPDesktop *desktop);
 
30
    ~SelCue();
 
31
 
 
32
    enum Type {
 
33
        NONE,
 
34
        MARK,
 
35
        BBOX
 
36
    };
 
37
 
 
38
private:
 
39
 
 
40
    void _updateItemBboxes();
 
41
    void _newItemBboxes();
 
42
    void _newTextBaselines();
 
43
 
 
44
    SPDesktop *_desktop;
 
45
    Selection *_selection;
 
46
    sigc::connection _sel_changed_connection;
 
47
    sigc::connection _sel_modified_connection;
 
48
    std::vector<SPCanvasItem*> _item_bboxes;
 
49
    std::vector<SPCanvasItem*> _text_baselines;
 
50
};
 
51
 
 
52
}
 
53
  
 
54
#endif
 
55
 
 
56
 
 
57
/*
 
58
  Local Variables:
 
59
  mode:c++
 
60
  c-file-style:"stroustrup"
 
61
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
62
  indent-tabs-mode:nil
 
63
  fill-column:99
 
64
  End:
 
65
*/
 
66
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :