2013-07-09 12:37:53 +00:00
|
|
|
#ifndef PRINTOPTIONS_H
|
|
|
|
#define PRINTOPTIONS_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2013-07-09 20:43:21 +00:00
|
|
|
#include <QSlider>
|
|
|
|
#include <QLabel>
|
2013-07-09 12:37:53 +00:00
|
|
|
|
2013-10-03 18:54:24 +00:00
|
|
|
#include "ui_printoptions.h"
|
2013-07-09 12:37:53 +00:00
|
|
|
|
|
|
|
// should be based on a custom QPrintDialog class
|
|
|
|
class PrintOptions : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-07-09 20:43:21 +00:00
|
|
|
explicit PrintOptions(QWidget *parent = 0, struct options *printOpt = 0);
|
2013-07-10 07:54:25 +00:00
|
|
|
void setup(struct options *printOpt);
|
2013-07-09 12:37:53 +00:00
|
|
|
|
|
|
|
private:
|
2013-10-03 18:54:25 +00:00
|
|
|
Ui::PrintOptions ui;
|
2013-07-09 20:43:21 +00:00
|
|
|
void setLabelFromSlider(QSlider *slider, QLabel *label);
|
|
|
|
void initSliderWithLabel(QSlider *slider, QLabel *label, int value);
|
|
|
|
QString formatSliderValueText(int value);
|
|
|
|
struct options *printOptions;
|
2013-07-10 07:54:25 +00:00
|
|
|
bool hasSetupSlots;
|
2013-07-09 20:43:21 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void sliderPHeightMoved(int value);
|
|
|
|
void sliderOHeightMoved(int value);
|
|
|
|
void sliderNHeightMoved(int value);
|
2013-07-10 07:54:25 +00:00
|
|
|
void radioSixDivesClicked(bool check);
|
|
|
|
void radioTwoDivesClicked(bool check);
|
|
|
|
void radioTablePrintClicked(bool check);
|
|
|
|
void printInColorClicked(bool check);
|
|
|
|
void printSelectedClicked(bool check);
|
|
|
|
void notesOnTopClicked(bool check);
|
|
|
|
void profileOnTopClicked(bool check);
|
2013-07-09 12:37:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|