summaryrefslogtreecommitdiffstats
path: root/src/zoom-context.h
blob: f5f2145b1a0ada13af0635d7d07b01ea6b3bcbdf (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
37
38
39
#ifndef __SP_ZOOM_CONTEXT_H__
#define __SP_ZOOM_CONTEXT_H__

/*
 * Handy zooming tool
 *
 * Authors:
 *   Lauris Kaplinski <lauris@kaplinski.com>
 *   Frank Felfe <innerspace@iname.com>
 *
 * Copyright (C) 1999-2002 Authors
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

#include "event-context.h"

#define SP_ZOOM_CONTEXT(obj) ((SPZoomContext*)obj)
#define SP_IS_ZOOM_CONTEXT(obj) (dynamic_cast<const SPZoomContext*>((const SPEventContext*)obj))

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

	//SPEventContext event_context;
	SPCanvasItem *grabbed;

	static const std::string prefsPath;

	virtual void setup();
	virtual void finish();
	virtual gint root_handler(GdkEvent* event);
	//virtual gint item_handler(SPItem* item, GdkEvent* event);

	virtual const std::string& getPrefsPath();
};

#endif