Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
74dc664d
Commit
74dc664d
authored
Sep 22, 2016
by
Denis Khachko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vodoley redraw timer
parent
3972f27a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
src/actors/vodoley/vodoley.cpp
src/actors/vodoley/vodoley.cpp
+8
-2
src/actors/vodoley/vodoley.h
src/actors/vodoley/vodoley.h
+1
-1
src/actors/vodoley/vodoleymodule.cpp
src/actors/vodoley/vodoleymodule.cpp
+9
-0
src/actors/vodoley/vodoleymodule.h
src/actors/vodoley/vodoleymodule.h
+1
-0
No files found.
src/actors/vodoley/vodoley.cpp
View file @
74dc664d
...
...
@@ -661,8 +661,7 @@ void Vodoley::updateMenzur()
Btext
->
setPos
(
145
,
15
+
(
maxSize
()
-
Bsize
())
*
literSize
);
Ctext
->
setPos
(
255
,
15
+
(
maxSize
()
-
Csize
())
*
literSize
);
view
->
update
();
scene
->
update
();
mutex
.
unlock
();
...
...
@@ -670,6 +669,13 @@ void Vodoley::updateMenzur()
if
(
Csize
()
<
1
)
emit
CNull
();
else
emit
CNotNull
();
};
void
Vodoley
::
redraw
()
{
mutex
.
lock
();
view
->
update
();
scene
->
update
();
mutex
.
unlock
();
}
void
Vodoley
::
updateNeedBirka
()
{
...
...
src/actors/vodoley/vodoley.h
View file @
74dc664d
...
...
@@ -201,7 +201,7 @@ public slots:
void
FillC
();
void
MoveFromTo
(
uint
from
,
uint
to
);
void
redraw
();
signals:
void
Otkaz
(
QString
msg
);
...
...
src/actors/vodoley/vodoleymodule.cpp
View file @
74dc664d
...
...
@@ -53,6 +53,9 @@ QString VodoleyModule::initialize(const QStringList &configurationParameters, co
if
(
!
configurationParameters
.
contains
(
"tablesOnly"
))
{
createGui
();
createRescentMenu
();
redrawTimer
=
new
QTimer
(
this
);
connect
(
redrawTimer
,
SIGNAL
(
timeout
()),
MainWindow
,
SLOT
(
redraw
()));
}
return
""
;
...
...
@@ -82,6 +85,12 @@ QString VodoleyModule::initialize(const QStringList &configurationParameters, co
using
namespace
ExtensionSystem
;
// not to write "ExtensionSystem::" each time in this method scope
Q_UNUSED
(
old
);
// Remove this line on implementation
Q_UNUSED
(
current
);
// Remove this line on implementation
MainWindow
->
redraw
();
if
(
current
==
GlobalState
::
GS_Running
)
{
redrawTimer
->
start
(
100
);
}
else
redrawTimer
->
stop
();
}
/* public slot */
void
VodoleyModule
::
loadActorData
(
QIODevice
*
source
)
...
...
src/actors/vodoley/vodoleymodule.h
View file @
74dc664d
...
...
@@ -71,6 +71,7 @@ private:
Vodoley
*
MainWindow
;
ExtensionSystem
::
SettingsPtr
my_settings
;
QMenu
*
rescentMenu
;
QTimer
*
redrawTimer
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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