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

52 lines
947 B
C++

#ifndef RM_WINDOW_BASE_H
#define RM_WINDOW_BASE_H
#include <QMainWindow>
#include <QWindow>
#include "../rm_include.h"
//class TitleWidget;
class FMFrameTitle;
class RMWidgetDrag;
#if (MODEL_BBVIEWER)
class RMToolbar;
#endif
#if (MODEL_WATEX)
class RMBottomBorder;
#endif
class RMWindowBase : public QMainWindow // QMainWindow
{
Q_OBJECT
public:
explicit RMWindowBase(QWidget *parent = nullptr,QString title = "", QString icon = "", bool isPopup = false);
RMWidgetDrag* _drag;
protected:
QWidget* _centralWidget;
QVBoxLayout* _titleLayout;
#if (!PLAYER_ONLY_LIBRARY_MODE)
FMFrameTitle* _title;
#endif // #if (!PLAYER_ONLY_LIBRARY_MODE)
QWidget* _mainWidget;
#if (MODEL_BBVIEWER)
RMToolbar* _toolbar;
#endif
#if (MODEL_WATEX)
RMBottomBorder* _bottomBorder;
#endif
signals:
void closeSignal();
public slots:
};
#endif // RM_WINDOW_BASE_H