2019-02-12 14:46:14 +01:00
|
|
|
|
// swad_figure.h: figures (global stats)
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_FIG
|
|
|
|
|
#define _SWAD_FIG
|
|
|
|
|
/*
|
|
|
|
|
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
|
2019-02-12 14:46:14 +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 ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2021-02-11 22:57:09 +01:00
|
|
|
|
#include "swad_hierarchy_level.h"
|
2020-04-06 23:18:02 +02:00
|
|
|
|
|
2019-02-12 14:46:14 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/************************** Public types and constants ***********************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2020-04-22 03:15:04 +02:00
|
|
|
|
#define Fig_NUM_FIGURES 30
|
2019-02-12 14:46:14 +01:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
Fig_USERS, // Number of users
|
|
|
|
|
Fig_USERS_RANKING, // Users' ranking
|
2021-03-07 21:21:04 +01:00
|
|
|
|
Fig_HIERARCHY, // Number of countries, institutions, centers, degrees and courses
|
2019-02-12 14:46:14 +01:00
|
|
|
|
Fig_INSTITS, // Number of users in each institution
|
|
|
|
|
Fig_DEGREE_TYPES, // Number of degrees in each type of degree
|
|
|
|
|
Fig_FOLDERS_AND_FILES, // Number of folders and files
|
|
|
|
|
Fig_OER, // Number of OERs (Open Educational Resources)
|
2020-02-24 22:47:34 +01:00
|
|
|
|
Fig_COURSE_PROGRAMS, // Number of program items
|
2019-02-12 14:46:14 +01:00
|
|
|
|
Fig_ASSIGNMENTS, // Number of assignments
|
|
|
|
|
Fig_PROJECTS, // Number of projects
|
|
|
|
|
Fig_TESTS, // Number of test questions
|
2020-04-22 03:15:04 +02:00
|
|
|
|
Fig_EXAMS, // Number of exams
|
2019-02-12 14:46:14 +01:00
|
|
|
|
Fig_GAMES, // Number of games
|
|
|
|
|
Fig_SURVEYS, // Number of surveys
|
2019-03-12 21:25:55 +01:00
|
|
|
|
Fig_TIMELINE, // Number of timeline notes
|
2019-02-12 14:46:14 +01:00
|
|
|
|
Fig_FOLLOW, // Number of following and followers
|
|
|
|
|
Fig_FORUMS, // Number of forums, threads and posts
|
|
|
|
|
Fig_NOTIFY_EVENTS, // Number of users per notify event
|
|
|
|
|
Fig_NOTICES, // Number of notices
|
|
|
|
|
Fig_MESSAGES, // Number of users' (sent and received) messages
|
|
|
|
|
Fig_SOCIAL_NETWORKS, // Number of users in social networks
|
|
|
|
|
Fig_LANGUAGES, // Number of users per language
|
|
|
|
|
Fig_FIRST_DAY_OF_WEEK, // Number of users per first day of week
|
|
|
|
|
Fig_DATE_FORMAT, // Number of users per date format
|
|
|
|
|
Fig_ICON_SETS, // Number of users per icon set
|
|
|
|
|
Fig_MENUS, // Number of users per menu
|
|
|
|
|
Fig_THEMES, // Number of users per theme
|
|
|
|
|
Fig_SIDE_COLUMNS, // Number of users per layout of columns
|
|
|
|
|
Fig_PRIVACY, // Number of users per privacity
|
2019-03-17 18:20:55 +01:00
|
|
|
|
Fig_COOKIES, // Number of users per acceptation of cookies
|
2019-02-12 14:46:14 +01:00
|
|
|
|
} Fig_FigureType_t;
|
|
|
|
|
#define Fig_FIGURE_TYPE_DEF Fig_USERS
|
|
|
|
|
|
|
|
|
|
#define Fig_NUM_STAT_CRS_FILE_ZONES 12
|
|
|
|
|
|
2020-04-06 23:18:02 +02:00
|
|
|
|
struct Fig_Figures
|
|
|
|
|
{
|
2021-02-11 22:57:09 +01:00
|
|
|
|
Hie_Lvl_Level_t Scope;
|
2020-04-06 23:18:02 +02:00
|
|
|
|
Fig_FigureType_t FigureType;
|
|
|
|
|
};
|
|
|
|
|
|
2019-02-12 14:46:14 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
void Fig_ReqShowFigures (void);
|
2020-04-06 23:18:02 +02:00
|
|
|
|
void Fig_PutIconToShowFigure (Fig_FigureType_t FigureType);
|
|
|
|
|
void Fig_PutHiddenParamFigures (void *Figures);
|
2019-02-12 14:46:14 +01:00
|
|
|
|
void Fig_ShowFigures (void);
|
|
|
|
|
|
|
|
|
|
#endif
|