VBoxMediaManagerDlg.h revision 8e0c2ca3abd721979958f95b9af73b60665478c8
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxMediaManagerDlg class declaration
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef __VBoxMediaManagerDlg_h__
#define __VBoxMediaManagerDlg_h__
#include "VBoxMediaManagerDlg.gen.h"
#include "QIMainDialog.h"
#include "QIWithRetranslateUI.h"
#include "COMDefs.h"
#include "VBoxDefs.h"
#include "VBoxMediaComboBox.h"
{
bool aRefresh = true,
bool aShowDiffs = true);
QUuid selectedId() const;
QString selectedLocation() const;
bool showDiffs() const { return mShowDiffs; };
void refreshAll();
void retranslateUi();
void mediumEnumStarted();
void doNewMedium();
void doAddMedium();
void doRemoveMedium();
void doReleaseMedium();
void makeRequestForAdjustTable();
void performTablesAdjustment();
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 VBoxMediaManagerDlg *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 /* __VBoxMediaManagerDlg_h__ */