463N/A/** @file
463N/A * VBox Qt GUI - UIWizardNewVMPageBasic1 class declaration.
463N/A */
463N/A
943N/A/*
463N/A * Copyright (C) 2006-2012 Oracle Corporation
463N/A *
919N/A * This file is part of VirtualBox Open Source Edition (OSE), as
919N/A * available from http://www.virtualbox.org. This file is free software;
919N/A * you can redistribute it and/or modify it under the terms of the GNU
919N/A * General Public License (GPL) as published by the Free Software
919N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
919N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
919N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
919N/A */
919N/A
919N/A#ifndef __UIWizardNewVMPageBasic1_h__
919N/A#define __UIWizardNewVMPageBasic1_h__
919N/A
919N/A/* Local includes: */
919N/A#include "UIWizardPage.h"
919N/A
919N/A/* Forward declarations: */
919N/Aclass UINameAndSystemEditor;
463N/Aclass QIRichTextLabel;
463N/A
463N/A/* 1st page of the New Virtual Machine wizard (base part): */
463N/Aclass UIWizardNewVMPage1 : public UIWizardPageBase
493N/A{
463N/Aprotected:
970N/A
970N/A /* Constructor: */
970N/A UIWizardNewVMPage1(const QString &strGroup);
970N/A
463N/A /* Handlers: */
999N/A void onNameChanged(QString strNewName);
463N/A void onOsTypeChanged();
911N/A
999N/A /* Helping stuff: */
999N/A bool machineFolderCreated();
911N/A bool createMachineFolder();
463N/A bool cleanupMachineFolder();
463N/A
463N/A /* Stuff for 'machineFolder' field: */
463N/A QString machineFolder() const { return m_strMachineFolder; }
463N/A void setMachineFolder(const QString &strMachineFolder) { m_strMachineFolder = strMachineFolder; }
493N/A
463N/A /* Stuff for 'machineBaseName' field: */
970N/A QString machineBaseName() const { return m_strMachineBaseName; }
970N/A void setMachineBaseName(const QString &strMachineBaseName) { m_strMachineBaseName = strMachineBaseName; }
970N/A
463N/A /* Variables: */
QString m_strMachineFolder;
QString m_strMachineBaseName;
/* Widgets: */
UINameAndSystemEditor *m_pNameAndSystemEditor;
/* Variables: */
QString m_strGroup;
bool m_fSupportsHWVirtEx;
bool m_fSupportsLongMode;
};
/* 1st page of the New Virtual Machine wizard (basic extension): */
class UIWizardNewVMPageBasic1 : public UIWizardPage, public UIWizardNewVMPage1
{
Q_OBJECT;
Q_PROPERTY(QString machineFolder READ machineFolder WRITE setMachineFolder);
Q_PROPERTY(QString machineBaseName READ machineBaseName WRITE setMachineBaseName);
public:
/* Constructor: */
UIWizardNewVMPageBasic1(const QString &strGroup);
protected:
/* Wrapper to access 'this' from base part: */
UIWizardPage* thisImp() { return this; }
private slots:
/* Handlers: */
void sltNameChanged(const QString &strNewText);
void sltOsTypeChanged();
private:
/* Translation stuff: */
void retranslateUi();
/* Prepare stuff: */
void initializePage();
void cleanupPage();
/* Validation stuff: */
bool validatePage();
/* Widgets: */
QIRichTextLabel *m_pLabel;
};
#endif // __UIWizardNewVMPageBasic1_h__