VBoxOSTypeSelectorWidget.h revision 8e0c2ca3abd721979958f95b9af73b60665478c8
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxOSTypeSelectorWidget class declaration
*/
/*
* Copyright (C) 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;
* you can redistribute it and/or modify it under the terms of the GNU
* 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 __VBoxOSTypeSelectorWidget_h__
#define __VBoxOSTypeSelectorWidget_h__
#include "QIWithRetranslateUI.h"
#include "VBoxGlobal.h"
#include <QWidget>
class QComboBox;
class CGuestOSType;
class QLabel;
class VBoxOSTypeSelectorWidget : public QIWithRetranslateUI <QWidget>
{
Q_OBJECT;
public:
VBoxOSTypeSelectorWidget (QWidget *aParent);
void setType (const CGuestOSType &aType);
CGuestOSType type() const;
signals:
void osTypeChanged();
protected:
void retranslateUi();
bool event (QEvent *aEvent);
private slots:
void onFamilyChanged (int aIndex);
void onTypeChanged (int aIndex);
private:
QLabel *mTxFamilyName;
QLabel *mTxTypeName;
QLabel *mPxTypeIcon;
QComboBox *mCbFamily;
QComboBox *mCbType;
CGuestOSType mType;
QMap <QString, QString> mCurrentIds;
};
#endif /* __VBoxOSTypeSelectorWidget_h__ */