cutter/src/dialogs/preferences/GraphOptionsWidget.h
karliss e28ee3bebd
Add options for tweaking graph layout. (#2246)
* Fix overview refresh when switching layout.
2020-06-16 13:43:45 +03:00

42 lines
794 B
C++

#ifndef GRAPHOPTIONSWIDGET_H
#define GRAPHOPTIONSWIDGET_H
#include <QDialog>
#include <QPushButton>
#include <memory>
#include "core/Cutter.h"
class PreferencesDialog;
namespace Ui {
class GraphOptionsWidget;
}
class GraphOptionsWidget : public QDialog
{
Q_OBJECT
public:
explicit GraphOptionsWidget(PreferencesDialog *dialog);
~GraphOptionsWidget();
private:
std::unique_ptr<Ui::GraphOptionsWidget> ui;
void triggerOptionsChanged();
private slots:
void updateOptionsFromVars();
void on_maxColsSpinBox_valueChanged(int value);
void on_graphOffsetCheckBox_toggled(bool checked);
void checkTransparentStateChanged(int checked);
void bitmapGraphScaleValueChanged(double value);
void layoutSpacingChanged();
};
#endif //GRAPHOPTIONSWIDGET_H