10 QMainWindow *parent_window) :
11 QMainWindow(parent_window)
16 Qt::WindowFlags
flags = this->windowFlags();
17 this->setWindowFlags( flags | Qt::SubWindow );
21 restoreGeometry(settings.value( QString(
"SubWindow.%1.geometry").
arg(name) ).toByteArray());
23 this->setAttribute( Qt::WA_DeleteOnClose );
29 settings.setValue(QString(
"SubWindow.%1.geometry").
arg(
tabbedWidget()->
name() ), saveGeometry());
35 QMessageBox::StandardButton reply;
36 reply = QMessageBox::question(
this, tr(
"Warning"),
37 tr(
"Are you sure that you want to destroy this window?\n"),
38 QMessageBox::Yes | QMessageBox::No,
41 if (reply != QMessageBox::Yes) {
virtual void closeEvent(QCloseEvent *event) override
SubWindow(QString name, PlotMatrix *first_tab, PlotDataMapRef &mapped_data, QMainWindow *parent_window)
TabbedPlotWidget * tabbed_widget_
TabbedPlotWidget * tabbedWidget()