exposurses

Check-in [a7ef007409]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More whitespace changes (mainly). What the hell?!
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a7ef007409438b8cb770ef7a931fc019c034f39b0d8532b1ff98dbd536ec0dee
User & Date: base@atomicules.co.uk 2013-08-26 22:02:27
Context
2013-08-27
11:37
Whoopsie! Can't re-arrange equations it seems. check-in: 1e61137082 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-26
22:02
More whitespace changes (mainly). What the hell?! check-in: a7ef007409 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-25
22:02
Whitespace / retabbing changes check-in: de652712ec user: base@atomicules.co.uk tags: origin/master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to exposurses.c.

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232


233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
			case KEY_DOWN:
				menu_driver(*menu, REQ_DOWN_ITEM);
				break;
			case KEY_UP:
				menu_driver(*menu, REQ_UP_ITEM);
				break;
			case 10: { /* ENTER */
				 ITEM *cur;
				 void (*p)(char *);

				 cur = current_item(*menu);
				 p = item_userptr(cur);
				 p((char *)item_name(cur));
				 pos_menu_cursor(*menu);

				 if (selection_counter == 0) {
					 menu_sel_last = menu_counter;
					 selection_counter += 1;
				 }
				 if (menu_counter != menu_sel_last)
					 selection_counter += 1;
				 if (selection_counter == 2) { 
					 /* calculate the other menu */
					 /* how to get missing menu? */
					 if (strcmp("", iso_sel) == 0) {


						 /* Test setting item in menu */
						 set_top_row(iso_menu, 3);
						 /* This works, but plain refreshing doesn't work properly */
						 /* But cheating and using menu_driver to go up/down does */
						 menu_driver(iso_menu, REQ_DOWN_ITEM);
						 menu_driver(iso_menu, REQ_UP_ITEM);
						 wrefresh(iso_win);
					 }
					 if (strcmp("", shutter_sel) == 0) {
						 set_top_row(shutter_menu, 3);
						 menu_driver(shutter_menu, REQ_DOWN_ITEM);
						 menu_driver(shutter_menu, REQ_UP_ITEM);
						 wrefresh(shutter_win);
					 }
					 if (strcmp("", aperture_sel) == 0) {
						 set_top_row(aperture_menu, 3);
						 menu_driver(aperture_menu, REQ_DOWN_ITEM);
						 menu_driver(aperture_menu, REQ_UP_ITEM);
						 wrefresh(aperture_win);
					 }
					 /* clear the selections for next time */
					 selection_counter = 0;
					 strcpy(iso_sel, "");
					 strcpy(shutter_sel, "");
					 strcpy(aperture_sel, "");
					 break;
				}
			break;
			}
		}
		wrefresh(*win);
	}	
	/* Unpost and free all the memory taken up */
	unpost_menu(iso_menu);
	unpost_menu(shutter_menu);







|
|

|
|
|
|

|


|
|

|
|
|
|
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|







208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
			case KEY_DOWN:
				menu_driver(*menu, REQ_DOWN_ITEM);
				break;
			case KEY_UP:
				menu_driver(*menu, REQ_UP_ITEM);
				break;
			case 10: { /* ENTER */
				ITEM *cur;
				void (*p)(char *);

				cur = current_item(*menu);
				p = item_userptr(cur);
				p((char *)item_name(cur));
				pos_menu_cursor(*menu);

				if (selection_counter == 0) {
					 menu_sel_last = menu_counter;
					 selection_counter += 1;
				}
				if (menu_counter != menu_sel_last)
					 selection_counter += 1;
				if (selection_counter == 2) { 
					/* calculate the other menu */
					/* how to get missing menu? */
					if (strcmp("", iso_sel) == 0) {
						set_menu_pattern(iso_menu, "200");

						/* Test setting item in menu
							set_top_row(iso_menu, 3);
						/* This works, but plain refreshing doesn't work properly */
						/* But cheating and using menu_driver to go up/down does */
						menu_driver(iso_menu, REQ_DOWN_ITEM);
						menu_driver(iso_menu, REQ_UP_ITEM);
						wrefresh(iso_win);
					}
					if (strcmp("", shutter_sel) == 0) {
						set_top_row(shutter_menu, 3);
						menu_driver(shutter_menu, REQ_DOWN_ITEM);
						menu_driver(shutter_menu, REQ_UP_ITEM);
						wrefresh(shutter_win);
					}
					if (strcmp("", aperture_sel) == 0) {
						set_top_row(aperture_menu, 3);
						menu_driver(aperture_menu, REQ_DOWN_ITEM);
						menu_driver(aperture_menu, REQ_UP_ITEM);
						wrefresh(aperture_win);
					}
					/* clear the selections for next time */
					selection_counter = 0;
					strcpy(iso_sel, "");
					strcpy(shutter_sel, "");
					strcpy(aperture_sel, "");
					break;
				}
				break;
			}
		}
		wrefresh(*win);
	}	
	/* Unpost and free all the memory taken up */
	unpost_menu(iso_menu);
	unpost_menu(shutter_menu);