Commit ea73b9fb authored by Denis Khachko's avatar Denis Khachko

Robot bug fixes

parent 3884eeef
......@@ -88,6 +88,24 @@
{ "name": "row", "baseType": "int", "access": "out" },
{ "name": "col", "baseType": "int", "access": "out" }
]
},
{
"name": {"ascii": "upChar", "ru_RU": "@@верхняя буква"},
"async": false,
"returnType": "char",
"arguments": [
{ "name": "row", "baseType": "int"},
{ "name": "col", "baseType": "int"}
]
},
{
"name": {"ascii": "downChar", "ru_RU": "@@нижняя буква"},
"async": false,
"returnType": "char",
"arguments": [
{ "name": "row", "baseType": "int"},
{ "name": "col", "baseType": "int"}
]
}
],
......
......@@ -764,6 +764,13 @@ namespace ActorRobot {
mode=Mode;
sett=RobotModule::robotSettings();
QGraphicsView * view=views().first();
if(mode==NORMAL_MODE)
{
radSpinBox->hide();
tempSpinBox->hide();
redrawEditFields();
redrawRTFields();
}
if(mode==NEDIT_MODE)
{
radSpinBox->hide();
......@@ -805,6 +812,7 @@ namespace ActorRobot {
if(mode==TEXT_MODE)
{
tempSpinBox->hide();
radSpinBox->hide();
redrawRTFields();
setTextEditMode(true);
}
......@@ -3087,7 +3095,15 @@ bool RobotModule::runIsColor()
col=field->robotY()+1;
};
QChar RobotModule::runUpChar(const int row, const int col)
{
qDebug()<<field->cellAt(row-1,col-1)->upChar;
return field->cellAt(row-1,col-1)->upChar;
};
QChar RobotModule::runDownChar(const int row, const int col)
{qDebug()<<field->cellAt(row-1,col-1)->downChar;
return field->cellAt(row-1,col-1)->downChar;
};
int RobotModule::LoadFromFile(QString p_FileName)
{
......
......@@ -534,6 +534,8 @@ namespace ActorRobot {
bool runMark(const int row, const int col) ;
bool runColored(const int row, const int col);
void runRobotPos(int& row, int& col);
QChar runUpChar(const int row, const int col);
QChar runDownChar(const int row, const int col);
public:
// GUI access methods
QWidget* mainWidget() const;
......
Markdown is supported
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