VPTissue Reference Manual
HasUnsavedChangesPrompt.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
21 #include "SaveChangesDialog.h"
22 
23 using namespace std;
24 
25 namespace SimShell {
26 namespace Gui {
27 
28 HasUnsavedChangesPrompt::HasUnsavedChangesPrompt(string&& title)
29  : HasUnsavedChanges(move(title))
30 {
31 }
32 
34 {
35  return SaveChangesDialog::Prompt(this, parent);
36 }
37 
38 } // namespace Gui
39 } // namespace SimShell
STL namespace.
bool PromptClose(QWidget *parent=nullptr)
Display dialog window containing a list (or tree) of widgets that contain unsaved changes...
see the online Qt documentation
static bool Prompt(HasUnsavedChanges *widget, QWidget *parent=nullptr)
Create and display a dialog from a HasUnsavedChanges interface.
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32
Interface for SaveChangesDialog.
HasUnsavedChangesPrompt interface.