/ATF2/FlightSim/testApps/OCFF/outputfileFF.m

http://atf2flightsim.googlecode.com/ · MATLAB · 121 lines · 37 code · 24 blank · 60 comment · 4 complexity · 7d9c7c48c3a5ed40124082560dd5ab52 MD5 · raw file

  1. function varargout = outputfileFF(varargin)
  2. % OUTPUTFILEFF M-file for outputfileFF.fig
  3. % OUTPUTFILEFF, by itself, creates a new OUTPUTFILEFF or raises the existing
  4. % singleton*.
  5. %
  6. % H = OUTPUTFILEFF returns the handle to a new OUTPUTFILEFF or the handle to
  7. % the existing singleton*.
  8. %
  9. % OUTPUTFILEFF('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in OUTPUTFILEFF.M with the given input arguments.
  11. %
  12. % OUTPUTFILEFF('Property','Value',...) creates a new OUTPUTFILEFF or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before outputfileFF_OpeningFcn gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to outputfileFF_OpeningFcn via varargin.
  17. %
  18. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  19. % instance to run (singleton)".
  20. %
  21. % See also: GUIDE, GUIDATA, GUIHANDLES
  22. % Edit the above text to modify the response to help outputfileFF
  23. % Last Modified by GUIDE v2.5 15-Apr-2009 18:11:05
  24. % Begin initialization code - DO NOT EDIT
  25. gui_Singleton = 1;
  26. gui_State = struct('gui_Name', mfilename, ...
  27. 'gui_Singleton', gui_Singleton, ...
  28. 'gui_OpeningFcn', @outputfileFF_OpeningFcn, ...
  29. 'gui_OutputFcn', @outputfileFF_OutputFcn, ...
  30. 'gui_LayoutFcn', [] , ...
  31. 'gui_Callback', []);
  32. if nargin && ischar(varargin{1})
  33. gui_State.gui_Callback = str2func(varargin{1});
  34. end
  35. if nargout
  36. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  37. else
  38. gui_mainfcn(gui_State, varargin{:});
  39. end
  40. % End initialization code - DO NOT EDIT
  41. % --- Executes just before outputfileFF is made visible.
  42. function outputfileFF_OpeningFcn(hObject, eventdata, handles, varargin)
  43. % This function has no output args, see OutputFcn.
  44. % hObject handle to figure
  45. % eventdata reserved - to be defined in a future version of MATLAB
  46. % handles structure with handles and user data (see GUIDATA)
  47. % varargin command line arguments to outputfileFF (see VARARGIN)
  48. % Choose default command line output for outputfileFF
  49. handles.output = hObject;
  50. % Update handles structure
  51. guidata(hObject, handles);
  52. % UIWAIT makes outputfileFF wait for user response (see UIRESUME)
  53. % uiwait(handles.figure1);
  54. % --- Outputs from this function are returned to the command line.
  55. function varargout = outputfileFF_OutputFcn(hObject, eventdata, handles)
  56. % varargout cell array for returning output args (see VARARGOUT);
  57. % hObject handle to figure
  58. % eventdata reserved - to be defined in a future version of MATLAB
  59. % handles structure with handles and user data (see GUIDATA)
  60. % Get default command line output from handles structure
  61. varargout{1} = handles.output;
  62. function edit1_Callback(hObject, eventdata, handles)
  63. global FL
  64. FL.OCFF.savefilename = get(hObject,'String');
  65. % hObject handle to edit1 (see GCBO)
  66. % eventdata reserved - to be defined in a future version of MATLAB
  67. % handles structure with handles and user data (see GUIDATA)
  68. % Hints: get(hObject,'String') returns contents of edit1 as text
  69. % str2double(get(hObject,'String')) returns contents of edit1 as a double
  70. % --- Executes during object creation, after setting all properties.
  71. function edit1_CreateFcn(hObject, eventdata, handles)
  72. % hObject handle to edit1 (see GCBO)
  73. % eventdata reserved - to be defined in a future version of MATLAB
  74. % handles empty - handles not created until after all CreateFcns called
  75. % Hint: edit controls usually have a white background on Windows.
  76. % See ISPC and COMPUTER.
  77. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  78. set(hObject,'BackgroundColor','white');
  79. end
  80. % --- Executes on button press in checkbox1.
  81. function checkbox1_Callback(hObject, eventdata, handles)
  82. global FL
  83. if (get(hObject,'Value') == get(hObject,'Max'))
  84. FL.OCFF.overwrite=0;
  85. else
  86. FL.OCFF.overwrite=1;
  87. end
  88. % hObject handle to checkbox1 (see GCBO)
  89. % eventdata reserved - to be defined in a future version of MATLAB
  90. % handles structure with handles and user data (see GUIDATA)
  91. % Hint: get(hObject,'Value') returns toggle state of checkbox1
  92. % --- Executes on button press in pushbutton1.
  93. function pushbutton1_Callback(hObject, eventdata, handles)
  94. close(handles.figure1);
  95. % hObject handle to pushbutton1 (see GCBO)
  96. % eventdata reserved - to be defined in a future version of MATLAB
  97. % handles structure with handles and user data (see GUIDATA)