swad-core/swad_icon.h

94 lines
4.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.
2020-01-01 14:53:57 +01:00
Copyright (C) 1999-2020 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/>.
*/
/*****************************************************************************/
/********************************* Headers ***********************************/
/*****************************************************************************/
/*****************************************************************************/
/***************************** 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
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
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,
2019-04-11 14:45:31 +02:00
void (*FuncParams) (void),
2019-01-10 15:26:33 +01:00
const char *Txt);
2019-04-11 14:45:31 +02:00
void Ico_PutContextualIconToRemove (Act_Action_t NextAction,void (*FuncParams) (void));
void Ico_PutContextualIconToEdit (Act_Action_t NextAction,void (*FuncParams) (void));
void Ico_PutContextualIconToViewFiles (Act_Action_t NextAction,void (*FuncParams) (void));
void Ico_PutContextualIconToView (Act_Action_t NextAction,void (*FuncParams) (void));
void Ico_PutContextualIconToUnhide (Act_Action_t NextAction,const char *Anchor,void (*FuncParams) (void));
2019-10-25 01:36:42 +02:00
void Ico_PutContextualIconToConfigure (Act_Action_t NextAction,void (*FuncParams) (void));
2019-04-11 14:45:31 +02:00
void Ico_PutContextualIconToHide (Act_Action_t NextAction,const char *Anchor,void (*FuncParams) (void));
void Ico_PutContextualIconToPrint (Act_Action_t NextAction,void (*FuncParams) (void));
2019-04-21 23:27:04 +02:00
void Ico_PutContextualIconToCopy (Act_Action_t NextAction,void (*FuncParams) (void));
2019-04-21 23:53:21 +02:00
void Ico_PutContextualIconToPaste (Act_Action_t NextAction,void (*FuncParams) (void));
2019-04-22 01:06:48 +02:00
void Ico_PutContextualIconToCreateInFolder (Act_Action_t NextAction,void (*FuncParams) (void),bool Open);
2019-12-08 14:14:29 +01:00
void Ico_PutContextualIconToShowResults (Act_Action_t NextAction,const char *Anchor,void (*FuncParams) (void));
2019-12-06 22:49:45 +01:00
void Ico_PutContextualIconToShowAttendanceList (Act_Action_t NextAction,void (*FuncParams) (void));
2019-04-22 14:50:31 +02:00
void Ico_PutContextualIconToZIP (Act_Action_t NextAction,void (*FuncParams) (void));
2017-06-11 19:13:28 +02:00
2019-01-12 03:00:59 +01:00
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_PutIconLink (const char *Icon,const char *Title);
2019-01-12 19:46:33 +01:00
void Ico_PutIconTextLink (const char *Icon,const char *Text);
2019-03-26 11:53:21 +01:00
void Ico_PutSettingIconLink (const char *Icon,const char *Title);
2019-01-12 19:46:33 +01:00
void Ico_PutIconOff (const char *Icon,const char *Title);
2019-10-29 09:01:05 +01:00
void Ico_PutIcon (const char *Icon,const char *Title,const char *Class);
2017-06-11 19:13:28 +02:00
2019-01-12 19:46:33 +01:00
void Ico_PutCalculateIcon (const char *Title);
void Ico_PutCalculateIconWithText (const char *Text);
2017-06-11 19:13:28 +02:00
void Ico_PutIconRemovalNotAllowed (void);
void Ico_PutIconRemove (void);
2019-01-11 02:55:01 +01:00
void Ico_PutIconCut (void);
void Ico_PutIconPaste (void);
2014-12-01 23:55:08 +01:00
#endif