mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 05:16:11 +00:00
6f2607fc3c
- DockWidgets inherit from base class and implement the interface - Move setup/refresh code from MainWindow to widgets - Remove unused/uneeded members - Use helper functions - Fix compiler/cppcheck warnings - Cleanup headers
35 lines
581 B
C++
35 lines
581 B
C++
#ifndef OMNIBAR_H
|
|
#define OMNIBAR_H
|
|
|
|
#include <QLineEdit>
|
|
|
|
class MainWindow;
|
|
|
|
class Omnibar : public QLineEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Omnibar(MainWindow *main, QWidget *parent = 0);
|
|
|
|
void fillFlags(QString flag);
|
|
void clearFlags();
|
|
QStringList getFlags();
|
|
void setupCompleter();
|
|
|
|
private slots:
|
|
void on_gotoEntry_returnPressed();
|
|
|
|
void restoreCompleter();
|
|
|
|
public slots:
|
|
void showCommands();
|
|
void clearContents();
|
|
|
|
private:
|
|
MainWindow *main;
|
|
QStringList commands;
|
|
QStringList flags;
|
|
};
|
|
|
|
#endif // OMNIBAR_H
|