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
c42c1be4
Commit
c42c1be4
authored
Jul 31, 2013
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed actor get acceptable command line parameters
parent
54ce1499
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
110 additions
and
76 deletions
+110
-76
scripts/gen_actor_source.py
scripts/gen_actor_source.py
+24
-24
share/kumir2/translations/ActorRobot_ru.ts
share/kumir2/translations/ActorRobot_ru.ts
+50
-45
src/actors/complexnumbers/complexnumbersmodule.cpp
src/actors/complexnumbers/complexnumbersmodule.cpp
+4
-0
src/actors/complexnumbers/complexnumbersmodule.h
src/actors/complexnumbers/complexnumbersmodule.h
+1
-1
src/actors/draw/CMakeLists.txt
src/actors/draw/CMakeLists.txt
+0
-2
src/actors/draw/drawmodule.cpp
src/actors/draw/drawmodule.cpp
+14
-0
src/actors/draw/drawmodule.h
src/actors/draw/drawmodule.h
+2
-0
src/actors/painter/paintermodule.cpp
src/actors/painter/paintermodule.cpp
+5
-0
src/actors/painter/paintermodule.h
src/actors/painter/paintermodule.h
+1
-0
src/actors/robot/robotmodule.cpp
src/actors/robot/robotmodule.cpp
+2
-2
src/actors/robot/robotmodule.h
src/actors/robot/robotmodule.h
+1
-1
src/actors/robot25d/isometricrobotmodule.cpp
src/actors/robot25d/isometricrobotmodule.cpp
+5
-0
src/actors/robot25d/isometricrobotmodule.h
src/actors/robot25d/isometricrobotmodule.h
+1
-1
No files found.
scripts/gen_actor_source.py
View file @
c42c1be4
...
...
@@ -1137,12 +1137,16 @@ class CppClassBase:
signatureBeginPos
=
firstLine
.
index
(
self
.
className
+
"::"
,
rtypeEndPos
)
+
2
+
len
(
self
.
className
)
signature
=
firstLine
[
signatureBeginPos
:]
assert
groupName
in
[
"public"
,
"protected"
,
"private"
,
"public_slot"
,
"protected_slot"
,
"private_slot"
,
"public_virtual"
,
"public_virtual_slot"
]
group
=
locals
()[
groupName
+
's'
]
"public_virtual"
,
"public_virtual_slot"
,
"public_static"
]
if
"virtual"
in
groupName
:
modifier
=
"virtual "
group
=
locals
()[
groupName
+
's'
]
elif
"static"
in
groupName
:
modifier
=
"static "
group
=
locals
()[
groupName
[
0
:
-
7
]
+
's'
]
else
:
modifier
=
""
group
=
locals
()[
groupName
+
's'
]
group
+=
[
_addIndent
(
modifier
+
returnType
+
" "
+
signature
+
";"
)]
elif
key
==
"constructorImplementation"
:
implMethod
=
value
.
__func__
...
...
@@ -1907,13 +1911,9 @@ private:
return
"""
/* protected */ QList<ExtensionSystem::CommandLineParameter> %s::acceptableCommandLineParameters() const
{
QList<ExtensionSystem::CommandLineParameter> result;
if (module_) {
result = module_->acceptableCommandLineParameters();
}
return result;
return %s::acceptableCommandLineParameters();
}
"""
%
self
.
className
"""
%
(
self
.
className
,
self
.
_module
.
className
())
class
AsyncThreadCppClass
(
CppClassBase
):
...
...
@@ -2420,22 +2420,6 @@ class ModuleBaseCppClass(CppClassBase):
}
"""
%
(
self
.
className
,
self
.
_module
.
pluginClassName
(),
self
.
_module
.
pluginClassName
())
def
acceptableCommandLineParametersCppImplementation
(
self
):
"""
Empty implementation to get acceptable command line parameters
:rtype: str
:return: implementation of QList<ExtensionSystem::CommandLineParameter> acceptableCommandLineParameters()
"""
return
"""
/* public virtual */ QList<ExtensionSystem::CommandLineParameter> %s::acceptableCommandLineParameters() const
{
// See "src/shared/extensionsystem/commandlineparameter.h" for constructor details
return QList<ExtensionSystem::CommandLineParameter>();
}
"""
%
self
.
className
def
initializeCppImplementation
(
self
):
"""
Pass initialization to module itself
...
...
@@ -2628,6 +2612,22 @@ class ModuleCppClass(CppClassBase):
}
"""
%
self
.
className
def
acceptableCommandLineParametersCppImplementation
(
self
):
"""
Empty implementation to get acceptable command line parameters
:rtype: str
:return: implementation of QList<ExtensionSystem::CommandLineParameter> acceptableCommandLineParameters()
"""
return
"""
/* public static */ QList<ExtensionSystem::CommandLineParameter> %s::acceptableCommandLineParameters()
{
// See "src/shared/extensionsystem/commandlineparameter.h" for constructor details
return QList<ExtensionSystem::CommandLineParameter>();
}
"""
%
self
.
className
# Script workflow functions
...
...
share/kumir2/translations/ActorRobot_ru.ts
View file @
c42c1be4
...
...
@@ -3,104 +3,109 @@
<
TS
version
=
"
2.0
"
language
=
"
ru_RU
"
>
<
context
>
<
name
>
ActorRobot
::
RobotModule
<
/name
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3447
"
/>
<
source
>
Robot
field
file
name
<
/source
>
<
translation
>
Имя
файла
с
обстановкой
Робота
<
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
41
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
65
"
/>
<
source
>
Робот
разбился
:
сверху
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
42
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
60
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
478
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
495
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
66
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
84
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
505
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
526
"
/>
<
source
>
Отказ
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
58
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
34
82
"
/>
<
source
>
Робот
разбился
:
снизу
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
477
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
504
"
/>
<
source
>
Робот
разбился
:
слева
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
496
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
527
"
/>
<
source
>
Робот
разбился
:
справа
стена
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
1
9
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
3
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
4
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
5
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
56
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
57
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
58
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
59
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
0
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
1
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
2
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
3
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
5
9
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
7
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
8
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
9
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
60
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
61
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
62
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
63
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
4
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
5
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
6
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
7
1
"
/>
<
source
>
да
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
1
9
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
3
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
4
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
5
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
56
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
57
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
58
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
59
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
0
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
1
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
2
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
3
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
5
9
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
7
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
8
1
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
35
9
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
60
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
61
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
62
4
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
63
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
4
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
5
5
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
6
3
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
36
7
1
"
/>
<
source
>
нет
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
utf8
=
"
true
"
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
66
0
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
70
0
"
/>
<
source
>
Нет
какой
клетки
!<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
68
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
879
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
72
2
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
3
920
"
/>
<
source
>
Robot
<
/source
>
<
translation
>
Робот
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
16
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
11
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
57
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
52
"
/>
<
source
>
New
field
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
17
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
12
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
58
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
53
"
/>
<
source
>
Save
current
field
?
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
22
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
17
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
63
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
58
"
/>
<
source
>
Save
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
24
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
19
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
65
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
60
"
/>
<
source
>
Don
&
apos
;
t
save
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
26
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
21
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
38
67
"
/>
<
location
filename
=
"
../../../src/actors/robot/robotmodule.cpp
"
line
=
"
39
62
"
/>
<
source
>
Cancel
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
...
...
src/actors/complexnumbers/complexnumbersmodule.cpp
View file @
c42c1be4
...
...
@@ -35,6 +35,10 @@ void ComplexNumbersModule::setAnimationEnabled(bool enabled)
*/
}
QList
<
ExtensionSystem
::
CommandLineParameter
>
ComplexNumbersModule
::
acceptableCommandLineParameters
()
{
return
QList
<
ExtensionSystem
::
CommandLineParameter
>
();
}
qreal
ComplexNumbersModule
::
runRe
(
const
Complex
&
x
)
{
...
...
src/actors/complexnumbers/complexnumbersmodule.h
View file @
c42c1be4
...
...
@@ -22,7 +22,7 @@ class ComplexNumbersModule
Q_OBJECT
public:
// Constructor
static
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
();
ComplexNumbersModule
(
ExtensionSystem
::
KPlugin
*
parent
);
inline
void
reloadSettings
(
ExtensionSystem
::
SettingsPtr
)
{}
inline
void
changeGlobalState
(
ExtensionSystem
::
GlobalState
,
ExtensionSystem
::
GlobalState
)
{}
...
...
src/actors/draw/CMakeLists.txt
View file @
c42c1be4
set
(
QT_USE_QTMAIN 1
)
find_package
(
Qt4 4.7.0 COMPONENTS QtCore QtGui REQUIRED
)
find_package
(
PythonInterp 2.6 REQUIRED
)
include
(
${
QT_USE_FILE
}
)
include
(
../../kumir2_plugin.cmake
)
...
...
@@ -93,4 +92,3 @@ install(
TARGETS ActorDraw
DESTINATION
${
PLUGINS_DIR
}
)
src/actors/draw/drawmodule.cpp
View file @
c42c1be4
...
...
@@ -25,6 +25,12 @@ DrawModule::DrawModule(ExtensionSystem::KPlugin * parent)
// TODO implement me
}
/* public static */
QList
<
ExtensionSystem
::
CommandLineParameter
>
DrawModule
::
acceptableCommandLineParameters
()
{
// See "src/shared/extensionsystem/commandlineparameter.h" for constructor details
return
QList
<
ExtensionSystem
::
CommandLineParameter
>
();
}
/* public slot */
void
DrawModule
::
changeGlobalState
(
ExtensionSystem
::
GlobalState
old
,
ExtensionSystem
::
GlobalState
current
)
{
// Called when changed kumir state. The states are defined as enum ExtensionSystem::GlobalState:
...
...
@@ -45,6 +51,14 @@ DrawModule::DrawModule(ExtensionSystem::KPlugin * parent)
Q_UNUSED
(
current
);
// Remove this line on implementation
}
/* public slot */
void
DrawModule
::
loadActorData
(
QIODevice
*
source
)
{
// Set actor specific data (like environment)
// The source should be ready-to-read QIODevice like QBuffer or QFile
Q_UNUSED
(
source
);
// By default do nothing
}
/* public */
QWidget
*
DrawModule
::
mainWidget
()
const
{
// Returns module main view widget, or nullptr if there is no any views
...
...
src/actors/draw/drawmodule.h
View file @
c42c1be4
...
...
@@ -28,10 +28,12 @@ class DrawModule
Q_OBJECT
public
/* methods */
:
DrawModule
(
ExtensionSystem
::
KPlugin
*
parent
);
static
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
();
QWidget
*
mainWidget
()
const
;
QWidget
*
pultWidget
()
const
;
public
slots
:
void
changeGlobalState
(
ExtensionSystem
::
GlobalState
old
,
ExtensionSystem
::
GlobalState
current
);
void
loadActorData
(
QIODevice
*
source
);
void
reloadSettings
(
ExtensionSystem
::
SettingsPtr
settings
);
void
reset
();
void
setAnimationEnabled
(
bool
enabled
);
...
...
src/actors/painter/paintermodule.cpp
View file @
c42c1be4
...
...
@@ -28,6 +28,11 @@ PainterModule::PainterModule(ExtensionSystem::KPlugin * parent)
reset
();
}
QList
<
ExtensionSystem
::
CommandLineParameter
>
PainterModule
::
acceptableCommandLineParameters
()
{
return
QList
<
ExtensionSystem
::
CommandLineParameter
>
();
}
void
PainterModule
::
reset
()
{
QImage
*
del
=
canvas
;
...
...
src/actors/painter/paintermodule.h
View file @
c42c1be4
...
...
@@ -28,6 +28,7 @@ class PainterModule
public:
// Constructor
PainterModule
(
ExtensionSystem
::
KPlugin
*
parent
);
static
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
();
inline
void
reloadSettings
(
ExtensionSystem
::
SettingsPtr
)
{}
inline
void
changeGlobalState
(
ExtensionSystem
::
GlobalState
,
ExtensionSystem
::
GlobalState
)
{}
public
slots
:
...
...
src/actors/robot/robotmodule.cpp
View file @
c42c1be4
...
...
@@ -3441,10 +3441,10 @@ QWidget* RobotModule::pultWidget() const
*/
return
m_pultWidget
;
}
QList
<
ExtensionSystem
::
CommandLineParameter
>
RobotModule
::
acceptableCommandLineParameters
()
const
QList
<
ExtensionSystem
::
CommandLineParameter
>
RobotModule
::
acceptableCommandLineParameters
()
{
QList
<
ExtensionSystem
::
CommandLineParameter
>
params
;
params
.
append
(
ExtensionSystem
::
CommandLineParameter
(
true
,
'f'
,
"field"
,
tr
(
"Robot
:field file name.
"
),
QVariant
::
String
,
false
));
params
.
append
(
ExtensionSystem
::
CommandLineParameter
(
true
,
'f'
,
"field"
,
tr
(
"Robot
field file name
"
),
QVariant
::
String
,
false
));
return
params
;
}
...
...
src/actors/robot/robotmodule.h
View file @
c42c1be4
...
...
@@ -516,7 +516,7 @@ namespace ActorRobot {
// Set animation flag
void
setAnimationEnabled
(
bool
enabled
);
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
()
const
;
static
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
()
;
QString
initialize
(
const
QStringList
&
configurationParameters
,
const
ExtensionSystem
::
CommandLine
&
runtimeParameters
);
// Actor methods
void
runGoUp
();
...
...
src/actors/robot25d/isometricrobotmodule.cpp
View file @
c42c1be4
...
...
@@ -21,6 +21,11 @@ IsometricRobotModule::IsometricRobotModule(ExtensionSystem::KPlugin * parent)
{
}
QList
<
ExtensionSystem
::
CommandLineParameter
>
IsometricRobotModule
::
acceptableCommandLineParameters
()
{
return
QList
<
ExtensionSystem
::
CommandLineParameter
>
();
}
void
IsometricRobotModule
::
reset
()
{
bool
wasAnimated
=
robotView_
->
isAnimated
();
...
...
src/actors/robot25d/isometricrobotmodule.h
View file @
c42c1be4
...
...
@@ -25,7 +25,7 @@ public:
// Constructor
IsometricRobotModule
(
ExtensionSystem
::
KPlugin
*
parent
);
static
QList
<
ExtensionSystem
::
CommandLineParameter
>
acceptableCommandLineParameters
();
public
slots
:
// Reset actor state before program starts
void
reset
();
...
...
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