3
* VBox frontends: Qt GUI ("VirtualBox"):
4
* VBoxSelectorWnd class declaration
8
* Copyright (C) 2006-2007 innotek GmbH
10
* This file is part of VirtualBox Open Source Edition (OSE), as
11
* available from http://www.virtualbox.org. This file is free software;
12
* you can redistribute it and/or modify it under the terms of the GNU
13
* General Public License as published by the Free Software Foundation,
14
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15
* distribution. VirtualBox OSE is distributed in the hope that it will
16
* be useful, but WITHOUT ANY WARRANTY of any kind.
19
#ifndef __VBoxSelectorWnd_h__
20
#define __VBoxSelectorWnd_h__
24
#include "VBoxGlobal.h"
26
#include <qapplication.h>
27
#include <qmainwindow.h>
28
#include <qgroupbox.h>
31
#include <qvaluelist.h>
34
class VBoxSnapshotsWgt;
35
class VBoxVMDetailsView;
36
class VBoxVMDescriptionPage;
37
class VBoxVMLogViewer;
44
class VBoxSelectorWnd : public QMainWindow
50
VBoxSelectorWnd (VBoxSelectorWnd **aSelf,
51
QWidget* aParent = 0, const char* aName = 0,
52
WFlags aFlags = WType_TopLevel);
53
virtual ~VBoxSelectorWnd();
55
bool startMachine (const QUuid &id);
64
void vmSettings (const QString &aCategory = QString::null,
65
const QString &aControl = QString::null);
73
void refreshVMItem (const QUuid &aID, bool aDetails,
77
void showHelpContents();
82
bool event (QEvent *e);
88
void languageChange();
92
void vmListBoxCurrentChanged (bool aRefreshDetails = true,
93
bool aRefreshSnapshots = true,
94
bool aRefreshDescription = true);
96
void mediaEnumStarted();
97
void mediaEnumFinished (const VBoxMediaList &);
99
/* VirtualBox callback events we're interested in */
101
void machineStateChanged (const VBoxMachineStateChangeEvent &e);
102
void machineDataChanged (const VBoxMachineDataChangeEvent &e);
103
void machineRegistered (const VBoxMachineRegisteredEvent &e);
104
void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
105
void snapshotChanged (const VBoxSnapshotEvent &e);
110
QAction *fileDiskMgrAction;
111
QAction *fileSettingsAction;
112
QAction *fileExitAction;
113
QAction *vmNewAction;
114
QAction *vmConfigAction;
115
QAction *vmDeleteAction;
116
QAction *vmStartAction;
117
QAction *vmDiscardAction;
118
QAction *vmRefreshAction;
119
QAction *vmShowLogsAction;
120
QAction *helpContentsAction;
121
QAction *helpWebAction;
122
QAction *helpAboutAction;
123
QAction *helpResetMessagesAction;
126
VBoxVMListBox *vmListBox;
127
QTabWidget *vmTabWidget;
128
VBoxVMDetailsView *vmDetailsView;
129
VBoxSnapshotsWgt *vmSnapshotsWgt;
130
VBoxVMDescriptionPage *vmDescriptionPage;
132
QValueList <CSession> sessions;
137
bool doneInaccessibleWarningOnce : 1;
140
#endif // __VBoxSelectorWnd_h__