Add support for printing only the selected dives

Right now we just implicitly decide "print only selected dives" when
there is more than one dive selected (and then print all dives if only
one dive is selected).

We probably should have an checkbutton in the dive details page for the
choice.  But I wanted to avoid the pain that is gtk as far as possible
for the initial implementation.  The code is ready to be changed to just
use a checkbutton instead.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-08-30 09:30:59 -07:00
parent 348afc3f57
commit 6a210e573d
2 changed files with 43 additions and 10 deletions

View file

@ -28,6 +28,7 @@ extern void attach_tooltip(int x, int y, int w, int h, const char *text);
struct options {
enum { PRETTY, TABLE } type;
int print_selected;
};
extern char zoomed_plot;