Version 22.44: Oct 12, 2022 Code refactoring in projects.

This commit is contained in:
acanas 2022-10-12 14:25:35 +02:00
parent 32bbdd9031
commit 9b957d71d8
3 changed files with 341 additions and 343 deletions

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 22.43.2 (2022-10-12)"
#define Log_PLATFORM_VERSION "SWAD 22.44 (2022-10-12)"
#define CSS_FILE "swad22.40.css"
#define JS_FILE "swad21.100.js"
/*
Version 22.44: Oct 12, 2022 Code refactoring in projects. (332980 lines)
Version 22.43.2: Oct 12, 2022 Code refactoring in projects. (332984 lines)
Version 22.43.1: Oct 12, 2022 Code refactoring in projects. (332952 lines)
Version 22.43: Oct 11, 2022 Review of projects (not finished). (332930 lines)

File diff suppressed because it is too large Load Diff

View File

@ -146,6 +146,15 @@ typedef enum
Prj_ROLE_EVL = 3, // Evaluator
} Prj_RoleInProject_t;
/***** Type of view when writing one project *****/
typedef enum
{
Prj_LIST_PROJECTS,
Prj_FILE_BROWSER_PROJECT,
Prj_PRINT_ONE_PROJECT,
Prj_EDIT_ONE_PROJECT,
} Prj_ProjectView_t;
/***** Struct to store a project *****/
struct Prj_Project
{
@ -172,6 +181,7 @@ struct Prj_Project
/***** Struct to store context/status of projects *****/
struct Prj_Projects
{
Prj_ProjectView_t View;
struct
{
bool Editable;