0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00
LimeReport/limereport/items/lrbordereditor.h

49 lines
1.2 KiB
C
Raw Permalink Normal View History

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
#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
}
class LIMEREPORT_EXPORT BorderEditor: public QDialog {
2022-06-13 21:18:57 +03:00
Q_OBJECT
public:
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);
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:
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