Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
a0864f60
Verified
Commit
a0864f60
authored
Jun 08, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Add title to automate
parent
ab91b61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Automate.h
View file @
a0864f60
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment