summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/printoptions.h')
-rw-r--r--qt-ui/printoptions.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h
index 13ef4e310..d96b27a53 100644
--- a/qt-ui/printoptions.h
+++ b/qt-ui/printoptions.h
@@ -13,24 +13,33 @@ struct print_options {
} type;
enum print_template {
ONE_DIVE,
- TWO_DIVE
+ TWO_DIVE,
+ CUSTOM
} p_template;
bool print_selected;
bool color_selected;
bool landscape;
};
+struct template_options {
+ int font_index;
+ int color_palette_index;
+ double font_size;
+ double line_spacing;
+};
+
// should be based on a custom QPrintDialog class
class PrintOptions : public QWidget {
Q_OBJECT
public:
- explicit PrintOptions(QWidget *parent = 0, struct print_options *printOpt = 0);
- void setup(struct print_options *printOpt);
+ explicit PrintOptions(QWidget *parent, struct print_options *printOpt, struct template_options *templateOpt);
+ void setup();
private:
Ui::PrintOptions ui;
struct print_options *printOptions;
+ struct template_options *templateOptions;
bool hasSetupSlots;
private
@@ -41,6 +50,7 @@ slots:
void on_radioTablePrint_clicked(bool check);
void on_radioDiveListPrint_clicked(bool check);
void on_printTemplate_currentIndexChanged(int index);
+ void on_editButton_clicked();
};
#endif // PRINTOPTIONS_H