VirtualBox

Changeset 48316 in vbox


Ignore:
Timestamp:
Sep 5, 2013 4:14:52 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Get rid of few local UIMedium dependencies over whole the GUI project.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r48022 r48316  
    3030
    3131/* GUI includes: */
     32#include "VBoxGlobal.h"
     33#include "UIConverter.h"
    3234#include "UIMessageCenter.h"
    33 #include "VBoxGlobal.h"
    3435#include "UISelectorWindow.h"
    3536#include "UIProgressDialog.h"
    3637#include "UINetworkManager.h"
    3738#include "UINetworkManagerDialog.h"
    38 #include "UIConverter.h"
    3939#include "UIModalWindowManager.h"
     40#include "UIMedium.h"
    4041#ifdef VBOX_OSE
    4142# include "UIDownloaderUserManual.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r48301 r48316  
    3939#include "UIIconPool.h"
    4040#include "UIMediumTypeChangeDialog.h"
     41#include "UIMedium.h"
    4142
    4243/* COM includes: */
     
    17531754
    17541755/* static */
    1755 bool UIMediumManager::isMediumAttachedToHiddenMachinesOnly(UIMedium medium)
     1756bool UIMediumManager::isMediumAttachedToHiddenMachinesOnly(const UIMedium &medium)
    17561757{
    17571758    /* Iterate till the root: */
     1759    UIMedium mediumIterator = medium;
    17581760    do
    17591761    {
    17601762        /* Ignore medium if its hidden
    17611763         * or attached to hidden machines only: */
    1762         if (medium.isHidden())
     1764        if (mediumIterator.isHidden())
    17631765            return true;
    17641766        /* Move iterator to parent: */
    1765         medium = medium.parent();
    1766     }
    1767     while (!medium.isNull());
     1767        mediumIterator = mediumIterator.parent();
     1768    }
     1769    while (!mediumIterator.isNull());
    17681770    /* False by default: */
    17691771    return false;
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r48301 r48316  
    2424#include "QIWithRetranslateUI.h"
    2525#include "QIMainDialog.h"
    26 #include "UIMedium.h"
     26#include "UIMediumDefs.h"
    2727
    2828/* COM includes: */
     
    3535class UIMediumItem;
    3636class UIEnumerationProgressBar;
     37class UIMedium;
    3738
    3839/* Medium Manager Dialog: */
     
    152153
    153154    /* Static helper: Enumeration stuff: */
    154     static bool isMediumAttachedToHiddenMachinesOnly(UIMedium medium);
     155    static bool isMediumAttachedToHiddenMachinesOnly(const UIMedium &medium);
    155156
    156157    /* Variable: Singleton instance: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r48301 r48316  
    4646#include "UIVirtualBoxEventHandler.h"
    4747#include "UIMediumManager.h"
     48#include "UIMedium.h"
    4849#include "UIMessageCenter.h"
    4950#include "UISelectorWindow.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r47998 r48316  
    2626/* GUI includes: */
    2727#include "QIWithRetranslateUI.h"
    28 #include "UIMedium.h"
    2928#include "UINetworkDefs.h"
    3029
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r48310 r48316  
    4444
    4545/* COM includes: */
     46#include "CVirtualBox.h"
    4647#include "CMachine.h"
    47 #include "CVirtualBox.h"
     48#include "CMedium.h"
    4849
    4950/* Type defs: */
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