mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 *);
|
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 dc_number;
|
||||||
|
|
||||||
extern unsigned int amount_selected;
|
extern unsigned int amount_selected;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QPrinter>
|
#include <QPrinter>
|
||||||
#include "../display.h"
|
#include "printoptions.h"
|
||||||
|
|
||||||
class QProgressBar;
|
class QProgressBar;
|
||||||
class PrintOptions;
|
class PrintOptions;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#include "printoptions.h"
|
#include "printoptions.h"
|
||||||
#include "display.h"
|
|
||||||
|
|
||||||
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
|
PrintOptions::PrintOptions(QWidget *parent, struct print_options *printOpt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,6 +5,17 @@
|
||||||
|
|
||||||
#include "ui_printoptions.h"
|
#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
|
// should be based on a custom QPrintDialog class
|
||||||
class PrintOptions : public QWidget {
|
class PrintOptions : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Add table
Reference in a new issue