~mc.../inkscape/inkscape

« back to all changes in this revision

Viewing changes to src/sp-conn-end.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SEEN_SP_CONN_END
 
2
#define SEEN_SP_CONN_END
 
3
 
 
4
#include <glib/gtypes.h>
 
5
#include <sigc++/connection.h>
 
6
 
 
7
#include "sp-use-reference.h"
 
8
 
 
9
 
 
10
class SPConnEnd {
 
11
public:
 
12
    SPConnEnd(SPObject *owner);
 
13
 
 
14
    SPUseReference ref;
 
15
    gchar *href;
 
16
 
 
17
    /** Change of href string (not a modification of the attributes of the referrent). */
 
18
    sigc::connection _changed_connection;
 
19
 
 
20
    /** Called when the attached object gets deleted. */
 
21
    sigc::connection _delete_connection;
 
22
 
 
23
    /** A sigc connection for transformed signal, used to do move compensation. */
 
24
    sigc::connection _transformed_connection;
 
25
 
 
26
    void setAttacherHref(gchar const *);
 
27
 
 
28
private:
 
29
    SPConnEnd(SPConnEnd const &);
 
30
    SPConnEnd &operator=(SPConnEnd const &);
 
31
};
 
32
 
 
33
void sp_conn_end_href_changed(SPObject *old_ref, SPObject *ref,
 
34
                              SPConnEnd *connEnd, SPPath *path, unsigned const handle_ix);
 
35
void sp_conn_adjust_invalid_path(SPPath *const path);
 
36
void sp_conn_adjust_path(SPPath *const path);
 
37
void sp_conn_end_detach(SPObject *const owner, unsigned const handle_ix);
 
38
 
 
39
 
 
40
#endif /* !SEEN_SP_CONN_END */
 
41
 
 
42
/*
 
43
  Local Variables:
 
44
  mode:c++
 
45
  c-file-style:"stroustrup"
 
46
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
47
  indent-tabs-mode:nil
 
48
  fill-column:99
 
49
  End:
 
50
*/
 
51
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :