pgLab/pglab/ManagedPage.h

22 lines
489 B
C
Raw Permalink Normal View History

#ifndef MANAGEDPAGE_H
#define MANAGEDPAGE_H
#include <QWidget>
2022-05-26 08:25:31 +02:00
/// Base class for widgets that are used as on the tabs in DatabaseWindow
/// if a widget does not inherit from managed pase DatabaseWindow will
/// fallback on default behaviour.
class ManagedPage: public QWidget
{
Q_OBJECT
public:
using QWidget::QWidget;
virtual ~ManagedPage() {}
2022-05-26 08:25:31 +02:00
/// Tells DatabaseWindow if it is ok to close this tab
virtual bool CanClose(bool prompt_user) = 0;
};
#endif // MANAGEDPAGE_H