VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.h@ 43138

Last change on this file since 43138 was 41587, checked in by vboxsync, 12 years ago

FE/Qt: 6227: Decrease GUI build time: Rework COM wrappers generator to create one header per each COM interface. Update all GUI files to use newly generated headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.6 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * VBoxVMInformationDlg class declaration
5 */
6
7/*
8 * Copyright (C) 2006-2009 Oracle Corporation
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
19#ifndef __VBoxVMInformationDlg_h__
20#define __VBoxVMInformationDlg_h__
21
22/* Local includes: */
23#include "VBoxVMInformationDlg.gen.h"
24#include "QIMainDialog.h"
25#include "QIWithRetranslateUI.h"
26
27/* COM includes: */
28#include "COMEnums.h"
29#include "CSession.h"
30
31class UIMachineWindow;
32class QTimer;
33
34class VBoxVMInformationDlg : public QIWithRetranslateUI2 <QIMainDialog>, public Ui::VBoxVMInformationDlg
35{
36 Q_OBJECT;
37
38public:
39
40 typedef QMap <QString, QString> DataMapType;
41 typedef QMap <QString, QStringList> LinksMapType;
42 struct CounterElementType { QString type; DataMapType list; };
43 typedef QMap <QString, VBoxVMInformationDlg*> InfoDlgMap;
44
45 static void createInformationDlg(UIMachineWindow *pMachineWindow);
46
47protected:
48
49 VBoxVMInformationDlg (UIMachineWindow *pMachineWindow, Qt::WindowFlags aFlags);
50 ~VBoxVMInformationDlg();
51
52 void retranslateUi();
53
54 virtual bool event (QEvent *aEvent);
55 virtual void resizeEvent (QResizeEvent *aEvent);
56 virtual void showEvent (QShowEvent *aEvent);
57
58private slots:
59
60 void updateDetails();
61 void processStatistics();
62 void onPageChanged (int aIndex);
63
64private:
65
66 QString parseStatistics (const QString &aText);
67 void refreshStatistics();
68
69 QString formatValue (const QString &aValueName, const QString &aValue, int aMaxSize);
70 QString formatMedium (const QString &aCtrName, LONG aPort, LONG aDevice, const QString &aBelongsTo);
71 QString formatAdapter (ULONG aSlot, const QString &aBelongsTo);
72
73 QString composeArticle (const QString &aBelongsTo, int aSpacesCount = 0);
74
75 static InfoDlgMap mSelfArray;
76
77 CSession mSession;
78 bool mIsPolished;
79 QTimer *mStatTimer;
80
81 int mWidth;
82 int mHeight;
83 bool mMax;
84
85 DataMapType mNamesMap;
86 DataMapType mValuesMap;
87 DataMapType mUnitsMap;
88 LinksMapType mLinksMap;
89};
90
91#endif // __VBoxVMInformationDlg_h__
92
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use