VirtualBox

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

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

Made kchmviewer available from the Linux GUI

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

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