File indexing completed on 2024-04-21 03:45:27

0001 /*
0002     SPDX-FileCopyrightText: 2003-2008 Cies Breijs <cies AT kde DOT nl>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef _CONSOLE_H_
0008 #define _CONSOLE_H_
0009 
0010 #include <QWidgetAction>
0011 
0012 class QComboBox;
0013 
0014 
0015 class Console : public QWidgetAction
0016 {
0017     Q_OBJECT
0018 
0019     public:
0020         explicit Console(QWidget *parent = nullptr);
0021 
0022         void disable();
0023         void enable();
0024 
0025         void showError(const QString&);
0026 
0027     public Q_SLOTS:
0028         void run();
0029         void clearMarkings();
0030         void executeActionTriggered();
0031 
0032     Q_SIGNALS:
0033         QString execute(const QString&);
0034 
0035     private:
0036         QComboBox *comboBox;
0037         QWidget   *baseWidget;
0038 };
0039 
0040 #endif  // _CONSOLE_H_