first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user