1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-07-04 22:37:39 +03:00
fped/gui_frame_drag.h
werner 093a34f860 Added support for reordering rows and columns in a table via the GUI. To move
a column, drag the variable or any of its values and drag horizontally. To move
a row, drag one of its value vertically.

- gui_frame.c (table_var_select_event, table_value_select_event): return FALSE
  if dragging is possible
- gui_frame.c (build_table), gui_frame_drag.h, gui_frame_drag.c, Makefile:
  support for rearranging tables using Gtk's drag and drop mechanism
- TODO: two items less



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5929 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-04-23 13:43:19 +00:00

26 lines
602 B
C

/*
* gui_frame_drag.h - GUI, dragging of frame 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 GUI_FRAME_DRAG_H
#define GUI_FRAME_DRAG_H
#include <gtk/gtk.h>
#include "obj.h"
void setup_var_drag(struct var *var);
void setup_value_drag(struct value *value);
#endif /* !GUI_FRAME_DRAG_H */