mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-29 21:50:26 +00:00
7ea728e95f
All the print options will be stored after the user closes or "cancels" the print dialog. There seems to be no good way to store the last selected page size, because print dialogs are different and some just list them as strings - A4, A3, etc. The patch also applies the following changes: - renames display.h's 'struct options' to 'struct print_options' as these were really just for the print dialog - the print_options dialog now stores more options as 'bool' - demote PrintDialog's 'printOptions' to 'private' Fixes #653 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
33 lines
781 B
C++
33 lines
781 B
C++
#ifndef PRINTOPTIONS_H
|
|
#define PRINTOPTIONS_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_printoptions.h"
|
|
|
|
// 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);
|
|
|
|
private:
|
|
Ui::PrintOptions ui;
|
|
struct print_options *printOptions;
|
|
bool hasSetupSlots;
|
|
|
|
private
|
|
slots:
|
|
void radioSixDivesClicked(bool check);
|
|
void radioTwoDivesClicked(bool check);
|
|
void radioOneDiveClicked(bool check);
|
|
void radioTablePrintClicked(bool check);
|
|
void printInColorClicked(bool check);
|
|
void printSelectedClicked(bool check);
|
|
void notesOnTopClicked(bool check);
|
|
void profileOnTopClicked(bool check);
|
|
};
|
|
|
|
#endif // PRINTOPTIONS_H
|