iCub-main
icub-main
src
tools
FirmwareUpdater
customcombobox.h
Go to the documentation of this file.
1
#ifndef CUSTOMCOMBOBOX_H
2
#define CUSTOMCOMBOBOX_H
3
4
#include <QObject>
5
#include <QComboBox>
6
#include <QMutex>
7
8
#define GAINAMPROLE Qt::UserRole + 1
9
10
class
CustomComboBox
:
public
QComboBox
11
{
12
Q_OBJECT
13
14
public
:
15
CustomComboBox
(QWidget *parent =
nullptr
);
16
void
clear
();
17
void
setCurrIndex
(
int
v);
18
void
initItems
();
19
void
clearItems
();
20
void
addCustomValue
(
float
val);
21
void
setIndexFromAmpGain
(
int
g);
22
23
private
:
24
int
previousIndex;
25
bool
modified;
26
bool
initialized;
27
QMutex mutex;
28
29
private
slots:
30
void
onCurrentIndexChanged(
int
v);
31
};
32
33
#endif
// CUSTOMCOMBOBOX_H
CustomComboBox
Definition:
customcombobox.h:11
CustomComboBox::setCurrIndex
void setCurrIndex(int v)
Definition:
customcombobox.cpp:33
CustomComboBox::addCustomValue
void addCustomValue(float val)
Definition:
customcombobox.cpp:159
CustomComboBox::clearItems
void clearItems()
Definition:
customcombobox.cpp:73
CustomComboBox::clear
void clear()
Definition:
customcombobox.cpp:17
CustomComboBox::CustomComboBox
CustomComboBox(QWidget *parent=nullptr)
Definition:
customcombobox.cpp:4
CustomComboBox::initItems
void initItems()
Definition:
customcombobox.cpp:82
CustomComboBox::setIndexFromAmpGain
void setIndexFromAmpGain(int g)
Definition:
customcombobox.cpp:121
Generated on Mon Oct 28 2024 12:22:45 for iCub-main by
1.9.1