Initial integration of the code widget
This commit is contained in:
parent
2f3069a388
commit
417608478d
4 changed files with 105 additions and 10 deletions
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
#include <QMainWindow>
|
||||
#include <memory>
|
||||
#include <QCodeEditor>
|
||||
#include <QPythonCompleter>
|
||||
#include <QPythonHighlighter>
|
||||
|
||||
#include "channelwidget.h"
|
||||
|
||||
|
|
@ -16,6 +19,9 @@ class MainWindow : public QMainWindow
|
|||
Q_OBJECT
|
||||
std::vector<std::shared_ptr<ChannelWidget>> channels;
|
||||
Ui::MainWindow *ui;
|
||||
QCodeEditor codeEditor;
|
||||
QPythonHighlighter highligter;
|
||||
QPythonCompleter completer;
|
||||
|
||||
signals:
|
||||
void channelStateChanged(uint16_t device, uint16_t channel);
|
||||
|
|
@ -26,6 +32,7 @@ public:
|
|||
|
||||
private:
|
||||
void enumerateDevices();
|
||||
void generateExample();
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue