File indexing completed on 2025-10-12 03:31:34

0001 /*
0002     File                 : GridDialog.h
0003     Project              : LabPlot
0004     Description          : dialog for editing the grid properties for the worksheet view
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2011 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef GRIDDIALOG_H
0011 #define GRIDDIALOG_H
0012 
0013 #include "commonfrontend/worksheet/WorksheetView.h"
0014 #include <QDialog>
0015 
0016 class QComboBox;
0017 class QSpinBox;
0018 class KColorButton;
0019 
0020 class GridDialog : public QDialog {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit GridDialog(QWidget*);
0025     ~GridDialog() override;
0026     void save(WorksheetView::GridSettings&);
0027 
0028 private:
0029     QComboBox* cbStyle;
0030     QSpinBox* sbHorizontalSpacing;
0031     QSpinBox* sbVerticalSpacing;
0032     KColorButton* kcbColor;
0033     QSpinBox* sbOpacity;
0034 };
0035 
0036 #endif