VBoxFilePathSelectorWidget.h revision 8e0c2ca3abd721979958f95b9af73b60665478c8
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VirtualBox Qt extensions: VBoxFilePathSelectorWidget 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;
* 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 __VBoxFilePathSelectorWidget_h__
#define __VBoxFilePathSelectorWidget_h__
#include "QIWithRetranslateUI.h"
/* Qt includes */
#include <QComboBox>
{
enum Mode
{
Mode_Folder = 0,
};
void setResetEnabled (bool aEnabled);
bool isResetEnabled () const;
bool isModified() const;
bool isPathSelected() const;
void retranslateUi();
void onActivated (int aIndex);
void copyToClipboard();
void refreshText();
void selectPath();
QIcon defaultIcon() const;
/* Private member vars */
bool mIsEditableMode;
bool mIsMouseAwaited;
bool mModified;
};
#endif /* __VBoxFilePathSelectorWidget_h__ */