mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[Qt] Add text editor
This commit is contained in:
parent
eb23d7eab3
commit
c57f2db6c0
8 changed files with 72 additions and 6 deletions
22
include/panda_qt/text_editor.hpp
Normal file
22
include/panda_qt/text_editor.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <string>
|
||||
|
||||
#include "zep.h"
|
||||
#include "zep/mode_repl.h"
|
||||
#include "zep/regress.h"
|
||||
|
||||
class TextEditorWindow : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
Zep::ZepWidget_Qt zepWidget;
|
||||
Zep::IZepReplProvider replProvider;
|
||||
static constexpr float fontSize = 14.0f;
|
||||
|
||||
public:
|
||||
TextEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue