0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00
LimeReport/limereport/items/lrbordereditor.h
Андрей Лухнов 0fca7169d3 Define code style and format all source file using clang-format-14
except those placed in 3rdparty directories.
2024-09-19 21:09:38 +03:00

49 lines
1.2 KiB
C++

#ifndef LRBORDEREDITOR_H
#define LRBORDEREDITOR_H
#include "lrbasedesignintf.h"
#include <QDialog>
namespace LimeReport {
namespace Ui {
class BorderEditor;
}
class LIMEREPORT_EXPORT BorderEditor: public QDialog {
Q_OBJECT
public:
explicit BorderEditor(QWidget* parent = nullptr);
void loadItem(LimeReport::BaseDesignIntf* item);
LimeReport::BaseDesignIntf::BorderLines borderSides();
LimeReport::BaseDesignIntf::BorderStyle borderStyle();
QString borderColor();
double borderWidth();
~BorderEditor();
private slots:
void on_listWidget_currentRowChanged(int currentRow);
void on_comboBox_currentTextChanged(const QString& arg1);
void on_noLines_clicked();
void on_topLine_clicked(bool checked);
void on_bottomLine_clicked(bool checked);
void on_leftLine_clicked(bool checked);
void on_rightLine_clicked(bool checked);
void on_allLines_clicked();
void checkToolButtons(LimeReport::BaseDesignIntf::BorderSide side, bool check);
void on_selectColor_clicked();
private:
Ui::BorderEditor* ui;
LimeReport::BaseDesignIntf* m_item;
QString m_borderColor;
int m_borderStyle;
double m_borderWidth;
};
} // namespace LimeReport
#endif // LRBORDEREDITOR_H