2017-03-29 10:18:37 +00:00
|
|
|
#ifndef OMNIBAR_H
|
|
|
|
#define OMNIBAR_H
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
|
|
|
class Omnibar : public QLineEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit Omnibar(MainWindow *main, QWidget *parent = 0);
|
|
|
|
|
2017-04-27 18:59:27 +00:00
|
|
|
void refresh(const QStringList &flagList);
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private slots:
|
2017-04-09 19:55:06 +00:00
|
|
|
void on_gotoEntry_returnPressed();
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-09 19:55:06 +00:00
|
|
|
void restoreCompleter();
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
public slots:
|
2017-04-27 23:48:21 +00:00
|
|
|
void clear();
|
2017-04-13 15:14:02 +00:00
|
|
|
|
|
|
|
private:
|
2017-04-27 18:59:27 +00:00
|
|
|
void setupCompleter();
|
|
|
|
|
|
|
|
MainWindow *main;
|
|
|
|
QStringList flags;
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OMNIBAR_H
|