VBoxMediaComboBox.h revision 4d5a2d10140117cca0a93d7e1b4d71304701d6e1
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxMediaComboBox class declaration
*/
/*
* Copyright (C) 2006-2007 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 __VBoxMediaComboBox_h__
#define __VBoxMediaComboBox_h__
#include "VBoxGlobal.h"
#include <QComboBox>
#include <QPixmap>
{
void refresh();
void repopulate();
void setNullItemPresent (bool aNullItemPresent);
void setShowDiffs (bool aShowDiffs);
bool showDiffs() const { return mShowDiffs; }
void mediumEnumStarted();
void mediumEnumerated (const UIMedium &);
void mediumAdded (const UIMedium &);
void mediumUpdated (const UIMedium &);
void processActivated (int aIndex);
// void processIndexChanged (int aIndex);
void updateToolTip (int);
void appendItem (const UIMedium &);
void replaceItem (int, const UIMedium &);
/** Obtruncated UIMedium structure. */
struct Medium
{
Medium() {}
};
bool mShowDiffs : 1;
bool mShowNullItem : 1;
};
#endif /* __VBoxMediaComboBox_h__ */