Skip to content

Commit

Permalink
Printing: remove the print_options struct from display.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gehadelrobey authored and dirkhh committed Jun 4, 2015
1 parent 1cff998 commit b4e1563
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
11 changes: 0 additions & 11 deletions display.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion qt-ui/printdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <QDialog>
#include <QPrinter>
#include "../display.h"
#include "printoptions.h"

class QProgressBar;
class PrintOptions;
Expand Down
1 change: 0 additions & 1 deletion qt-ui/printoptions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "printoptions.h"
#include "display.h"

PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
{
Expand Down
11 changes: 11 additions & 0 deletions qt-ui/printoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4e1563

Please sign in to comment.