Print: use the actual dive table

Currently only for the table print, but now we use the
actual dive table to iterate trough all dives (find only
selected if needed) and print their 'number' element
in table rows.

Also improves the new-page detection algorithm slightly.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2013-07-10 22:55:40 +03:00
parent eb4312c9ba
commit 9a99aa4c58
2 changed files with 17 additions and 11 deletions

View file

@ -6,6 +6,7 @@
#include "../display.h"
class PrintDialog;
struct dive;
class PrintLayout : public QObject {
Q_OBJECT
@ -29,7 +30,7 @@ private:
void printTwoDives();
void printTable();
QString insertTableHeadingRow();
QString insertTableDataRow();
QString insertTableDataRow(struct dive *dive);
};
#endif