tahoma2d/toonz/sources/include/toonzqt/stylenameeditor.h
Toshihiro Shimizu 890dddabbd first commit
2016-03-19 02:57:51 +09:00

37 lines
No EOL
636 B
C++

#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