1 // SPDX-FileCopyrightText: 2002 Dominique Devriese <devriese@kde.org>
2 
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 
5 #ifndef KIG_FILTERS_IMAGEEXPORTEROPTIONS_H
6 #define KIG_FILTERS_IMAGEEXPORTEROPTIONS_H
7 
8 #include "../misc/unit.h"
9 
10 #include <QWidget>
11 
12 class QSize;
13 class Ui_ImageExporterOptionsWidget;
14 
15 class ImageExporterOptions
16   : public QWidget
17 {
18   Q_OBJECT
19 
20   QSize msize;
21   Ui_ImageExporterOptionsWidget* expwidget;
22   double maspectratio;
23   Unit mxunit;
24   Unit myunit;
25 
26   // this is set by slotWidthChanged() when they set the other input
27   // widget's value, to avoid reacting to internal changes to the
28   // value like to user changes...
29   bool minternallysettingstuff;
30 public:
31   explicit ImageExporterOptions( QWidget* parent );
32   ~ImageExporterOptions();
33 
34   void setGrid( bool grid );
35   bool showGrid() const;
36 
37   void setAxes( bool axes );
38   bool showAxes() const;
39 
40   void setImageSize( const QSize& size );
41   QSize imageSize() const;
42 
43 protected slots:
44   void slotWidthChanged( double );
45   void slotHeightChanged( double );
46   void slotUnitChanged( int );
47 };
48 
49 #endif
50