Blame toonz/sources/include/toonzqt/stylenameeditor.h
|
Toshihiro Shimizu |
890ddd |
#ifndef STYLENAMEEDITOR_H
|
|
Toshihiro Shimizu |
890ddd |
#define STYLENAMEEDITOR_H
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include <qdialog></qdialog>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
class QLineEdit;
|
|
Toshihiro Shimizu |
890ddd |
class QPushButton;
|
|
Toshihiro Shimizu |
890ddd |
class TPaletteHandle;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
class StyleNameEditor : public QDialog //singleton
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
Q_OBJECT
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TPaletteHandle *m_paletteHandle;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
QLineEdit *m_styleName;
|
|
Toshihiro Shimizu |
890ddd |
QPushButton *m_okButton,
|
|
Toshihiro Shimizu |
890ddd |
*m_applyButton,
|
|
Toshihiro Shimizu |
890ddd |
*m_cancelButton;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Toshihiro Shimizu |
890ddd |
StyleNameEditor(QWidget *parent = 0);
|
|
Toshihiro Shimizu |
890ddd |
void setPaletteHandle(TPaletteHandle *ph);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
protected:
|
|
Toshihiro Shimizu |
890ddd |
void showEvent(QShowEvent *);
|
|
Toshihiro Shimizu |
890ddd |
void hideEvent(QHideEvent *);
|
|
Toshihiro Shimizu |
890ddd |
void enterEvent(QEvent *);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
protected slots:
|
|
Toshihiro Shimizu |
890ddd |
void onStyleSwitched();
|
|
Toshihiro Shimizu |
890ddd |
void onOkPressed();
|
|
Toshihiro Shimizu |
890ddd |
void onApplyPressed();
|
|
Toshihiro Shimizu |
890ddd |
void onCancelPressed();
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|