Pictoprev_picto=PCBcontext.getPcbdb().getCurrentUser().has_categories()?find_picto(cat,coord_x,coord_y):find_picto(coord_x,coord_y);//¿estamos reemplazanddo un picto que ya existe?
Pictoprev_picto=PCBcontext.getPcbdb().getCurrentUser().has_categories()?find_picto(cat,coord_x,coord_y):find_picto(coord_x,coord_y);//¿estamos reemplazanddo un picto que ya existe?
...
@@ -439,7 +439,7 @@ public class Vocabulary implements Iterable<Picto> {
...
@@ -439,7 +439,7 @@ public class Vocabulary implements Iterable<Picto> {
cropImageView.setAspectRatio(editar?imagePicto.getWidth():4,editar?imagePicto.getHeight():3);//Si es editar un picto la ventana de recorte mantiene el tamaño de la imagen, sino 4:3
cropImageView.setAspectRatio(editar?imagePicto.getWidth():4,editar?imagePicto.getHeight():3);//Si es editar un picto la ventana de recorte mantiene el tamaño de la imagen, sino 4:3
cropImageView.setImageBitmap(imagePicto);
cropImageView.setImageBitmap(imagePicto);
...
@@ -447,8 +447,8 @@ public class EditPictoActivity extends Activity {
...
@@ -447,8 +447,8 @@ public class EditPictoActivity extends Activity {
@@ -457,13 +457,16 @@ public class EditPictoActivity extends Activity {
...
@@ -457,13 +457,16 @@ public class EditPictoActivity extends Activity {
}
}
}
}
Intentintent=getIntent();//Mandar a pictogram activity el path y el texto de la imagen
Intentintent=getIntent();//Mandar a pictogram activity el path y el texto de la imagen
intent.putExtra(PictoMenu.IS_EDIT,editar);//Para saber despues si estas editando o añadiendo nuevo y coger los datos de intent o de data en OnActivityResult
intent.putExtra(PictoMenu.IS_EDIT,editar);//Para saber despues si estas editando o añadiendo nuevo y coger los datos de intent o de data en OnActivityResult
COMMENT="This table stores working session information. Every working session is related to one instruction and one supervisor (and the instruction is related to one method which is related to one student)";
COMMENT="This table stores working session information. Every working session is related to one instruction and one supervisor (and the instruction is related to one method which is related to one student)";