tahoma2d/toonz/sources/include/toonzqt/stylenameeditor.h

37 lines
636 B
C
Raw Normal View History

2016-03-19 06:57:51 +13:00
#ifndef STYLENAMEEDITOR_H
#define STYLENAMEEDITOR_H
#include <QDialog>
class QLineEdit;
class QPushButton;
class TPaletteHandle;
class StyleNameEditor : public QDialog //singleton
{
Q_OBJECT
TPaletteHandle *m_paletteHandle;
QLineEdit *m_styleName;
QPushButton *m_okButton,
*m_applyButton,
*m_cancelButton;
public:
StyleNameEditor(QWidget *parent = 0);
void setPaletteHandle(TPaletteHandle *ph);
protected:
void showEvent(QShowEvent *);
void hideEvent(QHideEvent *);
void enterEvent(QEvent *);
protected slots:
void onStyleSwitched();
void onOkPressed();
void onApplyPressed();
void onCancelPressed();
};
#endif