When leveling, the center circle is now shown when the pointer approaches it.
- solidify/Makefile: added util.o
- solidify/util.h, solidify/util.c (draw_circle): wrapper for gdk_draw_arc
- solidify/Makefile: added style.o
- solidify/style.h, solidify/style.c, solidify/solidify.c (main): GUI style
parameters and items
- solidify/level.c (scroll_z. scroll_xy, scroll_event, level),
solidify/overlap.c (scroll_event, overlap): renamed "da" to "darea", to
avoid confusion with "da" for GdkDrawable in style.c
- solidify/level.c (r_center, scroll_event): moved center radius
calculation to separate function
- solidify/level.c (draw_image): renamed to draw_map
- solidify/level.c (draw_image): draw an on-screen display (OSD)
- solidify/level.c (scroll_z, scroll_xy, expose_event, level): propagate
OSD on/off switch
- solidify/level.c (scroll_event, motion_notify_event, level): enable OSD
when approaching the center circle
2010-09-24 08:04:04 +03:00
|
|
|
/*
|
|
|
|
* style.h - GUI style parameters and items
|
|
|
|
*
|
|
|
|
* Written 2010 by Werner Almesberger
|
|
|
|
* Copyright 2010 by Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STYLE_H
|
|
|
|
#define STYLE_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
|
|
|
|
extern GdkGC *gc_osd;
|
|
|
|
|
|
|
|
|
2010-09-24 08:47:34 +03:00
|
|
|
#define OSD_PROXIMITY 20 /* pixels */
|
|
|
|
#define LEVEL_CENTER_DIV 5 /* fraction of diagonal */
|
|
|
|
#define OVERLAP_BORDER 10 /* pixels around min. drawing area */
|
|
|
|
#define OVERLAP_CENTER_DIV 5 /* fraction of diagonal */
|
2010-09-24 23:28:48 +03:00
|
|
|
#define SLOWEST_ROT 3 /* thrice the half-diagonal */
|
|
|
|
#define FASTEST_ROT 2 /* one pixel in distance of 2 pixels */
|
2010-09-25 00:24:10 +03:00
|
|
|
#define DIST_STEPS 5 /* fastest shift is 5 px/wheel step */
|
When leveling, the center circle is now shown when the pointer approaches it.
- solidify/Makefile: added util.o
- solidify/util.h, solidify/util.c (draw_circle): wrapper for gdk_draw_arc
- solidify/Makefile: added style.o
- solidify/style.h, solidify/style.c, solidify/solidify.c (main): GUI style
parameters and items
- solidify/level.c (scroll_z. scroll_xy, scroll_event, level),
solidify/overlap.c (scroll_event, overlap): renamed "da" to "darea", to
avoid confusion with "da" for GdkDrawable in style.c
- solidify/level.c (r_center, scroll_event): moved center radius
calculation to separate function
- solidify/level.c (draw_image): renamed to draw_map
- solidify/level.c (draw_image): draw an on-screen display (OSD)
- solidify/level.c (scroll_z, scroll_xy, expose_event, level): propagate
OSD on/off switch
- solidify/level.c (scroll_event, motion_notify_event, level): enable OSD
when approaching the center circle
2010-09-24 08:04:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
void init_style(GdkDrawable *da);
|
|
|
|
|
|
|
|
#endif /* !STYLE_H */
|