1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-06 17:46:07 +01:00
LibrePilot/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/popupwidget.h
2013-09-15 23:37:20 +02:00

51 lines
853 B
C++

#ifndef POPUPWIDGET_H
#define POPUPWIDGET_H
#include <QtGui>
#include <QWidget>
#include <QHBoxLayout>
#include <QDialog>
#include "uavobjectwidgetutils_global.h"
namespace Ui {
class PopupWidget;
}
class UAVOBJECTWIDGETUTILS_EXPORT PopupWidget : public QDialog {
Q_OBJECT
public:
explicit PopupWidget(QWidget *parent = 0);
void popUp(QWidget *widget = 0);
void setWidget(QWidget *widget);
QWidget *getWidget()
{
return m_widget;
}
QHBoxLayout *getLayout()
{
return m_layout;
}
public slots:
bool close();
void done(int result);
private slots:
void closePopup();
private:
QHBoxLayout *m_layout;
QWidget *m_widget;
QWidget *m_widgetParent;
QPushButton *m_closeButton;
int m_widgetWidth;
int m_widgetHeight;
};
#endif // POPUPWIDGET_H