Changeset 67 for trunk/src/set_object.m
- Timestamp:
- Mar 25, 2010, 6:48:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r61 r67 89 89 PlotHandles=[]; 90 90 end 91 desable_open=0;%default: allow reading of object from xml file 92 desable_plot=0;%default 91 enable_plot=0;%default 93 92 SetData.PlotHandles=PlotHandles; 94 if exist('data','var') && isfield(data,'ParentButton')95 SetData.ParentButton=data.ParentButton;96 set(hObject,'DeleteFcn',{@closefcn,SetData.ParentButton})%97 end93 % if exist('data','var') && isfield(data,'ParentButton') 94 % SetData.ParentButton=data.ParentButton; 95 % set(hObject,'DeleteFcn',{@closefcn,SetData.ParentButton})% 96 % end 98 97 set(hObject,'UserData',SetData) 99 98 … … 101 100 if exist('data','var') 102 101 if isfield(data,'desable_plot') 103 desable_plot=data.desable_plot;%test to desable button PLOT (display mode)102 enable_plot=~data.desable_plot;%test to desable button PLOT (display mode) 104 103 end 105 104 if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case … … 242 241 % set(handles.OPEN,'Visible','on') 243 242 % end 244 if desable_plot245 set(handles.PLOT,' Visible','off')243 if enable_plot 244 set(handles.PLOT,'enable','on') 246 245 else 247 set(handles.PLOT,' Visible','on')246 set(handles.PLOT,'enable','off') 248 247 end 249 248 … … 793 792 % set(hhuvmat.VOLUME,'BackgroundColor',[0 1 0])%put unactivated buttons to green 794 793 % end 794 set(hhuvmat.MenuEditObject,'enable','on') 795 795 set(hhuvmat.edit,'Value',1) 796 796 set(hhuvmat.edit,'BackgroundColor',[1 1 0]);% paint the edit text in yellow 797 set(hhuvmat.edit,'Value',1);%798 797 UvData.MouseAction='edit_object'; % set the edit button to 'on' 799 798 set(huvmat,'UserData',UvData)
Note: See TracChangeset
for help on using the changeset viewer.