src
gui
include
corbo-gui
label_combobox_widget.h
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2020,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21
*
22
* Authors: Christoph Rösmann
23
*********************************************************************/
24
25
#ifndef SRC_GUI_INCLUDE_CORBO_GUI_LABEL_COMBOBOX_WIDGET_H_
26
#define SRC_GUI_INCLUDE_CORBO_GUI_LABEL_COMBOBOX_WIDGET_H_
27
28
#include <QComboBox>
29
#include <QLabel>
30
31
namespace
corbo
{
32
namespace
gui {
33
34
class
LabelComboBoxWidget
:
public
QWidget
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
LabelComboBoxWidget
(QWidget* parent = 0) :
LabelComboBoxWidget
(
""
, parent) {}
40
explicit
LabelComboBoxWidget
(
const
QString& label, QWidget* parent = 0);
41
~LabelComboBoxWidget
() {}
42
43
QSize
sizeHint
()
const override
;
44
45
void
setLabel
(
const
QString& label) {
_label
->setText(label); }
46
47
QComboBox*
widgetComboBox
() {
return
_combobox
; }
48
const
QComboBox*
widgetComboBox
()
const
{
return
_combobox
; }
49
50
QLabel*
widgetLabel
() {
return
_label
; }
51
const
QLabel*
widgetLabel
()
const
{
return
_label
; }
52
53
protected
:
54
private
:
55
QComboBox*
_combobox
;
56
QLabel*
_label
;
57
};
58
59
}
// namespace gui
60
}
// namespace corbo
61
62
#endif // SRC_GUI_INCLUDE_CORBO_GUI_LABEL_COMBOBOX_WIDGET_H_
corbo::gui::LabelComboBoxWidget::~LabelComboBoxWidget
~LabelComboBoxWidget()
Definition:
label_combobox_widget.h:41
corbo::gui::LabelComboBoxWidget
Definition:
label_combobox_widget.h:34
corbo
Definition:
communication/include/corbo-communication/utilities.h:37
corbo::gui::LabelComboBoxWidget::widgetLabel
QLabel * widgetLabel()
Definition:
label_combobox_widget.h:50
corbo::gui::LabelComboBoxWidget::widgetLabel
const QLabel * widgetLabel() const
Definition:
label_combobox_widget.h:51
corbo::gui::LabelComboBoxWidget::setLabel
void setLabel(const QString &label)
Definition:
label_combobox_widget.h:45
corbo::gui::LabelComboBoxWidget::_label
QLabel * _label
Definition:
label_combobox_widget.h:56
corbo::gui::LabelComboBoxWidget::widgetComboBox
QComboBox * widgetComboBox()
Definition:
label_combobox_widget.h:47
corbo::gui::LabelComboBoxWidget::widgetComboBox
const QComboBox * widgetComboBox() const
Definition:
label_combobox_widget.h:48
corbo::gui::LabelComboBoxWidget::LabelComboBoxWidget
LabelComboBoxWidget(QWidget *parent=0)
Definition:
label_combobox_widget.h:39
corbo::gui::LabelComboBoxWidget::sizeHint
QSize sizeHint() const override
Definition:
label_combobox_widget.cpp:46
corbo::gui::LabelComboBoxWidget::_combobox
QComboBox * _combobox
Definition:
label_combobox_widget.h:55
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:57