mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
- put hbox around frame table so that it doesn't grow when we give it more
space than it needs - dump.c: separated ordering function from actual printing - added list of vectors and object (on the right side of the variables) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5423 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
11
inst.c
11
inst.c
@@ -25,6 +25,7 @@
|
||||
#include "gui_tool.h"
|
||||
#include "gui_meas.h"
|
||||
#include "gui_inst.h"
|
||||
#include "gui_frame.h"
|
||||
#include "gui.h"
|
||||
#include "inst.h"
|
||||
|
||||
@@ -117,9 +118,11 @@ int inst_select(struct coord pos)
|
||||
|
||||
deselect_outside();
|
||||
edit_nothing();
|
||||
selected_inst = NULL;
|
||||
if (selected_inst)
|
||||
if (selected_inst) {
|
||||
gui_frame_deselect_inst(selected_inst);
|
||||
tool_selected_inst(NULL);
|
||||
}
|
||||
selected_inst = NULL;
|
||||
FOR_INST_PRIOS_DOWN(prio) {
|
||||
if (!show(prio))
|
||||
continue;
|
||||
@@ -157,6 +160,7 @@ int inst_select(struct coord pos)
|
||||
selected:
|
||||
set_path(1);
|
||||
tool_selected_inst(selected_inst);
|
||||
gui_frame_select_inst(selected_inst);
|
||||
if (selected_inst->ops->select)
|
||||
selected_inst->ops->select(selected_inst);
|
||||
return 1;
|
||||
@@ -269,6 +273,7 @@ void inst_deselect(void)
|
||||
if (selected_inst) {
|
||||
set_path(0);
|
||||
tool_selected_inst(NULL);
|
||||
gui_frame_deselect_inst(selected_inst);
|
||||
}
|
||||
deselect_outside();
|
||||
status_set_type_x("");
|
||||
@@ -345,6 +350,8 @@ static struct inst *add_inst(const struct inst_ops *ops, enum inst_prio prio,
|
||||
|
||||
inst = alloc_type(struct inst);
|
||||
inst->ops = ops;
|
||||
inst->vec = NULL;
|
||||
inst->obj = NULL;
|
||||
inst->base = inst->bbox.min = inst->bbox.max = base;
|
||||
inst->outer = curr_frame;
|
||||
inst->active = IS_ACTIVE;
|
||||
|
||||
Reference in New Issue
Block a user