Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkMemoryUsageIndicatorView.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef QMITKMEMORYUSAGEINDICATORVIEW_WIDGET
18
#define QMITKMEMORYUSAGEINDICATORVIEW_WIDGET
19
20
#include <
MitkQtWidgetsExports.h
>
21
22
#include "ui_QmitkMemoryUsageIndicator.h"
23
#include <QWidget>
24
#include <qpixmap.h>
25
27
class
MITKQTWIDGETS_EXPORT
QmitkMemoryUsageIndicatorView
:
public
QWidget,
public
Ui::QmitkMemoryUsageIndicator
28
{
29
Q_OBJECT
30
31
public
:
33
QmitkMemoryUsageIndicatorView
(QWidget *parent =
nullptr
, Qt::WindowFlags f =
nullptr
);
34
36
~
QmitkMemoryUsageIndicatorView
();
37
38
protected
slots:
39
void
UpdateMemoryUsage();
40
41
protected
:
42
std::string FormatMemorySize(
size_t
size);
43
std::string FormatPercentage(
double
val);
44
std::string GetMemoryDescription(
size_t
processSize,
float
percentage);
45
46
QPixmap
m_LEDGreen
;
47
QPixmap
m_LEDYellow
;
48
QPixmap
m_LEDOrange
;
49
QPixmap
m_LEDRed
;
50
char
m_PreviousState
;
51
};
52
#endif // QMITKMEMORYUSAGEINDICATORVIEW_WIDGET
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition:
MitkQtWidgetsExports.h:15
QmitkMemoryUsageIndicatorView::m_LEDGreen
QPixmap m_LEDGreen
Definition:
QmitkMemoryUsageIndicatorView.h:46
QmitkMemoryUsageIndicatorView::m_PreviousState
char m_PreviousState
Definition:
QmitkMemoryUsageIndicatorView.h:50
QmitkMemoryUsageIndicatorView
Definition:
QmitkMemoryUsageIndicatorView.h:27
QmitkMemoryUsageIndicatorView::m_LEDRed
QPixmap m_LEDRed
Definition:
QmitkMemoryUsageIndicatorView.h:49
QmitkMemoryUsageIndicatorView::m_LEDYellow
QPixmap m_LEDYellow
Definition:
QmitkMemoryUsageIndicatorView.h:47
QmitkMemoryUsageIndicatorView::m_LEDOrange
QPixmap m_LEDOrange
Definition:
QmitkMemoryUsageIndicatorView.h:48
MitkQtWidgetsExports.h
git
MITK
Modules
QtWidgets
include
QmitkMemoryUsageIndicatorView.h
Generated on Fri Feb 3 2017 20:52:13 for Medical Imaging Interaction Toolkit by
1.8.9.1