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
65b5b235
Commit
65b5b235
authored
Jan 31, 2013
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed "Fast run" button from GUI due to void implementation
parent
21b75010
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
19 deletions
+3
-19
src/plugins/coregui/kumirprogram.cpp
src/plugins/coregui/kumirprogram.cpp
+3
-18
src/plugins/coregui/kumirprogram.h
src/plugins/coregui/kumirprogram.h
+0
-1
No files found.
src/plugins/coregui/kumirprogram.cpp
View file @
65b5b235
...
...
@@ -17,7 +17,6 @@ KumirProgram::KumirProgram(QObject *parent)
,
plugin_bytcodeGenerator
(
0
)
,
plugin_bytecodeRun
(
0
)
,
plugin_editor
(
0
)
,
a_fastRun
(
0
)
,
a_blindRun
(
0
)
,
a_regularRun
(
0
)
,
a_testingRun
(
0
)
...
...
@@ -95,16 +94,6 @@ KumirProgram::KumirProgram(QObject *parent)
QAction
*
s2
=
new
QAction
(
this
);
s2
->
setSeparator
(
true
);
a_fastRun
=
new
QAction
(
tr
(
"Fast run"
),
this
);
a_fastRun
->
setIcon
(
QIcon
::
fromTheme
(
"system-run"
,
QIcon
(
QApplication
::
instance
()
->
property
(
"sharePath"
).
toString
()
+
"/icons/system-run.png"
)));
connect
(
a_fastRun
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
fastRun
()));
#ifndef Q_OS_MAC
a_fastRun
->
setShortcut
(
QKeySequence
(
"Ctrl+Shift+F9"
));
#else
a_fastRun
->
setShortcut
(
QKeySequence
(
"Ctrl+Shift+R"
));
#endif
a_fastRun
->
setToolTip
(
a_fastRun
->
text
()
+
" <b>"
+
a_fastRun
->
shortcut
().
toString
()
+
"</b>"
);
a_blindRun
=
new
QAction
(
tr
(
"Blind run"
),
this
);
a_blindRun
->
setIcon
(
QIcon
::
fromTheme
(
"media-seek-forward"
,
QIcon
(
QApplication
::
instance
()
->
property
(
"sharePath"
).
toString
()
+
"/icons/media-seek-forward.png"
)));
...
...
@@ -119,7 +108,6 @@ KumirProgram::KumirProgram(QObject *parent)
gr_actions
=
new
QActionGroup
(
this
);
gr_actions
->
addAction
(
a_fastRun
);
gr_actions
->
addAction
(
a_blindRun
);
gr_actions
->
addAction
(
a_regularRun
);
gr_actions
->
addAction
(
a_testingRun
);
...
...
@@ -474,8 +462,7 @@ void KumirProgram::handleLineChanged(int lineNo)
void
KumirProgram
::
switchGlobalState
(
GlobalState
prev
,
GlobalState
cur
)
{
if
(
cur
==
GS_Unlocked
||
cur
==
GS_Observe
)
{
if
(
a_fastRun
)
a_fastRun
->
setEnabled
(
true
);
a_blindRun
->
setEnabled
(
true
);
a_regularRun
->
setEnabled
(
true
);
a_testingRun
->
setEnabled
(
true
);
...
...
@@ -488,8 +475,7 @@ void KumirProgram::switchGlobalState(GlobalState prev, GlobalState cur)
}
if
(
cur
==
GS_Running
||
cur
==
GS_Input
)
{
if
(
a_fastRun
)
a_fastRun
->
setEnabled
(
false
);
a_blindRun
->
setEnabled
(
false
);
a_regularRun
->
setEnabled
(
false
);
a_testingRun
->
setEnabled
(
false
);
...
...
@@ -499,8 +485,7 @@ void KumirProgram::switchGlobalState(GlobalState prev, GlobalState cur)
a_stop
->
setEnabled
(
true
);
}
if
(
cur
==
GS_Pause
)
{
if
(
a_fastRun
)
a_fastRun
->
setEnabled
(
false
);
a_blindRun
->
setEnabled
(
true
);
a_regularRun
->
setEnabled
(
true
);
a_stepRun
->
setEnabled
(
true
);
...
...
src/plugins/coregui/kumirprogram.h
View file @
65b5b235
...
...
@@ -75,7 +75,6 @@ private:
GeneratorInterface
*
plugin_bytcodeGenerator
;
RunInterface
*
plugin_bytecodeRun
;
EditorInterface
*
plugin_editor
;
QAction
*
a_fastRun
;
QAction
*
a_blindRun
;
QAction
*
a_regularRun
;
QAction
*
a_testingRun
;
...
...
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