summaryrefslogtreecommitdiffstats
path: root/qt-ui/printoptions.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-05 12:01:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-05 12:01:43 -0700
commit9c6a3a7ff387578ddede2e69d8b994a11cf8eaee (patch)
tree72a08592a24d8d3d1f4fc7d7713da8029bc80c3f /qt-ui/printoptions.h
parent35dc81410518e6d39ba8b3f99348884778bedc5b (diff)
parentcc53dc7acf801f022612678f697e6d76c2443153 (diff)
downloadsubsurface-9c6a3a7ff387578ddede2e69d8b994a11cf8eaee.tar.gz
Merge branch 'custom-print' of github.com:neolit123/subsurface
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