#ifndef RM_BUTTON_H #define RM_BUTTON_H #include #define DEBUG_BUTTON_EVENT 0 class QLayout; class RMButton : public QPushButton { Q_OBJECT public: RMButton(QWidget *parent = 0); ~RMButton(); #if (LIVE_LANGUAGE2) static RMButton* create2(QWidget* parent, QLayout* layout, const char* name, const char* toolTip, QSize size); #else // LIVE_LANGUAGE2 static RMButton* create(QWidget* parent, QLayout* layout, const char* name, QString toolTip, QSize size); #endif // LIVE_LANGUAGE2 void setStyleStatus(const char* status,bool toggle); void updateObject(QString objectName); #if (DEBUG_BUTTON_EVENT) bool bCheckEvent; virtual bool event(QEvent *e); #endif }; #endif // RM_BUTTON_H