UIMediumManager.h revision 26ab5559e05ae622734a4047cee975670da3b0e8
/** @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 "QIWithRetranslateUI.h"
#include "QIMainDialog.h"
#include "UIMedium.h"
/* COM includes: */
#include "COMEnums.h"
#include "CMachine.h"
#include "CVirtualBox.h"
/* Forward declarations: */
/* Medium Manager Dialog: */
{
/* Enumerators: */
/* Constructor/destructor: */
~UIMediumManager();
/* Static API: Singleton stuff: */
static UIMediumManager* instance();
/* Handler: Refresh stuff: */
void refreshAll();
/* Handlers: Medium-processing stuff: */
/* Handlers: Medium-enumeration stuff: */
void sltHandleMediumEnumerationStart();
void sltHandleMediumEnumerationFinish();
/* Handlers: Medium-modification stuff: */
void sltCopyMedium();
void sltModifyMedium();
void sltRemoveMedium();
void sltReleaseMedium();
/* Handlers: Navigation stuff: */
void sltHandleCurrentTabChanged();
void sltHandleDoubleClick();
/* Handler: Machine stuff: */
/* Handlers: Geometry stuff: */
void sltMakeRequestForTableAdjustment();
void sltPerformTablesAdjustment();
/* Helpers: Prepare stuff: */
void prepare();
void prepareThis();
void prepareActions();
void prepareMenuBar();
void prepareToolBar();
void prepareContextMenu();
void preapreTabWidget();
void prepareTreeWidgets();
void prepareTreeWidgetHD();
void prepareTreeWidgetCD();
void prepareTreeWidgetFD();
void prepareInformationPanes();
void prepareButtonBox();
void prepareProgressBar();
#ifdef Q_WS_MAC
void prepareMacWindowMenu();
#endif /* Q_WS_MAC */
/* Helper: Populate stuff: */
void populateTreeWidgets();
/* Helpers: Cleanup stuff: */
#ifdef Q_WS_MAC
void cleanupMacWindowMenu();
#endif /* Q_WS_MAC */
void cleanup();
/* Handler: Translation stuff: */
void retranslateUi();
/* Helper: Medium-modification stuff: */
/* Internal API: Tree-widget access stuff: */
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");
/* Helper: Enumeration stuff: */
/* Variable: Singleton instance: */
static UIMediumManager *m_spInstance;
/* Variables: General stuff: */
bool m_fRefresh;
/* Variables: Tab-widget stuff: */
bool m_fInaccessibleHD;
bool m_fInaccessibleCD;
bool m_fInaccessibleFD;
/* Variables: Menu & Toolbar stuff: */
/* Variable: Progress-bar stuff: */
};
#endif /* __UIMediumManager_h__ */