summaryrefslogtreecommitdiffstats
path: root/src/measure-context.h
blob: 76509e91c8f3e6b222675aecbdd6f8eaaf05a8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SEEN_SP_MEASURING_CONTEXT_H
#define SEEN_SP_MEASURING_CONTEXT_H

/*
 * Our fine measuring tool
 *
 * Authors:
 *   Felipe Correa da Silva Sanches <juca@members.fsf.org>
 *
 * Copyright (C) 2011 Authors
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

#include "event-context.h"

#define SP_MEASURE_CONTEXT(obj) ((SPMeasureContext*)obj)
#define SP_IS_MEASURE_CONTEXT(obj) (dynamic_cast<const SPMeasureContext*>((const SPEventContext*)obj))

class SPMeasureContext : public SPEventContext {
public:
	SPMeasureContext();
	virtual ~SPMeasureContext();

	static const std::string prefsPath;

	virtual void finish();
	virtual gint root_handler(GdkEvent* event);

	virtual const std::string& getPrefsPath();

private:
	SPCanvasItem* grabbed;
};

#endif // SEEN_SP_MEASURING_CONTEXT_H