Source

pynoto / src / Main / ConsoleWidget.h

Full commit
#ifndef _CONSOLEWIDGET_H_
#define _CONSOLEWIDGET_H_

#include <QStackedWidget>
#include "Include/IEditorsManagerPlugin.h"

class SearchResult;
class QAbstractTableModel;
class QButtonGroup;

namespace Ui {
    class ConsoleWidget;
}

namespace Main {

class IssuesConsole;
class ApplicationConsole;
class LogConsole;

class ConsoleWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ConsoleWidget(QWidget *parent = 0);
    virtual ~ConsoleWidget();

    IssuesConsole * issues();
    void setup(EditorsManager::IEditorsManagerPlugin* editors, QButtonGroup * btns);
public slots:
    void errorListChanged(QAbstractTableModel*);
    void switchTo(int mode);
signals:
    void consoleChanged(int);
private:
    Ui::ConsoleWidget *_ui;
    IssuesConsole * _issues;
    ApplicationConsole * _application;
    LogConsole * _log;

    QButtonGroup * _buttonGroup;
    int _mode;
};

}

#endif