Files
fmviewer3/project/fm_viewer/ui/rm_popup.h
2026-02-21 17:11:31 +09:00

45 lines
904 B
C++

#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