Verified Commit a0864f60 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Add title to automate

parent ab91b61e
......@@ -12,6 +12,7 @@
class Automate {
private:
static std::unique_ptr<Automate> instance;
std::string title;
unsigned int delai;
Fonction* fonction;
RegleVoisinage* regleVoisinage;
......@@ -21,10 +22,12 @@ class Automate {
unsigned int l;
bool isRunning;
Automate(): delai(500), fonction(nullptr), regleVoisinage(nullptr), itBuffer(buffer.begin()), h(0), l(0), isRunning(false) {} //modifié
Automate(): delai(500), fonction(nullptr), regleVoisinage(nullptr), itBuffer(buffer.begin()), h(0), l(0), isRunning(false), title("") {} //modifié
~Automate() = default;
Automate(const Automate& a) = delete;
Automate& operator=(const Automate& a) = delete;
std::string getTitle() const { return title; }
std::string setTitle(const std::string& t) { title = t; }
class Timer: public QObject {
private:
int timerID;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment