VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxSelectorWnd.h@ 1287

Last change on this file since 1287 was 1177, checked in by vboxsync, 18 years ago

1848: Add comment field
Issue resolved as designed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * VBoxSelectorWnd class declaration
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
9 *
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.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __VBoxSelectorWnd_h__
24#define __VBoxSelectorWnd_h__
25
26#include "COMDefs.h"
27
28#include "VBoxGlobal.h"
29
30#include <qapplication.h>
31#include <qmainwindow.h>
32#include <qgroupbox.h>
33#include <qaction.h>
34
35#include <qvaluelist.h>
36
37class VBoxVMListBox;
38class VBoxSnapshotsWgt;
39class VBoxVMDetailsView;
40class VBoxVMDescriptionPage;
41
42class QLabel;
43class QTextBrowser;
44class QTabWidget;
45struct QUuid;
46
47class VBoxSelectorWnd : public QMainWindow
48{
49 Q_OBJECT
50
51public:
52
53 VBoxSelectorWnd (VBoxSelectorWnd **aSelf,
54 QWidget* aParent = 0, const char* aName = 0,
55 WFlags aFlags = WType_TopLevel);
56 virtual ~VBoxSelectorWnd();
57
58 bool startMachine (const QUuid &id);
59
60public slots:
61
62 void fileDiskMgr();
63 void fileSettings();
64 void fileExit();
65
66 void vmNew();
67 void vmSettings (const QString &category = QString::null, int = 0);
68 void vmDelete();
69 void vmStart();
70 void vmDiscard();
71 void vmRefresh();
72
73 void refreshVMList();
74 void refreshVMItem (const QUuid &aID, bool aDetails,
75 bool aSnapshots,
76 bool aDescription);
77
78 void showHelpContents();
79
80protected:
81
82 /* events */
83 bool event (QEvent *e);
84
85protected slots:
86
87private:
88
89 void languageChange();
90
91private slots:
92
93 void vmListBoxCurrentChanged (bool aRefreshDetails = true,
94 bool aRefreshSnapshots = true,
95 bool aRefreshDescription = true);
96 void mediaEnumFinished (const VBoxMediaList &);
97
98 /* VirtualBox callback events we're interested in */
99
100 void machineStateChanged (const VBoxMachineStateChangeEvent &e);
101 void machineDataChanged (const VBoxMachineDataChangeEvent &e);
102 void machineRegistered (const VBoxMachineRegisteredEvent &e);
103 void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
104 void snapshotChanged (const VBoxSnapshotEvent &e);
105
106private:
107
108 /* actions */
109 QAction *fileDiskMgrAction;
110 QAction *fileSettingsAction;
111 QAction *fileExitAction;
112 QAction *vmNewAction;
113 QAction *vmConfigAction;
114 QAction *vmDeleteAction;
115 QAction *vmStartAction;
116 QAction *vmDiscardAction;
117 QAction *vmRefreshAction;
118 QAction *helpContentsAction;
119 QAction *helpWebAction;
120 QAction *helpAboutAction;
121 QAction *helpResetMessagesAction;
122
123 /* widgets */
124 VBoxVMListBox *vmListBox;
125 QTabWidget *vmTabWidget;
126 VBoxVMDetailsView *vmDetailsView;
127 VBoxSnapshotsWgt *vmSnapshotsWgt;
128 VBoxVMDescriptionPage *vmDescriptionPage;
129
130 QValueList <CSession> sessions;
131
132 QPoint normal_pos;
133 QSize normal_size;
134};
135
136#endif // __VBoxSelectorWnd_h__
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette