CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
projectconfig.h
Go to the documentation of this file.
1#ifndef PROJECTCONFIG_H
2#define PROJECTCONFIG_H
3
4#include <QtWidgets/QWidget>
5#include <context.h>
6
7struct PCInterface;
9
10namespace QtNodes {
11class Node;
12}
13
15
16class ProjectConfig : public QWidget {
17 Q_OBJECT
18 Q_DECLARE_PRIVATE(ProjectConfig)
19
20public:
21 explicit ProjectConfig(QWidget* parent_);
22 explicit ProjectConfig(QWidget* parent_, ProjectConfigCtx&& ctx);
24 void closeEvent(QCloseEvent* e);
25 QByteArray save();
26 void load(const QByteArray& data);
27 void clearGraphView();
28 void setColorMode(bool darkMode);
29
30public slots:
31 void simulationStarted();
32 void simulationStopped();
33
34signals:
35 void handleDock(QWidget* component);
36 void handleWidgetDeletion(QWidget* widget);
37 void handleWidgetShowing(QWidget* widget, bool docked);
40 void componentWidgetCreated(QWidget* component);
42
43private:
44 QScopedPointer<ProjectConfigPrivate> d_ptr;
45};
46
47#endif // PROJECTCONFIG_H
Definition projectconfig.h:16
void startSimulation()
void closeEvent(QCloseEvent *e)
Definition projectconfig.cpp:25
void handleWidgetDeletion(QWidget *widget)
void clearGraphView()
Definition projectconfig.cpp:43
void handleWidgetShowing(QWidget *widget, bool docked)
void simulationStopped()
Definition projectconfig.cpp:72
void handleDock(QWidget *component)
~ProjectConfig()
Definition projectconfig.cpp:21
void stopSimulation()
void componentWidgetCreated(QWidget *component)
void load(const QByteArray &data)
Definition projectconfig.cpp:37
QByteArray save()
Definition projectconfig.cpp:31
void setColorMode(bool darkMode)
Definition projectconfig.cpp:49
void closeProject()
void simulationStarted()
Definition projectconfig.cpp:65
Definition projectconfig_p.h:24
Definition pcinterface.h:7
Context< PCInterface > ProjectConfigCtx
Definition projectconfig.h:8
Definition context.h:13
Definition pcinterface.h:16