VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIBootFailureDialog.h

Last change on this file was 104290, checked in by vboxsync, 2 months ago

FE/Qt. bugref:10622. Using new UITranslationEventListener in the runtime UI related classes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
RevLine 
[55401]1/* $Id: UIBootFailureDialog.h 104290 2024-04-11 09:37:29Z vboxsync $ */
[41650]2/** @file
[91715]3 * VBox Qt GUI - UIBootFailureDialog class declaration.
[41650]4 */
5
6/*
[98103]7 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
[41650]8 *
[96407]9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
[41650]26 */
27
[91715]28#ifndef FEQT_INCLUDED_SRC_runtime_UIBootFailureDialog_h
29#define FEQT_INCLUDED_SRC_runtime_UIBootFailureDialog_h
[76532]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[41650]33
[48086]34/* GUI includes: */
[76829]35#include "QIMainDialog.h"
[72357]36#include "UIMedium.h"
[48316]37#include "UIMediumDefs.h"
[41650]38
[76979]39
[41650]40/* Forward declarations: */
[91717]41class QCheckBox;
[91656]42class QLabel;
[72357]43class QVBoxLayout;
[67704]44class QIDialogButtonBox;
[91656]45class QIRichTextLabel;
46class UIFilePathSelector;
[41650]47
[72410]48/** QIDialog extension providing GUI with a dialog to select an existing medium. */
[104290]49class UIBootFailureDialog : public QIMainDialog
[49582]50{
[66916]51
[69518]52 Q_OBJECT;
53
[67765]54signals:
55
[48086]56public:
[41650]57
[77186]58 enum ReturnCode
59 {
[91656]60 ReturnCode_Close = 0,
61 ReturnCode_Reset,
[77186]62 ReturnCode_Max
63 };
64
[98805]65 UIBootFailureDialog(QWidget *pParent);
[91717]66 ~UIBootFailureDialog();
[91656]67 QString bootMediumPath() const;
68
[72410]69protected:
70
[93990]71 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
[72410]72
[50363]73private slots:
[41650]74
[91656]75 void sltCancel();
76 void sltReset();
77 void sltFileSelectorPathChanged(const QString &strPath);
[104290]78 /** @name Event-handling stuff.
79 * @{ */
80 /** Handles translation event. */
81 void sltRetranslateUI();
82 /** @} */
[72406]83
[91512]84private:
[41650]85
[91717]86 QPixmap iconPixmap();
[91736]87 /* Checks if selected iso exists and readable. Returns false if not. Returns true if nothing is selected. */
88 bool checkISOImage() const;
[41650]89
[67046]90 /** @name Prepare/cleanup cascade.
91 * @{ */
[67573]92 /** Configures all. */
[72406]93 void configure();
94 void prepareWidgets();
95 void prepareConnections();
[67046]96 /** @} */
97
[77216]98 void setTitle();
[91656]99 QWidget *m_pParent;
100
[76829]101 QWidget *m_pCentralWidget;
[72444]102 QVBoxLayout *m_pMainLayout;
103 QIDialogButtonBox *m_pButtonBox;
[91656]104 QPushButton *m_pCloseButton;
105 QPushButton *m_pResetButton;
106 QIRichTextLabel *m_pLabel;
107 UIFilePathSelector *m_pBootImageSelector;
108 QLabel *m_pBootImageLabel;
[91717]109 QLabel *m_pIconLabel;
110 QCheckBox *m_pSuppressDialogCheckBox;
[67046]111};
112
[91715]113#endif /* !FEQT_INCLUDED_SRC_runtime_UIBootFailureDialog_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use