diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 10:54:25 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 11:06:01 +0300 |
commit | 74f989bc46a06c124283fa851a06dd093f817c96 (patch) | |
tree | 68f8d82be089e03a208de555d30f3cce3d546903 /qt-ui/printoptions.h | |
parent | 01ef9f217519cbbcbf4bdce074635a29cfab7152 (diff) | |
download | subsurface-74f989bc46a06c124283fa851a06dd093f817c96.tar.gz |
Print: connect all the options widgets to slots
By connecting to slots we always modify values at a previously
set 'struct options' pointer.
Also have the setup of slots and pre-set values in a
separate setup(struct options *) function.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printoptions.h')
-rw-r--r-- | qt-ui/printoptions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h index a1ad1d652..83e847115 100644 --- a/qt-ui/printoptions.h +++ b/qt-ui/printoptions.h @@ -16,6 +16,7 @@ Q_OBJECT public: explicit PrintOptions(QWidget *parent = 0, struct options *printOpt = 0); + void setup(struct options *printOpt); private: Ui::PrintOptions *ui; @@ -23,11 +24,19 @@ private: void initSliderWithLabel(QSlider *slider, QLabel *label, int value); QString formatSliderValueText(int value); struct options *printOptions; + bool hasSetupSlots; private slots: void sliderPHeightMoved(int value); void sliderOHeightMoved(int value); void sliderNHeightMoved(int value); + 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); }; #endif |