/src/VBox/Frontends/VirtualBox/src/wizards/newvm/VBoxNewVMWzd.h

https://gitlab.com/ufo/virtualbox-ose-3-1-8 · C Header · 76 lines · 40 code · 16 blank · 20 comment · 0 complexity · 99df89b8cc3907d1858bf9a6f64f8c0b MD5 · raw file

  1. /** @file
  2. *
  3. * VBox frontends: Qt4 GUI ("VirtualBox"):
  4. * VBoxNewVMWzd class declaration
  5. */
  6. /*
  7. * Copyright (C) 2006-2008 Sun Microsystems, Inc.
  8. *
  9. * This file is part of VirtualBox Open Source Edition (OSE), as
  10. * available from http://www.virtualbox.org. This file is free software;
  11. * you can redistribute it and/or modify it under the terms of the GNU
  12. * General Public License (GPL) as published by the Free Software
  13. * Foundation, in version 2 as it comes in the "COPYING" file of the
  14. * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
  15. * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
  16. *
  17. * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
  18. * Clara, CA 95054 USA or visit http://www.sun.com if you need
  19. * additional information or have any questions.
  20. */
  21. #ifndef __VBoxNewVMWzd_h__
  22. #define __VBoxNewVMWzd_h__
  23. #include "QIAbstractWizard.h"
  24. #include "VBoxNewVMWzd.gen.h"
  25. #include "COMDefs.h"
  26. #include "QIWidgetValidator.h"
  27. #include "QIWithRetranslateUI.h"
  28. class VBoxNewVMWzd : public QIWithRetranslateUI<QIAbstractWizard>,
  29. public Ui::VBoxNewVMWzd
  30. {
  31. Q_OBJECT;
  32. public:
  33. VBoxNewVMWzd (QWidget *aParent = 0);
  34. ~VBoxNewVMWzd();
  35. const CMachine& machine() const;
  36. protected:
  37. void retranslateUi();
  38. private slots:
  39. void accept();
  40. void showMediaManager();
  41. void onOSTypeChanged();
  42. void slRAMValueChanged (int aValue);
  43. void leRAMTextChanged (const QString &aTtext);
  44. void hdTypeChanged();
  45. void revalidate (QIWidgetValidator *aWval);
  46. void enableNext (const QIWidgetValidator *aWval);
  47. void onPageShow();
  48. void showBackPage();
  49. void showNextPage();
  50. private:
  51. bool showNewHDWizard();
  52. bool constructMachine();
  53. void ensureNewHardDiskDeleted();
  54. QIWidgetValidator *mWvalNameAndOS;
  55. QIWidgetValidator *mWvalMemory;
  56. QIWidgetValidator *mWvalHDD;
  57. CMedium mHardDisk;
  58. CMachine mMachine;
  59. };
  60. #endif // __VBoxNewVMWzd_h__