Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoCanvasController.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * KoCanvasController is the base class for wrappers around your canvas | 45 | * KoCanvasController is the base class for wrappers around your canvas | ||
46 | * that provides scrolling and zooming for your canvas. | 46 | * that provides scrolling and zooming for your canvas. | ||
47 | * | 47 | * | ||
48 | * Flake does not provide a canvas, the application will have to | 48 | * Flake does not provide a canvas, the application will have to | ||
49 | * implement a canvas themselves. You canvas can be QWidget-based | 49 | * implement a canvas themselves. You canvas can be QWidget-based | ||
50 | * or something we haven't invented yet -- as long the class that holds the canvas | 50 | * or something we haven't invented yet -- as long the class that holds the canvas | ||
51 | * imlements KoCanvasController, tools, scrolling and zooming will work. | 51 | * implements KoCanvasController, tools, scrolling and zooming will work. | ||
52 | * | 52 | * | ||
53 | * A KoCanvasController implementation acts as a decorator around the canvas widget | 53 | * A KoCanvasController implementation acts as a decorator around the canvas widget | ||
54 | * and provides a way to scroll the canvas, allows the canvas to be centered | 54 | * and provides a way to scroll the canvas, allows the canvas to be centered | ||
55 | * in the viewArea and manages tool activation. | 55 | * in the viewArea and manages tool activation. | ||
56 | * | 56 | * | ||
57 | * <p>The using application can instantiate this class and add its | 57 | * <p>The using application can instantiate this class and add its | ||
58 | * canvas using the setCanvas() call. Which is designed so it can be | 58 | * canvas using the setCanvas() call. Which is designed so it can be | ||
59 | * called multiple times if you need to exchange one canvas | 59 | * called multiple times if you need to exchange one canvas | ||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |