algorithm.h
578 Bytes
#ifndef __ALGORITHM_H
#define __ALGORITHM_H
#include <QComboBox>
#include <QString>
#include <QWidget>
#include <openbr_export.h>
namespace br
{
class BR_EXPORT_GUI Algorithm : public QComboBox
{
Q_OBJECT
QHash<QString, QString> displayNames;
public:
explicit Algorithm(QWidget *parent = 0);
public slots:
bool addAlgorithm(const QString &algorithm, const QString &displayName = "");
private slots:
void setAlgorithm(QString algorithm);
signals:
void newAlgorithm(QString algorithm);
};
}
#endif // __ALGORITHM_H