VirtualBox

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

Last change on this file since 470 was 382, checked in by vboxsync, 18 years ago

export to OSE again

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 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;
40
41class QLabel;
42class QTextBrowser;
43class QTabWidget;
44struct QUuid;
45
46class VBoxSelectorWnd : public QMainWindow
47{
48 Q_OBJECT
49
50public:
51
52 VBoxSelectorWnd (VBoxSelectorWnd **aSelf,
53 QWidget* aParent = 0, const char* aName = 0,
54 WFlags aFlags = WType_TopLevel);
55 virtual ~VBoxSelectorWnd();
56
57 bool startMachine (const QUuid &id);
58
59public slots:
60
61 void fileDiskMgr();
62 void fileSettings();
63 void fileExit();
64
65 void vmNew();
66 void vmSettings (const QString &category = QString::null);
67 void vmDelete();
68 void vmStart();
69 void vmDiscard();
70 void vmRefresh();
71
72 void refreshVMList();
73 void refreshVMItem (const QUuid &aID, bool aDetails,
74 bool aSnapshots);
75
76 void showHelpContents();
77
78protected:
79
80 /* events */
81 bool event (QEvent *e);
82
83protected slots:
84
85private:
86
87 void languageChange();
88
89private slots:
90
91 void vmListBoxCurrentChanged (bool aRefreshDetails = true,
92 bool aRefreshSnapshots = true);
93 void mediaEnumerated (const VBoxMediaList &list);
94
95 /* VirtualBox callback events we're interested in */
96
97 void machineStateChanged (const VBoxMachineStateChangeEvent &e);
98 void machineDataChanged (const VBoxMachineDataChangeEvent &e);
99 void machineRegistered (const VBoxMachineRegisteredEvent &e);
100 void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
101 void snapshotChanged (const VBoxSnapshotEvent &e);
102
103private:
104
105 /* actions */
106 QAction *fileDiskMgrAction;
107 QAction *fileSettingsAction;
108 QAction *fileExitAction;
109 QAction *vmNewAction;
110 QAction *vmConfigAction;
111 QAction *vmDeleteAction;
112 QAction *vmStartAction;
113 QAction *vmDiscardAction;
114 QAction *vmRefreshAction;
115 QAction *helpContentsAction;
116 QAction *helpWebAction;
117 QAction *helpAboutAction;
118 QAction *helpResetMessagesAction;
119
120 /* widgets */
121 VBoxVMListBox *vmListBox;
122 QTabWidget *vmTabWidget;
123 VBoxVMDetailsView *vmDetailsView;
124 VBoxSnapshotsWgt *vmSnapshotsWgt;
125
126 QValueList <CSession> sessions;
127
128 QPoint normal_pos;
129 QSize normal_size;
130};
131
132#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