#ifndef RM_POPUP_H #define RM_POPUP_H #include #include "../rm_include.h" class TitleWidget; class RMWidgetDrag; class RMButton; class RMPopup : public QDialog { Q_OBJECT protected: TitleWidget* _title; QVBoxLayout* _mainLayout; RMWidgetDrag* _drag; QWidget* _contentWidget; // message, content area QWidget* _buttonWidget; // button area QHBoxLayout* _buttonLayout; // button layout public: #if (LIVE_LANGUAGE_CHANGE) RMButton* _cancelButton; RMButton* _okButton; static int languageIndex; void createLanguageLayout(); #endif public: RMPopup(QWidget *parent = 0, QString title = "",QString icon = "", Qt::WindowFlags f = 0); ~RMPopup(); void hideCloseButton(); public slots: #if (LIVE_LANGUAGE_CHANGE) void onLanguageSelected(int index); #endif }; #endif // RM_POPUP_H