1
/* $Id: VBoxCloseVMDlg.cpp $ */
4
* VBox frontends: Qt4 GUI ("VirtualBox"):
5
* VBoxCloseVMDlg class implementation
9
* Copyright (C) 2006-2008 Oracle Corporation
11
* This file is part of VirtualBox Open Source Edition (OSE), as
12
* available from http://www.virtualbox.org. This file is free software;
13
* you can redistribute it and/or modify it under the terms of the GNU
14
* General Public License (GPL) as published by the Free Software
15
* Foundation, in version 2 as it comes in the "COPYING" file of the
16
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20
#ifdef VBOX_WITH_PRECOMPILED_HEADERS
22
#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
23
#include "VBoxCloseVMDlg.h"
24
#include "VBoxProblemReporter.h"
25
#include "UIMachineWindowNormal.h"
28
#include <QPushButton>
29
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
31
VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent)
32
: QIWithRetranslateUI<QIDialog> (aParent)
35
/* No sheets in another mode than normal for now. Firstly it looks ugly and
36
* secondly in some cases it is broken. */
37
UIMachineWindowNormal *pWnd = qobject_cast<UIMachineWindowNormal*>(aParent);
39
setWindowFlags (Qt::Sheet);
42
/* Apply UI decorations */
43
Ui::VBoxCloseVMDlg::setupUi (this);
46
/* Make some more space around the content */
47
hboxLayout->setContentsMargins (40, 0, 40, 0);
48
vboxLayout2->insertSpacing (1, 20);
49
/* and more space between the radio buttons */
50
gridLayout->setSpacing (15);
53
setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
55
connect (mButtonBox, SIGNAL (helpRequested()),
56
&vboxProblem(), SLOT (showHelpHelpDialog()));
59
void VBoxCloseVMDlg::retranslateUi()
61
/* Translate uic generated strings */
62
Ui::VBoxCloseVMDlg::retranslateUi (this);