ChonkyStation/zep/demos/demo_qt/mainwindow.h
2022-07-07 16:42:31 +02:00

27 lines
655 B
C++

#pragma once
#include <QMainWindow>
#include <memory>
#include <orca/mode_orca.h>
#include <repl/mode_repl.h>
QT_FORWARD_DECLARE_CLASS(QDockWidget)
QT_FORWARD_DECLARE_CLASS(QMenu)
QT_FORWARD_DECLARE_CLASS(QToolbar)
class MainWindow : public QMainWindow, public Zep::IZepReplProvider
{
public:
Q_OBJECT
public:
MainWindow();
~MainWindow();
virtual std::string ReplParse(Zep::ZepBuffer& buffer, const Zep::GlyphIterator& cursorOffset, Zep::ReplParseType type) override;
virtual std::string ReplParse(const std::string& text) override;
virtual bool ReplIsFormComplete(const std::string& str, int& indent) override;
private:
};