mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-30 02:55:34 -05:00
33 lines
486 B
C++
33 lines
486 B
C++
#ifndef PANEL_H
|
|
#define PANEL_H
|
|
|
|
#include <QGridLayout>
|
|
#include <QWidget>
|
|
|
|
class Panel : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Panel(QWidget *parent = nullptr);
|
|
|
|
void SetData(void *data);
|
|
|
|
signals:
|
|
|
|
protected:
|
|
virtual void OnOpeningData(void *data){}
|
|
virtual void OnClosingData(void *data){}
|
|
|
|
QGridLayout *layout() const { return layout_; }
|
|
|
|
void FinishLayout();
|
|
|
|
private:
|
|
void *data_;
|
|
|
|
QVBoxLayout *outer_layout_;
|
|
QGridLayout *layout_;
|
|
|
|
};
|
|
|
|
#endif // PANEL_H
|