diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-04 15:13:40 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-04 15:13:40 +0200 |
commit | 08cf1be2123e38541e83eb159a3580e2354c4c47 (patch) | |
tree | 500c637a5764ce72483e1598a5f1f372951ec0d7 /qt-ui/printlayout.h | |
parent | ecf483db460e78d8dc08e5f1eb6b57ccbe7aa6ba (diff) | |
download | subsurface-08cf1be2123e38541e83eb159a3580e2354c4c47.tar.gz |
PrintLayout: add estimateTotalDives()
estimateTotalDives() is used to calculate the total dives
to be printed, it requires a 'struct dive' pointer
and a couple of 'int' pointers for the iterator 'i' and
'total' return.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index 1ed19e271..f21940a83 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -34,11 +34,15 @@ private: QList<unsigned int> profilePrintColumnWidths, profilePrintRowHeights; void setup(); + void estimateTotalDives(struct dive *dive, int *i, int *total) const; void printProfileDives(int divesPerRow, int divesPerColumn); QTableView *createProfileTable(ProfilePrintModel *model, const int tableW); void printTable(); void addTablePrintDataRow(TablePrintModel *model, int row, struct dive *dive) const; void addTablePrintHeadingRow(TablePrintModel *model, int row) const; + +signals: + void signalProgress(int); }; #endif |