first commit
This commit is contained in:
44
project/fm_viewer/ui/rm_popup.h
Normal file
44
project/fm_viewer/ui/rm_popup.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef RM_POPUP_H
|
||||
#define RM_POPUP_H
|
||||
|
||||
#include <QDialog>
|
||||
#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
|
||||
Reference in New Issue
Block a user