mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02:00
feat: wxWidgets gui
This commit is contained in:
53 files changed
+2494
-296
No files matched your search
@@ -0,0 +1,40 @@
|
||||
#ifdef WITH_GUI
|
||||
|
||||
#ifndef SEQUENCE_H
|
||||
#define SEQUENCE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
struct DfuButton
|
||||
{
|
||||
std::string id;
|
||||
std::string name;
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
};
|
||||
|
||||
struct DfuStep
|
||||
{
|
||||
std::string description;
|
||||
int duration = 0;
|
||||
std::vector<std::string> activeButtons;
|
||||
std::string action;
|
||||
};
|
||||
|
||||
struct DfuSequence
|
||||
{
|
||||
std::string imageName;
|
||||
int imageWidth = 0;
|
||||
int imageHeight = 0;
|
||||
int imageOffsetX = 0;
|
||||
|
||||
std::vector<DfuButton> buttons;
|
||||
std::vector<DfuStep> steps;
|
||||
};
|
||||
|
||||
DfuSequence ParseSequence(const std::string& deviceKey);
|
||||
bool SequenceIsSupported(const std::string& deviceKey);
|
||||
|
||||
#endif // SEQUENCE_H
|
||||
|
||||
#endif // WITH_GUI
|
||||
Reference in new issue
Block a user