mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Printing: remove the print_options struct from display.h
Move print_options struct to printoptions.h, its more relevant to be placed here. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1cff998f84
commit
b4e1563d10
4 changed files with 12 additions and 13 deletions
11
display.h
11
display.h
|
@ -35,17 +35,6 @@ typedef enum {
|
|||
|
||||
extern struct divecomputer *select_dc(struct dive *);
|
||||
|
||||
struct print_options {
|
||||
enum print_type {
|
||||
DIVELIST,
|
||||
TABLE,
|
||||
STATISTICS
|
||||
} type;
|
||||
bool print_selected;
|
||||
bool color_selected;
|
||||
bool landscape;
|
||||
};
|
||||
|
||||
extern unsigned int dc_number;
|
||||
|
||||
extern unsigned int amount_selected;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <QDialog>
|
||||
#include <QPrinter>
|
||||
#include "../display.h"
|
||||
#include "printoptions.h"
|
||||
|
||||
class QProgressBar;
|
||||
class PrintOptions;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include "printoptions.h"
|
||||
#include "display.h"
|
||||
|
||||
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
|
||||
{
|
||||
|
|
|
@ -5,6 +5,17 @@
|
|||
|
||||
#include "ui_printoptions.h"
|
||||
|
||||
struct print_options {
|
||||
enum print_type {
|
||||
DIVELIST,
|
||||
TABLE,
|
||||
STATISTICS
|
||||
} type;
|
||||
bool print_selected;
|
||||
bool color_selected;
|
||||
bool landscape;
|
||||
};
|
||||
|
||||
// should be based on a custom QPrintDialog class
|
||||
class PrintOptions : public QWidget {
|
||||
Q_OBJECT
|
||||
|
|
Loading…
Reference in a new issue