2015-01-04 14:43:03 +01:00
|
|
|
|
// swad_calendar.h: Draw month and calendar
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_CAL
|
|
|
|
|
#define _SWAD_CAL
|
|
|
|
|
/*
|
|
|
|
|
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.
|
2017-01-13 01:51:23 +01:00
|
|
|
|
Copyright (C) 1999-2017 Antonio Ca<EFBFBD>as Vargas
|
2015-01-04 14:43:03 +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 ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2015-12-01 00:38:22 +01:00
|
|
|
|
#include "swad_action.h"
|
|
|
|
|
|
2015-01-04 14:43:03 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public constants ******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2015-11-21 20:23:28 +01:00
|
|
|
|
#define Cal_FIRST_DAY_OF_WEEK_DEFAULT 0 // Monday
|
|
|
|
|
|
2015-01-04 14:43:03 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************* Public types ********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2015-11-21 20:23:28 +01:00
|
|
|
|
void Cal_PutIconsToSelectFirstDayOfWeek (void);
|
2016-12-04 12:42:45 +01:00
|
|
|
|
void Cal_ShowFormToSelFirstDayOfWeek (Act_Action_t Action,void (*FuncParams) (),
|
|
|
|
|
const char *ClassIcon);
|
2015-11-21 20:23:28 +01:00
|
|
|
|
void Cal_ChangeFirstDayOfWeek (void);
|
2017-05-04 11:03:44 +02:00
|
|
|
|
unsigned Cal_GetFirstDayOfWeekFromStr (const char *Str);
|
2015-11-21 20:23:28 +01:00
|
|
|
|
|
2015-01-04 14:43:03 +01:00
|
|
|
|
void Cal_DrawCurrentMonth (void);
|
2017-02-09 14:32:19 +01:00
|
|
|
|
Act_Action_t Cal_GetActionToSeeCalendar ();
|
2017-02-09 03:09:24 +01:00
|
|
|
|
|
|
|
|
|
void Cal_DrawCalendarSys (void);
|
|
|
|
|
void Cal_DrawCalendarCty (void);
|
|
|
|
|
void Cal_DrawCalendarIns (void);
|
|
|
|
|
void Cal_DrawCalendarCtr (void);
|
|
|
|
|
void Cal_DrawCalendarDeg (void);
|
|
|
|
|
void Cal_DrawCalendarCrs (void);
|
|
|
|
|
void Cal_PrintCalendar (void);
|
2015-01-04 14:43:03 +01:00
|
|
|
|
|
|
|
|
|
#endif
|