VirtualBox

Changeset 16617 in vbox for trunk


Ignore:
Timestamp:
Feb 10, 2009 9:37:20 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: Initial support for OVF import in the GUI.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r16610 r16617  
    283283        include/VBoxSettingsDialogSpecific.h \
    284284        include/VBoxSettingsPage.h \
    285         include/VBoxSettingsSelector.h
     285        include/VBoxSettingsSelector.h \
     286        include/VBoxImportAppliance.h
    286287
    287288# Sources containing local definitions of classes that use the Q_OBJECT macro.
     
    358359        src/VBoxSettingsDialogSpecific.cpp \
    359360        src/VBoxSettingsSelector.cpp \
    360         src/VBoxMediaManagerDlg.cpp
     361        src/VBoxMediaManagerDlg.cpp \
     362        src/VBoxImportAppliance.cpp
    361363
    362364ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r13978 r16617  
    5555    ui/VBoxGLSettingsInput.ui \
    5656    ui/VBoxGLSettingsUpdate.ui \
    57     ui/VBoxGLSettingsLanguage.ui
     57    ui/VBoxGLSettingsLanguage.ui \
     58    ui/VBoxImportApplianceDlg.ui
    5859
    5960TRANSLATIONS = \
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r16589 r16617  
    372372    void cannotRunInSelectorMode();
    373373
     374    void cannotImportAppliance (const CAppliance &aAppliance);
     375    void cannotImportAppliance (const CProgress &aProgress, const CAppliance &aAppliance);
     376
    374377    void showRuntimeError (const CConsole &console, bool fatal,
    375378                           const QString &errorID,
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxSelectorWnd.h

    r14908 r16617  
    6868
    6969    void fileMediaMgr();
     70    void fileImportAppliance();
    7071    void fileSettings();
    7172    void fileExit();
     
    149150    /* Actions */
    150151    QAction *mFileMediaMgrAction;
     152    QAction *mFileApplianceImportAction;
    151153    QAction *mFileSettingsAction;
    152154    QAction *mFileExitAction;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r16589 r16617  
    20882088}
    20892089
     2090void VBoxProblemReporter::cannotImportAppliance (const CAppliance &aAppliance)
     2091{
     2092    message (mainWindowShown(),
     2093             Error,
     2094             tr ("Failed to open/interpret appliance <b>%1</b>.").arg (aAppliance.GetPath()),
     2095             formatErrorInfo (aAppliance));
     2096}
     2097
     2098void VBoxProblemReporter::cannotImportAppliance (const CProgress &aProgress, const CAppliance& aAppliance)
     2099{
     2100    AssertWrapperOk (aProgress);
     2101
     2102    message (mainWindowShown(),
     2103             Error,
     2104             tr ("Failed to import appliance <b>%1</b>.").arg (aAppliance.GetPath()),
     2105             formatErrorInfo (aProgress.GetErrorInfo()));
     2106}
     2107
    20902108void VBoxProblemReporter::showRuntimeError (const CConsole &aConsole, bool fatal,
    20912109                                            const QString &errorID,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r16490 r16617  
    3030#include "VBoxNewVMWzd.h"
    3131#include "VBoxMediaManagerDlg.h"
     32#include "VBoxImportAppliance.h"
    3233#include "VBoxSettingsDialogSpecific.h"
    3334#include "VBoxVMLogViewer.h"
     
    404405    mFileMediaMgrAction = new QAction (this);
    405406    mFileMediaMgrAction->setIcon (VBoxGlobal::iconSet (":/diskimage_16px.png"));
     407
     408    mFileApplianceImportAction = new QAction (this);
     409    mFileApplianceImportAction->setIcon (VBoxGlobal::iconSet (":/diskimage_16px.png"));
     410
    406411    mFileSettingsAction = new QAction(this);
    407412    mFileSettingsAction->setMenuRole (QAction::PreferencesRole);
     
    540545    mFileMenu = menuBar()->addMenu (QString::null);
    541546    mFileMenu->addAction (mFileMediaMgrAction);
     547    mFileMenu->addAction (mFileApplianceImportAction);
    542548    mFileMenu->addSeparator();
    543549    mFileMenu->addAction (mFileSettingsAction);
     
    640646    /* signals and slots connections */
    641647    connect (mFileMediaMgrAction, SIGNAL (triggered()), this, SLOT (fileMediaMgr()));
     648    connect (mFileApplianceImportAction, SIGNAL (triggered()), this, SLOT (fileImportAppliance()));
    642649    connect (mFileSettingsAction, SIGNAL (triggered()), this, SLOT (fileSettings()));
    643650    connect (mFileExitAction, SIGNAL (triggered()), this, SLOT (fileExit()));
     
    735742{
    736743    VBoxMediaManagerDlg::showModeless (this);
     744}
     745
     746void VBoxSelectorWnd::fileImportAppliance()
     747{
     748    VBoxImportAppliance::import (this);
    737749}
    738750
     
    12511263    mFileMediaMgrAction->setStatusTip (tr ("Display the Virtual Media Manager dialog"));
    12521264
     1265    mFileApplianceImportAction->setText (tr ("&Import Appliance..."));
     1266    mFileApplianceImportAction->setShortcut (QKeySequence ("Ctrl+K"));
     1267    mFileApplianceImportAction->setStatusTip (tr ("Import an appliance into VirtualBox"));
     1268
    12531269#ifdef Q_WS_MAC
    12541270    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette