2022-06-13 21:18:57 +03:00
|
|
|
#ifndef LRBORDEREDITOR_H
|
|
|
|
#define LRBORDEREDITOR_H
|
|
|
|
|
|
|
|
#include "lrbasedesignintf.h"
|
2022-11-01 11:48:47 +03:00
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace LimeReport {
|
2022-10-31 21:20:24 +03:00
|
|
|
|
2022-06-13 21:18:57 +03:00
|
|
|
namespace Ui {
|
2022-11-01 11:48:47 +03:00
|
|
|
class BorderEditor;
|
2022-06-13 21:18:57 +03:00
|
|
|
}
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class LIMEREPORT_EXPORT BorderEditor: public QDialog {
|
2022-06-13 21:18:57 +03:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
explicit BorderEditor(QWidget* parent = nullptr);
|
|
|
|
void loadItem(LimeReport::BaseDesignIntf* item);
|
2022-06-13 21:18:57 +03:00
|
|
|
LimeReport::BaseDesignIntf::BorderLines borderSides();
|
2022-10-31 21:20:24 +03:00
|
|
|
LimeReport::BaseDesignIntf::BorderStyle borderStyle();
|
2022-06-13 21:18:57 +03:00
|
|
|
QString borderColor();
|
2022-10-31 21:20:24 +03:00
|
|
|
double borderWidth();
|
|
|
|
~BorderEditor();
|
2022-06-13 21:18:57 +03:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_listWidget_currentRowChanged(int currentRow);
|
2024-09-04 17:31:16 +03:00
|
|
|
void on_comboBox_currentTextChanged(const QString& arg1);
|
2022-06-13 21:18:57 +03:00
|
|
|
void on_noLines_clicked();
|
2022-10-31 21:20:24 +03:00
|
|
|
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();
|
2022-06-13 21:18:57 +03:00
|
|
|
|
|
|
|
private:
|
2024-09-04 17:31:16 +03:00
|
|
|
Ui::BorderEditor* ui;
|
|
|
|
LimeReport::BaseDesignIntf* m_item;
|
2022-10-31 21:20:24 +03:00
|
|
|
QString m_borderColor;
|
|
|
|
int m_borderStyle;
|
|
|
|
double m_borderWidth;
|
2022-06-13 21:18:57 +03:00
|
|
|
};
|
|
|
|
|
2022-10-31 21:20:24 +03:00
|
|
|
} // namespace LimeReport
|
2022-06-13 21:18:57 +03:00
|
|
|
|
|
|
|
#endif // LRBORDEREDITOR_H
|