#ifndef ITEMGENERALSETTINGS_H #define ITEMGENERALSETTINGS_H #include #include #include "pictextitem.h" #include 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