summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-guide.h')
-rw-r--r--src/sp-guide.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp-guide.h b/src/sp-guide.h
index 382ea56f0..25a0e5af8 100644
--- a/src/sp-guide.h
+++ b/src/sp-guide.h
@@ -22,13 +22,12 @@
typedef unsigned int guint32;
extern "C" {
typedef void (*GCallback) (void);
- typedef struct _GSList GSList;
}
class SPDesktop;
struct SPCanvas;
struct SPCanvasGroup;
-
+struct SPGuideLine;
#define SP_GUIDE(obj) (dynamic_cast<SPGuide*>((SPObject*)obj))
#define SP_IS_GUIDE(obj) (dynamic_cast<const SPGuide*>((SPObject*)obj) != NULL)
@@ -53,6 +52,9 @@ public:
void set_label(const char* label, bool const commit);
char const* getLabel() const { return label; }
+ void set_locked(const bool locked, bool const commit);
+ bool getLocked() const { return locked; }
+
static SPGuide *createSPGuide(SPDocument *doc, Geom::Point const &pt1, Geom::Point const &pt2);
void showSPGuide(SPCanvasGroup *group, GCallback handler);
@@ -77,7 +79,8 @@ protected:
virtual void set(unsigned int key, const char* value);
char* label;
- GSList *views; // contains an object of type SPGuideline (see display/guideline.cpp for definition)
+ std::vector<SPGuideLine *> views; // contains an object of type SPGuideline (see display/guideline.cpp for definition)
+ bool locked;
Geom::Point normal_to_line;
Geom::Point point_on_line;