VBoxSelectorWnd.h revision e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VBoxSelectorWnd class declaration
*/
/*
* Copyright (C) 2006-2010 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 __VBoxSelectorWnd_h__
#define __VBoxSelectorWnd_h__
/* Local includes */
#include "COMDefs.h"
#include "QIWithRetranslateUI.h"
#include "VBoxGlobal.h"
#include "UIMessageCenter.h"
/* Global includes */
#include <QMainWindow>
#include <QUrl>
#ifdef VBOX_GUI_WITH_SYSTRAY
# include <QSystemTrayIcon>
#endif /* VBOX_GUI_WITH_SYSTRAY */
/* Local forward declarations */
{
void closing();
void sltShowMediumManager();
void sltShowExportApplianceWizard();
void sltShowPreferencesDialog();
void sltPerformExit();
void sltShowNewMachineWizard();
void sltShowMachineSettingsDialog(const QString &aCategory = QString::null, const QString &aControl = QString::null, const QString & = QString::null);
void sltMachineMenuAboutToShow();
void sltMachineCloseMenuAboutToShow();
void refreshVMList();
#ifdef VBOX_GUI_WITH_SYSTRAY
void showWindow();
#endif
/* Events */
#ifdef Q_WS_MAC
#endif /* Q_WS_MAC */
void retranslateUi();
void vmListViewCurrentChanged(bool aRefreshDetails = true, bool aRefreshSnapshots = true, bool aRefreshDescription = true);
void mediumEnumStarted();
void mediumEnumFinished(const VBoxMediaList &);
/* VirtualBox callback events we're interested in */
#ifdef VBOX_GUI_WITH_SYSTRAY
void mainWindowCountChanged(int count);
void trayIconCanShow(bool fEnabled);
void trayIconShow(bool fEnabled);
void trayIconChanged(bool fEnabled);
#endif
void sltEmbedDownloaderForUserManual();
/* Helping stuff: */
void prepareMenuBar();
void prepareContextMenu();
void prepareStatusBar();
void prepareWidgets();
void prepareConnections();
/* Central splitter window */
/* Main toolbar */
#ifndef Q_WS_MAC
#endif /* !Q_WS_MAC */
/* VM list context menu */
#ifdef VBOX_GUI_WITH_SYSTRAY
/* The systray icon */
#endif
/* The right information widgets */
bool mDoneInaccessibleWarningOnce : 1;
};
#endif // __VBoxSelectorWnd_h__