VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMInformationDlg.h@ 10631

Last change on this file since 10631 was 9729, checked in by vboxsync, 17 years ago

Backed out 32068 - see comment #163 in bug #2664.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.7 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * VBoxVMInformationDlg class declaration
5 */
6
7/*
8 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
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 (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef __VBoxVMInformationDlg_h__
24#define __VBoxVMInformationDlg_h__
25
26#include "VBoxVMInformationDlg.gen.h"
27#include "QIMainDialog.h"
28#include "COMDefs.h"
29#include "QIWithRetranslateUI.h"
30
31class VBoxConsoleView;
32class QTimer;
33
34class VBoxVMInformationDlg : public QIWithRetranslateUI2<QIMainDialog>,
35 public Ui::VBoxVMInformationDlg
36{
37 Q_OBJECT;
38
39public:
40
41 typedef QMap<QString, QString> DataMapType;
42 typedef QMap<QString, QStringList> LinksMapType;
43 struct CounterElementType {QString type; DataMapType list;};
44 typedef QMap <QString, VBoxVMInformationDlg*> InfoDlgMap;
45
46 static void createInformationDlg (const CSession &aSession,
47 VBoxConsoleView *aConsole);
48
49 VBoxVMInformationDlg (VBoxConsoleView *aConsole, const CSession &aSession,
50 Qt::WindowFlags aFlags);
51 ~VBoxVMInformationDlg();
52
53protected:
54
55 void retranslateUi();
56
57 virtual bool event (QEvent *aEvent);
58 virtual void resizeEvent (QResizeEvent *aEvent);
59 virtual void showEvent (QShowEvent *aEvent);
60
61private slots:
62
63 void updateDetails();
64 void processStatistics();
65 void onPageChanged (int aIndex);
66
67private:
68
69 QString parseStatistics (const QString &aText);
70 void refreshStatistics();
71
72 QString formatHardDisk (KStorageBus aBus, LONG aChannel, LONG aDevice, const QString &aBelongsTo);
73 QString formatAdapter (ULONG aSlot, const QString &aBelongsTo);
74
75 QString composeArticle (const QString &aBelongsTo);
76
77 static InfoDlgMap mSelfArray;
78
79 bool mIsPolished;
80 VBoxConsoleView *mConsole;
81 CSession mSession;
82 QTimer *mStatTimer;
83
84 int mWidth;
85 int mHeight;
86 bool mMax;
87
88 DataMapType mNamesMap;
89 DataMapType mValuesMap;
90 DataMapType mUnitsMap;
91 LinksMapType mLinksMap;
92};
93
94#endif // __VBoxVMInformationDlg_h__
95
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