UIMediumManager.h revision c58f1213e628a545081c70e26c6b67a841cff880
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* UIMediumManager class declaration
*/
/*
* Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __UIMediumManager_h__
#define __UIMediumManager_h__
/* GUI includes */
#include "UIMediumManager.gen.h"
#include "QIMainDialog.h"
#include "QIWithRetranslateUI.h"
#include "VBoxMediaComboBox.h"
/* COM includes: */
#include "CMachine.h"
/* Forward declarations: */
{
enum Action { Action_Select, Action_Edit, Action_Copy, Action_Modify, Action_Remove, Action_Release };
~UIMediumManager();
bool aRefresh = true,
bool aShowDiffs = true,
QString selectedId() const;
QString selectedLocation() const;
bool showDiffs() const { return mShowDiffs; };
void refreshAll();
void retranslateUi();
void mediumEnumStarted();
void doNewMedium();
void doAddMedium();
void doCopyMedium();
void doModifyMedium();
void doRemoveMedium();
void doReleaseMedium();
void makeRequestForAdjustTable();
void performTablesAdjustment();
UIMediumType currentTreeWidgetType() const;
QTreeWidget* currentTreeWidget() const;
void clearInfoPanes();
void prepareToRefresh (int aTotal = 0);
QString formatPaneText (const QString &aText, bool aCompact = true, const QString &aElipsis = "middle");
/* Private member vars */
/* Window status */
bool mDoSelect;
static UIMediumManager *mModelessDialog;
/* The global VirtualBox instance */
/* Type if we are in the select modus */
int mType;
bool mShowDiffs : 1;
bool mSetupMode : 1;
/* Icon definitions */
/* Menu & Toolbar */
/* Machine */
bool mHardDisksInaccessible;
bool mDVDImagesInaccessible;
};
#endif /* __UIMediumManager_h__ */