from tool-area and drag&drop it into drawing area.
* You can add text to doodle with text-tool
* You can select/Move/resize/rotate objects in frame with select-tool
+ * You can resize an object using "<" and ">" keys.
* With arrows keys you can move the selected object
* To flip the current object use "v" key and "h" key
* You can remove a frame object selecting it and pressing "del" key
- * You can clone an object pressing ctrl+d
+ * You can clone an object pressing "ctrl+d"
* To return to "page view" press "esc" key
You can control the zoom with "+" and "-" keys or with zoom tools
case GDK_Up:
tbo_object_move (OBJ, MOVE_UP);
break;
+ case GDK_less:
+ tbo_object_resize (OBJ, RESIZE_LESS);
+ break;
+ case GDK_greater:
+ tbo_object_resize (OBJ, RESIZE_GREATER);
+ break;
case GDK_Down:
tbo_object_move (OBJ, MOVE_DOWN);
break;
}
void
+tbo_object_resize (tbo_object *self, enum RESIZE_OPT type)
+{
+ switch (type)
+ {
+ case RESIZE_LESS:
+ if (self->width > 10 && self->height > 10)
+ {
+ self->width *= 0.95;
+ self->height *= 0.95;
+ }
+ break;
+ case RESIZE_GREATER:
+ self->width *= 1.05;
+ self->height *= 1.05;
+ break;
+ default:
+ break;
+ }
+}
+
+void
tbo_object_save (tbo_object *self, FILE *file)
{
self->save (self, file);
MOVE_RIGHT,
};
+enum RESIZE_OPT
+{
+ RESIZE_LESS,
+ RESIZE_GREATER,
+};
+
static int MOVING_OFFSET = 10;
void tbo_object_flipv (tbo_object *self);
void tbo_object_order_down (tbo_object *self);
void tbo_object_order_up (tbo_object *self);
void tbo_object_move (tbo_object *self, enum MOVE_OPT type);
+void tbo_object_resize (tbo_object *self, enum RESIZE_OPT type);
void tbo_object_save (tbo_object *self, FILE *file);