#ifndef __ALGORITHM_H #define __ALGORITHM_H #include #include #include #include namespace br { class BR_EXPORT_GUI Algorithm : public QComboBox { Q_OBJECT QHash 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