swad-core/swad_icon.h

118 lines
5.4 KiB
C
Raw Normal View History

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.
2021-02-09 12:43:45 +01:00
Copyright (C) 1999-2021 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/>.
*/
/*****************************************************************************/
/***************************** 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
#define Ico_NUM_COLORS 5
typedef enum
{
Ico_UNCHANGED = 0,
Ico_BLACK = 1,
Ico_GREEN = 2,
Ico_RED = 3,
Ico_WHITE = 4,
} Ico_Color_t;
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
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);
Ico_IconSet_t Ico_GetParamIconSet (void);
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,
2020-03-26 02:54:30 +01:00
void (*FuncParams) (void *Args),void *Args,
2019-01-10 15:26:33 +01:00
const char *Txt);
2020-10-13 22:34:31 +02:00
void Ico_PutContextualIconToRemove (Act_Action_t NextAction,const char *Anchor,
2020-03-26 02:54:30 +01:00
void (*FuncParams) (void *Args),void *Args);
2020-03-03 12:00:36 +01:00
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,const char *Anchor,
2020-03-26 02:54:30 +01:00
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToViewFiles (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToView (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToUnhide (Act_Action_t NextAction,const char *Anchor,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToConfigure (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToHide (Act_Action_t NextAction,const char *Anchor,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToPrint (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToCopy (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToPaste (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToCreateInFolder (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args,
bool Open);
void Ico_PutContextualIconToShowResults (Act_Action_t NextAction,const char *Anchor,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToShowAttendanceList (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
void Ico_PutContextualIconToZIP (Act_Action_t NextAction,
void (*FuncParams) (void *Args),void *Args);
2017-06-11 19:13:28 +02:00
void Ico_PutDivIcon (const char *DivClass,const char *Icon,Ico_Color_t Color,const char *Title);
void Ico_PutIconLink (const char *Icon,Ico_Color_t Color,const char *Title);
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);
2019-01-11 02:55:01 +01:00
void Ico_PutIconCut (void);
void Ico_PutIconPaste (void);
2020-02-19 00:45:26 +01:00
void Ico_PutIconNotVisible (void);
//-------------------------------- Figures ------------------------------------
void Ico_GetAndShowNumUsrsPerIconSet (void);
2014-12-01 23:55:08 +01:00
#endif