mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-17 05:55:43 +02:00
Version18.117.3
This commit is contained in:
parent
a1c1306375
commit
1ccf7387ed
|
@ -448,10 +448,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.117.2 (2019-04-21)"
|
#define Log_PLATFORM_VERSION "SWAD 18.117.3 (2019-04-21)"
|
||||||
#define CSS_FILE "swad18.112.1.css"
|
#define CSS_FILE "swad18.112.1.css"
|
||||||
#define JS_FILE "swad18.116.5.js"
|
#define JS_FILE "swad18.116.5.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.117.3: Apr 21, 2019 Changed the behaviour of pasting a file/folder in file browser. (242633 lines)
|
||||||
Version 18.117.2: Apr 21, 2019 Changed the behaviour of copying a file/folder in file browser. (242650 lines)
|
Version 18.117.2: Apr 21, 2019 Changed the behaviour of copying a file/folder in file browser. (242650 lines)
|
||||||
Version 18.117.1: Apr 21, 2019 Changed the behaviour of removing a file/folder in file browser. (242647 lines)
|
Version 18.117.1: Apr 21, 2019 Changed the behaviour of removing a file/folder in file browser. (242647 lines)
|
||||||
Version 18.117: Apr 21, 2019 Changed the behaviour of hiding/showing a file browser row. (242698 lines)
|
Version 18.117: Apr 21, 2019 Changed the behaviour of hiding/showing a file browser row. (242698 lines)
|
||||||
|
|
|
@ -1259,14 +1259,14 @@ static bool Brw_WriteRowFileBrowser (unsigned Level,const char *RowId,
|
||||||
const char *FileName);
|
const char *FileName);
|
||||||
static void Brw_PutIconsRemoveCopyPaste (unsigned Level,
|
static void Brw_PutIconsRemoveCopyPaste (unsigned Level,
|
||||||
const char PathInTree[PATH_MAX + 1],
|
const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName,const char *FileNameToShow);
|
const char *FileName);
|
||||||
static bool Brw_CheckIfCanPasteIn (unsigned Level);
|
static bool Brw_CheckIfCanPasteIn (unsigned Level);
|
||||||
static void Brw_PutIconRemove (const char PathInTree[PATH_MAX + 1],
|
static void Brw_PutIconRemove (const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName);
|
const char *FileName);
|
||||||
static void Brw_PutIconCopy (const char PathInTree[PATH_MAX + 1],
|
static void Brw_PutIconCopy (const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName);
|
const char *FileName);
|
||||||
static void Brw_PutIconPaste (unsigned Level,const char PathInTree[PATH_MAX + 1],
|
static void Brw_PutIconPaste (unsigned Level,const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName,const char *FileNameToShow);
|
const char *FileName);
|
||||||
static void Brw_IndentAndWriteIconExpandContract (unsigned Level,
|
static void Brw_IndentAndWriteIconExpandContract (unsigned Level,
|
||||||
const char *FileBrowserId,const char *RowId,
|
const char *FileBrowserId,const char *RowId,
|
||||||
Brw_IconTree_t IconThisRow,
|
Brw_IconTree_t IconThisRow,
|
||||||
|
@ -5587,7 +5587,7 @@ static bool Brw_WriteRowFileBrowser (unsigned Level,const char *RowId,
|
||||||
Gbl.FileBrowser.ICanEditFileOrFolder = Brw_CheckIfICanEditFileOrFolder (Level);
|
Gbl.FileBrowser.ICanEditFileOrFolder = Brw_CheckIfICanEditFileOrFolder (Level);
|
||||||
|
|
||||||
/* Put icons to remove, copy and paste */
|
/* Put icons to remove, copy and paste */
|
||||||
Brw_PutIconsRemoveCopyPaste (Level,PathInTree,FileName,FileNameToShow);
|
Brw_PutIconsRemoveCopyPaste (Level,PathInTree,FileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Indentation depending on level, icon, and file/folder name *****/
|
/***** Indentation depending on level, icon, and file/folder name *****/
|
||||||
|
@ -5708,7 +5708,7 @@ void Brw_SetFullPathInTree (const char PathInTreeUntilFileOrFolder[PATH_MAX + 1]
|
||||||
|
|
||||||
static void Brw_PutIconsRemoveCopyPaste (unsigned Level,
|
static void Brw_PutIconsRemoveCopyPaste (unsigned Level,
|
||||||
const char PathInTree[PATH_MAX + 1],
|
const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName,const char *FileNameToShow)
|
const char *FileName)
|
||||||
{
|
{
|
||||||
/***** Icon to remove folder, file or link *****/
|
/***** Icon to remove folder, file or link *****/
|
||||||
Brw_PutIconRemove (PathInTree,FileName);
|
Brw_PutIconRemove (PathInTree,FileName);
|
||||||
|
@ -5717,7 +5717,7 @@ static void Brw_PutIconsRemoveCopyPaste (unsigned Level,
|
||||||
Brw_PutIconCopy (PathInTree,FileName);
|
Brw_PutIconCopy (PathInTree,FileName);
|
||||||
|
|
||||||
/***** Icon to paste *****/
|
/***** Icon to paste *****/
|
||||||
Brw_PutIconPaste (Level,PathInTree,FileName,FileNameToShow);
|
Brw_PutIconPaste (Level,PathInTree,FileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5822,9 +5822,8 @@ static void Brw_PutIconCopy (const char PathInTree[PATH_MAX + 1],
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Brw_PutIconPaste (unsigned Level,const char PathInTree[PATH_MAX + 1],
|
static void Brw_PutIconPaste (unsigned Level,const char PathInTree[PATH_MAX + 1],
|
||||||
const char *FileName,const char *FileNameToShow)
|
const char *FileName)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Paste_in_X;
|
|
||||||
extern const char *Txt_Copy_not_allowed;
|
extern const char *Txt_Copy_not_allowed;
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BM%u\">",Gbl.RowEvenOdd);
|
fprintf (Gbl.F.Out,"<td class=\"BM%u\">",Gbl.RowEvenOdd);
|
||||||
|
@ -5835,15 +5834,10 @@ static void Brw_PutIconPaste (unsigned Level,const char PathInTree[PATH_MAX + 1]
|
||||||
if (Brw_CheckIfCanPasteIn (Level))
|
if (Brw_CheckIfCanPasteIn (Level))
|
||||||
{
|
{
|
||||||
/***** Form to paste the content of the clipboard *****/
|
/***** Form to paste the content of the clipboard *****/
|
||||||
Frm_StartForm (Brw_ActPaste[Gbl.FileBrowser.Type]);
|
Brw_PathInTree = PathInTree;
|
||||||
Brw_PutParamsFileBrowser (Brw_ActPaste[Gbl.FileBrowser.Type],
|
Brw_FileName = FileName;
|
||||||
PathInTree,FileName,
|
Ico_PutContextualIconToPaste (Brw_ActPaste[Gbl.FileBrowser.Type],
|
||||||
Brw_IS_FOLDER,-1L);
|
Brw_PutImplicitParamsFileBrowser);
|
||||||
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
|
||||||
Txt_Paste_in_X,
|
|
||||||
FileNameToShow);
|
|
||||||
Ico_PutIconLink ("paste.svg",Gbl.Title);
|
|
||||||
Frm_EndForm ();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* Icon to paste inactive */
|
/* Icon to paste inactive */
|
||||||
|
|
|
@ -297,6 +297,15 @@ void Ico_PutContextualIconToCopy (Act_Action_t NextAction,void (*FuncParams) (vo
|
||||||
Txt_Copy);
|
Txt_Copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Ico_PutContextualIconToPaste (Act_Action_t NextAction,void (*FuncParams) (void))
|
||||||
|
{
|
||||||
|
extern const char *Txt_Paste;
|
||||||
|
|
||||||
|
Lay_PutContextualLinkOnlyIcon (NextAction,NULL,FuncParams,
|
||||||
|
"paste.svg",
|
||||||
|
Txt_Paste);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/**************** Show an icon inside a div (without text) *******************/
|
/**************** Show an icon inside a div (without text) *******************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -66,6 +66,7 @@ void Ico_PutContextualIconToUnhide (Act_Action_t NextAction,const char *Anchor,v
|
||||||
void Ico_PutContextualIconToHide (Act_Action_t NextAction,const char *Anchor,void (*FuncParams) (void));
|
void Ico_PutContextualIconToHide (Act_Action_t NextAction,const char *Anchor,void (*FuncParams) (void));
|
||||||
void Ico_PutContextualIconToPrint (Act_Action_t NextAction,void (*FuncParams) (void));
|
void Ico_PutContextualIconToPrint (Act_Action_t NextAction,void (*FuncParams) (void));
|
||||||
void Ico_PutContextualIconToCopy (Act_Action_t NextAction,void (*FuncParams) (void));
|
void Ico_PutContextualIconToCopy (Act_Action_t NextAction,void (*FuncParams) (void));
|
||||||
|
void Ico_PutContextualIconToPaste (Act_Action_t NextAction,void (*FuncParams) (void));
|
||||||
|
|
||||||
void Ico_PutDivIcon (const char *DivClass,const char *Icon,const char *Title);
|
void Ico_PutDivIcon (const char *DivClass,const char *Icon,const char *Title);
|
||||||
void Ico_PutDivIconLink (const char *DivClass,const char *Icon,const char *Title);
|
void Ico_PutDivIconLink (const char *DivClass,const char *Icon,const char *Title);
|
||||||
|
|
21
swad_text.c
21
swad_text.c
|
@ -28385,27 +28385,6 @@ const char *Txt_Paste =
|
||||||
"Colar";
|
"Colar";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_Paste_in_X = // Warning: it is very important to include %s in the following sentences
|
|
||||||
#if L==1 // ca
|
|
||||||
"Pegar en %s"; // Necessita traduccio
|
|
||||||
#elif L==2 // de
|
|
||||||
"Einfügen an %s";
|
|
||||||
#elif L==3 // en
|
|
||||||
"Paste in %s";
|
|
||||||
#elif L==4 // es
|
|
||||||
"Pegar en %s";
|
|
||||||
#elif L==5 // fr
|
|
||||||
"Coller dans %s";
|
|
||||||
#elif L==6 // gn
|
|
||||||
"Pegar en %s"; // Okoteve traducción
|
|
||||||
#elif L==7 // it
|
|
||||||
"Incolla in %s";
|
|
||||||
#elif L==8 // pl
|
|
||||||
"Wklej w %s";
|
|
||||||
#elif L==9 // pt
|
|
||||||
"Colar em %s";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *Txt_PERCENT_of_users =
|
const char *Txt_PERCENT_of_users =
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"% de usuarios"; // Necessita traduccio
|
"% de usuarios"; // Necessita traduccio
|
||||||
|
|
Loading…
Reference in New Issue
Block a user