40 lines
866 B
C++
40 lines
866 B
C++
#ifndef ITEMGENERALSETTINGS_H
|
|
#define ITEMGENERALSETTINGS_H
|
|
|
|
#include <QWidget>
|
|
#include <QButtonGroup>
|
|
#include "pictextitem.h"
|
|
#include <QPainter>
|
|
|
|
namespace Ui {
|
|
class ItemGeneralSettings;
|
|
}
|
|
|
|
class ItemGeneralSettings : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ItemGeneralSettings(QWidget *parent = nullptr);
|
|
~ItemGeneralSettings();
|
|
|
|
void edit(PicTextItem* item);
|
|
|
|
PicTextItem* currentItem() { return m_currItem; }
|
|
|
|
private slots:
|
|
void ondirectionChanged(int dir);
|
|
void onBoldSpinBoxValueChanged(int multiple);
|
|
void onLetterSpaceSpinBoxChanged(int space);
|
|
void onColorReversalCheckBoxChecked(bool b);
|
|
|
|
private:
|
|
Ui::ItemGeneralSettings *ui;
|
|
QButtonGroup m_directionButtonGroup;
|
|
|
|
PicTextItem* m_currItem = nullptr;
|
|
QPainter m_painter;
|
|
};
|
|
|
|
#endif // ITEMGENERALSETTINGS_H
|