mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
0fca7169d3
except those placed in 3rdparty directories.
49 lines
1.2 KiB
C++
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
|