Mercurial > hg > octave-lyh
comparison scripts/ui/questdlg.m @ 17314:09543e9c8f40
Use explicit form of end (endif, endfor, etc.) in core m-files.
* scripts/general/interp1.m, scripts/image/rgb2ind.m,
scripts/plot/__gnuplot_drawnow__.m, scripts/plot/private/__ezplot__.m,
scripts/plot/private/__go_draw_axes__.m, scripts/special-matrix/gallery.m,
scripts/strings/strjoin.m, scripts/testfun/assert.m, scripts/ui/questdlg.m:
Use explicit form of end (endif, endfor, etc.) in core m-files.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 16:42:13 -0700 |
parents | bc924baa2c4e |
children |
comparison
equal
deleted
inserted
replaced
17313:ab71b9829752 | 17314:09543e9c8f40 |
---|---|
80 case 1 | 80 case 1 |
81 ## default button string | 81 ## default button string |
82 options{4} = varargin{1}; # default | 82 options{4} = varargin{1}; # default |
83 if (! any (strcmp (options{4}, options(1:3)))) | 83 if (! any (strcmp (options{4}, options(1:3)))) |
84 error (defbtn_error_msg); | 84 error (defbtn_error_msg); |
85 end | 85 endif |
86 | 86 |
87 case 3 | 87 case 3 |
88 ## two buttons and default button string | 88 ## two buttons and default button string |
89 options{1} = varargin{1}; # button1 | 89 options{1} = varargin{1}; # button1 |
90 options{2} = ""; # not used, no middle button | 90 options{2} = ""; # not used, no middle button |
91 options{3} = varargin{2}; # button3 | 91 options{3} = varargin{2}; # button3 |
92 options{4} = varargin{3}; # default | 92 options{4} = varargin{3}; # default |
93 if (! any (strcmp (options{4}, options([1 3])))) | 93 if (! any (strcmp (options{4}, options([1 3])))) |
94 error (defbtn_error_msg); | 94 error (defbtn_error_msg); |
95 end | 95 endif |
96 | 96 |
97 case 4 | 97 case 4 |
98 ## three buttons and default button string | 98 ## three buttons and default button string |
99 options{1} = varargin{1}; # button1 | 99 options{1} = varargin{1}; # button1 |
100 options{2} = varargin{2}; # button2 | 100 options{2} = varargin{2}; # button2 |
101 options{3} = varargin{3}; # button3 | 101 options{3} = varargin{3}; # button3 |
102 options{4} = varargin{4}; # default | 102 options{4} = varargin{4}; # default |
103 if (! any (strcmp (options{4}, options(1:3)))) | 103 if (! any (strcmp (options{4}, options(1:3)))) |
104 error (defbtn_error_msg); | 104 error (defbtn_error_msg); |
105 end | 105 endif |
106 | 106 |
107 otherwise | 107 otherwise |
108 print_usage (); | 108 print_usage (); |
109 | 109 |
110 endswitch | 110 endswitch |