2016-03-20 16:30:52 +01:00
|
|
|
|
// swad_degree_type.h: degree types
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_DT
|
|
|
|
|
#define _SWAD_DT
|
|
|
|
|
/*
|
|
|
|
|
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.
|
2019-01-07 21:52:19 +01:00
|
|
|
|
Copyright (C) 1999-2019 Antonio Ca<EFBFBD>as Vargas
|
2016-03-20 16:30:52 +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 ***********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2017-03-24 13:22:54 +01:00
|
|
|
|
#include "swad_scope.h"
|
|
|
|
|
|
2016-03-20 16:30:52 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public constants ******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2017-03-08 14:12:33 +01:00
|
|
|
|
#define Deg_MAX_CHARS_DEGREE_TYPE_NAME (32 - 1) // 31
|
|
|
|
|
#define Deg_MAX_BYTES_DEGREE_TYPE_NAME ((Deg_MAX_CHARS_DEGREE_TYPE_NAME + 1) * Str_MAX_BYTES_PER_CHAR - 1) // 511
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************* Public types ********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
struct DegreeType
|
|
|
|
|
{
|
2017-03-07 11:03:05 +01:00
|
|
|
|
long DegTypCod; // Degree type code
|
|
|
|
|
char DegTypName[Deg_MAX_BYTES_DEGREE_TYPE_NAME + 1]; // Degree type name
|
|
|
|
|
unsigned NumDegs; // Number of degrees of this type
|
2016-03-20 16:30:52 +01:00
|
|
|
|
};
|
|
|
|
|
|
2017-03-24 01:09:27 +01:00
|
|
|
|
#define DT_NUM_ORDERS 2
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
DT_ORDER_BY_DEGREE_TYPE = 0,
|
|
|
|
|
DT_ORDER_BY_NUM_DEGREES = 1,
|
|
|
|
|
} DT_Order_t;
|
|
|
|
|
|
2016-03-20 16:30:52 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/***************************** Public prototypes *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2016-03-20 22:31:57 +01:00
|
|
|
|
void DT_WriteSelectorDegreeTypes (void);
|
2017-03-24 12:23:42 +01:00
|
|
|
|
|
2017-03-26 17:32:19 +02:00
|
|
|
|
void DT_SeeDegreeTypesInDegTab (void);
|
2017-03-24 12:23:42 +01:00
|
|
|
|
void DT_SeeDegreeTypesInStaTab (void);
|
2017-04-30 14:03:45 +02:00
|
|
|
|
void DT_EditDegreeTypes (void);
|
2018-11-15 12:52:56 +01:00
|
|
|
|
|
|
|
|
|
void DT_PutIconToViewDegreeTypes (void);
|
|
|
|
|
|
2017-04-30 14:03:45 +02:00
|
|
|
|
bool DT_CheckIfICanCreateDegreeTypes (void);
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
2019-04-03 20:57:04 +02:00
|
|
|
|
void DT_GetListDegreeTypes (Hie_Level_t Scope,DT_Order_t Order);
|
2016-03-20 22:31:57 +01:00
|
|
|
|
void DT_FreeListDegreeTypes (void);
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
2016-03-20 22:31:57 +01:00
|
|
|
|
void DT_RecFormNewDegreeType (void);
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
2016-03-20 22:31:57 +01:00
|
|
|
|
void DT_RemoveDegreeType (void);
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
2017-05-31 21:05:59 +02:00
|
|
|
|
long DT_GetAndCheckParamOtherDegTypCod (long MinCodAllowed);
|
2016-03-20 22:31:57 +01:00
|
|
|
|
|
|
|
|
|
bool DT_GetDataOfDegreeTypeByCod (struct DegreeType *DegTyp);
|
|
|
|
|
void DT_RenameDegreeType (void);
|
2016-03-20 16:30:52 +01:00
|
|
|
|
|
2019-04-08 13:06:17 +02:00
|
|
|
|
void DT_ContEditAfterChgDegTyp (void);
|
|
|
|
|
|
2016-03-20 16:30:52 +01:00
|
|
|
|
#endif
|