Changeset 61 for trunk/src/set_object.m
- Timestamp:
- Mar 24, 2010, 12:51:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r55 r61 709 709 if ~isempty(huvmat) 710 710 hhuvmat=guidata(huvmat); 711 set(hhuvmat.create,'Value',0)712 set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green711 % set(hhuvmat.create,'Value',0) 712 % set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green 713 713 % set(hhuvmat.LINE,'Value',0) 714 714 % set(hhuvmat.LINE,'BackgroundColor',[0 1 0])%put unactivated buttons to green … … 733 733 function PLOT_Callback(hObject, eventdata, handles) 734 734 735 hsetobject=get(handles.PLOT,'parent'); 736 SetData=get(hsetobject,'UserData');%get the hidden interface data 735 SetData=get(handles.set_object,'UserData');%get the hidden interface data 737 736 huvmat=findobj('Name','uvmat');%find the current uvmat interface handle 738 hlist_object=findobj(huvmat,'Tag','list_object ');%handles of the object list in the GUI uvmat737 hlist_object=findobj(huvmat,'Tag','list_object_1');%handles of the object list in the GUI uvmat 739 738 IndexObj=get(hlist_object,'Value');%position in the objet list 740 739 UvData=get(huvmat,'UserData');%Data associated to the GUI uvmat … … 767 766 UvData.Object{IndexObj}=update_obj(UvData,IndexObj,ObjectData,SetData.PlotHandles); 768 767 768 769 769 set(huvmat,'UserData',UvData)%update the data in the uvmat interface 770 770 list_str=get(hlist_object,'String'); … … 772 772 % list_str{IndexObj}=[num2str(IndexObj) '-' TITLE]; 773 773 list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Style]; 774 if isequal(length(list_str),IndexObj)775 list_str{IndexObj+1}='more...';776 end777 set(hlist_object ,'String',list_str)778 set(hlist_object ,'Value',IndexObj)774 % if isequal(length(list_str),IndexObj) 775 % list_str{IndexObj+1}='more...'; 776 % end 777 set(hlist_object_1,'String',list_str) 778 set(hlist_object_1,'Value',IndexObj) 779 779 780 780 %update create buttons on the GUI uvmat: set to object edit mode after object plotting … … 782 782 %desactivate all create buttons in mode edit 783 783 % if isequal(get(hhuvmat.edit,'Value'),0) 784 set(hhuvmat.create,'Value',0)785 set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green784 % set(hhuvmat.create,'Value',0) 785 % set(hhuvmat.create,'BackgroundColor',[0 1 0])%put unactivated buttons to green 786 786 % set(hhuvmat.LINE,'Value',0) 787 787 % set(hhuvmat.LINE,'BackgroundColor',[0 1 0])%put unactivated buttons to green
Note: See TracChangeset
for help on using the changeset viewer.