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:
Gehad elrobey 2015-05-30 13:27:14 +02:00 committed by Dirk Hohndel
parent 1cff998f84
commit b4e1563d10
4 changed files with 12 additions and 13 deletions

View file

@ -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;

View file

@ -3,7 +3,7 @@
#include <QDialog>
#include <QPrinter>
#include "../display.h"
#include "printoptions.h"
class QProgressBar;
class PrintOptions;

View file

@ -1,5 +1,4 @@
#include "printoptions.h"
#include "display.h"
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
{

View file

@ -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