2022-03-10 22:35:48 +03:00
|
|
|
#ifndef CHARTAXISEDITOR_H
|
|
|
|
#define CHARTAXISEDITOR_H
|
|
|
|
|
|
|
|
#include "lrchartitem.h"
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
#include <QWidget>
|
|
|
|
|
2022-03-10 22:35:48 +03:00
|
|
|
namespace Ui {
|
|
|
|
class ChartAxisEditor;
|
|
|
|
}
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class ChartAxisEditor: public QWidget {
|
2022-03-10 22:35:48 +03:00
|
|
|
Q_OBJECT
|
2024-09-04 17:31:16 +03:00
|
|
|
public:
|
2022-03-10 22:35:48 +03:00
|
|
|
ChartAxisEditor(LimeReport::ChartItem* item, LimeReport::PageDesignIntf* page, bool isXAxis,
|
2024-09-04 17:31:16 +03:00
|
|
|
QSettings* settings = 0, QWidget* parent = 0);
|
2022-03-10 22:35:48 +03:00
|
|
|
~ChartAxisEditor();
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
QSettings* settings();
|
2022-03-10 22:35:48 +03:00
|
|
|
private slots:
|
|
|
|
void on_minimumCheckBox_stateChanged(int arg1);
|
|
|
|
void on_maximumCheckBox_stateChanged(int arg1);
|
|
|
|
void on_stepCheckBox_stateChanged(int arg1);
|
|
|
|
void on_pushButtonOk_clicked();
|
|
|
|
void on_enableScaleCalculation_checkbox_stateChanged(int arg1);
|
|
|
|
|
|
|
|
void on_cancelButton_clicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void readSetting();
|
|
|
|
void writeSetting();
|
|
|
|
void init();
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
Ui::ChartAxisEditor* ui;
|
2022-03-10 22:35:48 +03:00
|
|
|
LimeReport::ChartItem* m_chartItem;
|
|
|
|
LimeReport::PageDesignIntf* m_page;
|
|
|
|
QSettings* m_settings;
|
|
|
|
bool m_isXAxis;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CHARTAXISEDITOR_H
|