exposurses

Check-in [2dc1212485]
Login

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

Overview
Comment:Enable exit key, change help text to suit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 2dc1212485921162533270375794b9f8ff5eb8adc96907f24bea4629583aa599
User & Date: base@atomicules.co.uk 2013-09-02 13:27:26
Context
2013-09-02
14:32
Learning notes and better forced refreshing of menus - Add learning notes - Use scroll page up/down and item up/down to force refresh and stop two items showing as selected check-in: dd2fc74444 user: base@atomicules.co.uk tags: origin/master, trunk
13:27
Enable exit key, change help text to suit check-in: 2dc1212485 user: base@atomicules.co.uk tags: origin/master, trunk
10:20
Implement exposure equations and matching for Aperture menu Also: More evidence I am in a continual half-daze - Need to define shutter value as double in `aperture` as otherwise both arguments will be integers and I'm guessing it'd not going to work out well. Plus... need to use `fraction_to_double` anyway to feed the value in. - Had done the "substring" thing wrong in `strncpy` and was one decimal place off in getting the paerture value. I.e. would have got "1." instead of "1.4" from "f/1.4" - Like the fool I am, in the loop and the copy and paste I'd done, I'd not changed from `aperture_array[0]` to `aperture_array[n]` check-in: 845d8653eb user: base@atomicules.co.uk tags: origin/master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to exposurses.c.

159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
	post_menu(shutter_menu);
	post_menu(aperture_menu);
	wrefresh(iso_win);
	wrefresh(shutter_win);
	wrefresh(aperture_win);

	attron(COLOR_PAIR(2));
	mvprintw(LINES - 2, 0, "Use PageUp and PageDown to scoll down or up a page of items");
	mvprintw(LINES - 1, 0, "Arrow Keys to navigate (F1 to Exit)");
	attroff(COLOR_PAIR(2));
	refresh();

	/* set default menu */
	menu = &iso_menu;
	win = &iso_win;

	while((c = getch())) {
		switch(c) {
			case KEY_LEFT:
				if (menu_counter > 1)
					menu_counter -= 1;
				switch(menu_counter) {
					case 1:
						menu = &iso_menu;







|
|







|







159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
	post_menu(shutter_menu);
	post_menu(aperture_menu);
	wrefresh(iso_win);
	wrefresh(shutter_win);
	wrefresh(aperture_win);

	attron(COLOR_PAIR(2));
	mvprintw(LINES - 2, 0, "Select ISO and then one of Shutter/Aperture to calculate other of Shutter/Aperture");
	mvprintw(LINES - 1, 0, "Arrow keys to navigate, Enter to select, Q to exit");
	attroff(COLOR_PAIR(2));
	refresh();

	/* set default menu */
	menu = &iso_menu;
	win = &iso_win;

	while((c = getch()) != 81) {
		switch(c) {
			case KEY_LEFT:
				if (menu_counter > 1)
					menu_counter -= 1;
				switch(menu_counter) {
					case 1:
						menu = &iso_menu;