connector-tool.h revision 0dc651bab109d5f3a6362dbb287ea4c1e97fa5ef
#ifndef SEEN_CONNECTOR_CONTEXT_H
#define SEEN_CONNECTOR_CONTEXT_H
/*
* Connector creation tool
*
* Authors:
* Michael Wybrow <mjwybrow@users.sourceforge.net>
*
* Copyright (C) 2005 Michael Wybrow
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <map>
#include <string>
#include <sigc++/connection.h>
#include "ui/tools/tool-base.h"
struct SPKnot;
struct SPCanvasItem;
}
}
}
#define SP_CONNECTOR_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::ConnectorTool*>((Inkscape::UI::Tools::ToolBase*)obj))
//#define SP_IS_CONNECTOR_CONTEXT(obj) (dynamic_cast<const ConnectorTool*>((const ToolBase*)obj) != NULL)
enum {
};
virtual ~ConnectorTool();
/** \invar npoints in {0, 2}. */
unsigned int state : 4;
// Red curve
// Green curve
// The new connector
bool isOrthogonal;
// The active shape
// Same as above, but for the active connector
// The activehandle
// The selected handle, used in editing mode
void cc_clear_active_shape();
void cc_clear_active_conn();
void _resetColors();
void _finish();
void _concatColorsAndFlush();
};
void cc_selection_set_avoid(bool const set_ignore);
}
}
}
#endif /* !SEEN_CONNECTOR_CONTEXT_H */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :