2017-06-11 19:13:28 +02:00
|
|
|
|
// swad_icon.h: icons
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_ICO
|
|
|
|
|
#define _SWAD_ICO
|
|
|
|
|
/*
|
|
|
|
|
SWAD (Shared Workspace At a Distance in Spanish),
|
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
2024-02-07 00:40:28 +01:00
|
|
|
|
Copyright (C) 1999-2024 Antonio Ca<EFBFBD>as Vargas
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2023-06-06 22:18:31 +02:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/********************************* Headers ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2024-04-07 00:14:45 +02:00
|
|
|
|
#include "swad_closed_open.h"
|
2023-06-06 22:18:31 +02:00
|
|
|
|
#include "swad_hidden_visible.h"
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public constants ******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#define Ico_NUM_ICON_SETS 2
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************* Public types ********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
Ico_ICON_SET_AWESOME = 0,
|
|
|
|
|
Ico_ICON_SET_NUVOLA = 1,
|
|
|
|
|
} Ico_IconSet_t;
|
|
|
|
|
#define Ico_ICON_SET_DEFAULT Ico_ICON_SET_AWESOME
|
|
|
|
|
|
2023-12-20 10:25:10 +01:00
|
|
|
|
#define Ico_NUM_COLORS 7
|
2021-12-22 00:20:06 +01:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2023-12-20 10:25:10 +01:00
|
|
|
|
Ico_UNCHANGED,
|
|
|
|
|
Ico_BLACK,
|
|
|
|
|
Ico_BLUE,
|
|
|
|
|
Ico_GREEN,
|
|
|
|
|
Ico_RED,
|
|
|
|
|
Ico_WHITE,
|
|
|
|
|
Ico_YELLOW,
|
2021-12-22 00:20:06 +01:00
|
|
|
|
} Ico_Color_t;
|
|
|
|
|
|
2023-06-06 22:18:31 +02:00
|
|
|
|
struct Ico_IconColor
|
|
|
|
|
{
|
|
|
|
|
const char *Icon;
|
|
|
|
|
Ico_Color_t Color;
|
|
|
|
|
};
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2022-04-20 22:56:58 +02:00
|
|
|
|
const char *Ico_GetPreffix (Ico_Color_t Color);
|
|
|
|
|
|
2019-01-09 01:41:54 +01:00
|
|
|
|
const char *Ico_GetIcon (const char *IconWithoutExtension);
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
void Ico_PutIconsToSelectIconSet (void);
|
|
|
|
|
void Ico_ChangeIconSet (void);
|
2023-03-10 00:13:55 +01:00
|
|
|
|
Ico_IconSet_t Ico_GetParIconSet (void);
|
2014-12-01 23:55:08 +01:00
|
|
|
|
Ico_IconSet_t Ico_GetIconSetFromStr (const char *Str);
|
|
|
|
|
|
2019-01-10 15:26:33 +01:00
|
|
|
|
void Ico_PutContextualIconToAdd (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-10-13 22:34:31 +02:00
|
|
|
|
void Ico_PutContextualIconToRemove (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2023-03-29 09:30:58 +02:00
|
|
|
|
void Ico_PutContextualIconToReset (Act_Action_t NextAction,const char *Anchor,
|
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2023-03-29 10:33:31 +02:00
|
|
|
|
void Ico_PutContextualIconToUpdate (Act_Action_t NextAction,const char *Anchor,
|
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-03 12:00:36 +01:00
|
|
|
|
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToViewFiles (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2022-07-19 14:08:49 +02:00
|
|
|
|
void Ico_PutContextualIconToView (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2023-12-07 00:07:44 +01:00
|
|
|
|
void Ico_PutContextualIconToConfigure (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2024-03-20 09:39:04 +01:00
|
|
|
|
void Ico_PutContextualIconToHideUnhide (Act_Action_t NextAction[HidVis_NUM_HIDDEN_VISIBLE],
|
2023-06-06 15:16:57 +02:00
|
|
|
|
const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args,
|
2023-06-06 22:18:31 +02:00
|
|
|
|
HidVis_HiddenOrVisible_t HiddenOrVisible);
|
2024-03-20 09:39:04 +01:00
|
|
|
|
void Ico_PutContextualIconToExpand (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2024-03-20 09:39:04 +01:00
|
|
|
|
void Ico_PutContextualIconToContract (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToPrint (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2022-09-12 23:51:59 +02:00
|
|
|
|
void Ico_PutContextualIconToGetLink (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToCopy (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2023-03-29 00:11:55 +02:00
|
|
|
|
void Ico_PutContextualIconToViewClipboard (Act_Action_t NextAction,const char *Anchor,
|
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToPaste (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToCreateInFolder (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args,
|
2024-04-13 21:33:16 +02:00
|
|
|
|
CloOpe_ClosedOrOpen_t ClosedOrOpen);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToShowResults (Act_Action_t NextAction,const char *Anchor,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToShowAttendanceList (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2020-03-26 02:54:30 +01:00
|
|
|
|
void Ico_PutContextualIconToZIP (Act_Action_t NextAction,
|
2023-03-10 00:13:55 +01:00
|
|
|
|
void (*FuncPars) (void *Args),void *Args);
|
2017-06-11 19:13:28 +02:00
|
|
|
|
|
2022-04-27 13:56:32 +02:00
|
|
|
|
void Ico_PutDivIcon (const char *DivClass,
|
|
|
|
|
const char *Icon,Ico_Color_t Color,const char *Title);
|
2022-06-30 13:39:57 +02:00
|
|
|
|
void Ico_PutIconLink (const char *Icon,Ico_Color_t Color,Act_Action_t NextAction);
|
2023-03-29 10:33:31 +02:00
|
|
|
|
void Ico_PutIconTextUpdate (const char *Text);
|
2021-12-22 00:20:06 +01:00
|
|
|
|
void Ico_PutIconTextLink (const char *Icon,Ico_Color_t Color,const char *Text);
|
|
|
|
|
void Ico_PutSettingIconLink (const char *Icon,Ico_Color_t Color,const char *Title);
|
|
|
|
|
void Ico_PutIconOn (const char *Icon,Ico_Color_t Color,const char *Title);
|
|
|
|
|
void Ico_PutIconOff (const char *Icon,Ico_Color_t Color,const char *Title);
|
|
|
|
|
void Ico_PutIcon (const char *Icon,Ico_Color_t Color,const char *Title,const char *Class);
|
2017-06-11 19:13:28 +02:00
|
|
|
|
|
|
|
|
|
void Ico_PutIconRemovalNotAllowed (void);
|
|
|
|
|
|
2022-06-30 00:44:52 +02:00
|
|
|
|
void Ico_PutIconCut (Act_Action_t NextAction);
|
|
|
|
|
void Ico_PutIconPaste (Act_Action_t NextAction);
|
2019-01-11 02:55:01 +01:00
|
|
|
|
|
2020-02-19 00:45:26 +01:00
|
|
|
|
void Ico_PutIconNotVisible (void);
|
|
|
|
|
|
2022-01-03 02:47:16 +01:00
|
|
|
|
//-------------------------------- Figures ------------------------------------
|
|
|
|
|
void Ico_GetAndShowNumUsrsPerIconSet (void);
|
|
|
|
|
|
2014-12-01 23:55:08 +01:00
|
|
|
|
#endif
|