StatusIndication.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5
*
6
* ArmarX is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*
10
* ArmarX is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* @package ArmarXGui::gui-plugins::StatusIndication
19
* @author Leonie Leven
20
* @date 2024
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
25
26
#pragma once
27
28
29
// ArmarX
30
//#include <ArmarXCore/core/system/ImportExportComponent.h>
31
32
//#include <ArmarXGui/libraries/ArmarXGuiBase/ArmarXComponentWidgetController.h>
33
//#include <ArmarXGui/libraries/ArmarXGuiBase/ArmarXGuiPlugin.h>
34
35
//#include "PresenterViewWidgetController.h"
36
#include <QLabel>
37
#include <QResizeEvent>
38
39
namespace
armarx
40
{
41
42
43
class
StatusIndicationLabel
:
public
QLabel
44
{
45
Q_OBJECT
46
47
public
:
48
explicit
StatusIndicationLabel
(QWidget* parent =
nullptr
);
49
void
setTextWithScaling
(
const
QString& text);
50
51
protected
:
52
void
resizeEvent
(QResizeEvent* event)
override
;
53
54
private
:
55
void
adjustFontSize();
56
57
QString m_text;
58
};
59
60
61
}
// namespace armarx
armarx::StatusIndicationLabel
Definition:
StatusIndication.h:43
armarx::StatusIndicationLabel::resizeEvent
void resizeEvent(QResizeEvent *event) override
Definition:
StatusIndication.cpp:50
armarx::StatusIndicationLabel::StatusIndicationLabel
StatusIndicationLabel(QWidget *parent=nullptr)
Definition:
StatusIndication.cpp:35
armarx::StatusIndicationLabel::setTextWithScaling
void setTextWithScaling(const QString &text)
Definition:
StatusIndication.cpp:42
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:27
ArmarXGui
gui-plugins
DemoStatePresenterView
StatusIndication.h
Generated on Sat Apr 12 2025 09:13:29 for armarx_documentation by
1.8.17