Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAE2.01 - Developpement application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIQUEREZ Corentin
SAE2.01 - Developpement application
Commits
e9b54f81
Commit
e9b54f81
authored
1 year ago
by
PIQUEREZ Corentin
Browse files
Options
Downloads
Patches
Plain Diff
double click salles et cours plus lisble
parent
bdf5dbe2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
shukan/ShukanData.java
+9
-0
9 additions, 0 deletions
shukan/ShukanData.java
shukan/ShukanModule.java
+17
-0
17 additions, 0 deletions
shukan/ShukanModule.java
shukan/ShukanView.java
+5
-2
5 additions, 2 deletions
shukan/ShukanView.java
with
31 additions
and
2 deletions
shukan/ShukanData.java
+
9
−
0
View file @
e9b54f81
...
@@ -704,9 +704,18 @@ public class ShukanData
...
@@ -704,9 +704,18 @@ public class ShukanData
public
String
activityName
(
int
number
){
public
String
activityName
(
int
number
){
return
mod
[
selCur
][
selectedModule
()].
activityName
(
number
);
return
mod
[
selCur
][
selectedModule
()].
activityName
(
number
);
}
}
/** convert a number of activity into a String */
public
String
activityMainName
(
int
number
){
return
mod
[
selCur
][
selectedModule
()].
activityMainName
(
number
);
}
/** returns the duration of an activity */
/** returns the duration of an activity */
public
int
activityDuration
(
int
number
){
public
int
activityDuration
(
int
number
){
return
mod
[
selCur
][
selectedModule
()].
activityDuration
(
number
);
return
mod
[
selCur
][
selectedModule
()].
activityDuration
(
number
);
}
}
/** returns the room of an activity */
public
String
activityRoom
(
int
number
){
return
mod
[
selCur
][
selectedModule
()].
activityRoom
(
number
);
}
}
}
This diff is collapsed.
Click to expand it.
shukan/ShukanModule.java
+
17
−
0
View file @
e9b54f81
...
@@ -57,6 +57,14 @@ public class ShukanModule
...
@@ -57,6 +57,14 @@ public class ShukanModule
public
final
static
int
ACT_SP
=
11
;
// TP de SAE en salle ordi
public
final
static
int
ACT_SP
=
11
;
// TP de SAE en salle ordi
/** Specific activity : SAe practical work in standard room */
/** Specific activity : SAe practical work in standard room */
public
final
static
int
ACT_SQ
=
12
;
// TQ de SAE en salle de cours
public
final
static
int
ACT_SQ
=
12
;
// TQ de SAE en salle de cours
/** Activity main types */
private
final
static
String
[]
MAIN_TYPES
=
{
"CM"
,
"EVAL"
,
"EVAL"
,
"TD"
,
"TD"
,
"TD en //"
,
"TD SAE"
,
"TD SAE"
,
"TP"
,
"TP"
,
"TP"
,
"TP SAE"
,
"TP SAE"
};
/** Activity rooms */
private
final
static
String
[]
ROOMS
=
{
"Amphi/Cours"
,
"Amphi/Cours"
,
"Amphi/Cours"
,
"Cours"
,
"Machine"
,
"Cours"
,
"Cours"
,
"Machine"
,
"Machine"
,
"Machine"
,
"Cours"
,
"Machine"
,
"Cours"
};
/** Activity types */
/** Activity types */
public
final
static
String
[]
TYPES
=
{
"CM"
,
"EV2"
,
"EV1"
,
public
final
static
String
[]
TYPES
=
{
"CM"
,
"EV2"
,
"EV1"
,
"TD"
,
"TM"
,
"TV"
,
"SD"
,
"SM"
,
"TD"
,
"TM"
,
"TV"
,
"SD"
,
"SM"
,
...
@@ -542,9 +550,18 @@ public class ShukanModule
...
@@ -542,9 +550,18 @@ public class ShukanModule
public
String
activityName
(
int
number
){
public
String
activityName
(
int
number
){
return
TYPES
[
number
];
return
TYPES
[
number
];
}
}
/** convert a number of activity into a String */
public
String
activityMainName
(
int
number
){
return
MAIN_TYPES
[
number
];
}
/** returns the duration of an activity */
/** returns the duration of an activity */
public
int
activityDuration
(
int
number
){
public
int
activityDuration
(
int
number
){
return
SLOAD
[
number
];
return
SLOAD
[
number
];
}
}
/** returns the room of an activity */
public
String
activityRoom
(
int
number
){
return
ROOMS
[
number
];
}
}
}
This diff is collapsed.
Click to expand it.
shukan/ShukanView.java
+
5
−
2
View file @
e9b54f81
...
@@ -430,6 +430,7 @@ public class ShukanView extends JPanel
...
@@ -430,6 +430,7 @@ public class ShukanView extends JPanel
JLabel
[]
noms_cours
=
new
JLabel
[
nb_cours
];
JLabel
[]
noms_cours
=
new
JLabel
[
nb_cours
];
JLabel
[]
duree
=
new
JLabel
[
nb_cours
];
JLabel
[]
duree
=
new
JLabel
[
nb_cours
];
JLabel
[]
profs
=
new
JLabel
[
nb_cours
];
JLabel
[]
profs
=
new
JLabel
[
nb_cours
];
JLabel
[]
salles
=
new
JLabel
[
nb_cours
];
String
nom_profs
;
String
nom_profs
;
for
(
int
i
=
0
;
i
<
nb_cours
;
i
++)
for
(
int
i
=
0
;
i
<
nb_cours
;
i
++)
{
{
...
@@ -446,17 +447,19 @@ public class ShukanView extends JPanel
...
@@ -446,17 +447,19 @@ public class ShukanView extends JPanel
}
}
else
nom_profs
=
data
.
subtitle
(
num_module
);
else
nom_profs
=
data
.
subtitle
(
num_module
);
noms_cours
[
i
]
=
new
JLabel
(
"Cours : "
+
data
.
activityName
(
activities
[
week_activities
[
i
]]));
noms_cours
[
i
]
=
new
JLabel
(
"Cours : "
+
data
.
activity
Main
Name
(
activities
[
week_activities
[
i
]]));
noms_cours
[
i
].
setFont
(
new
Font
(
noms_cours
[
i
].
getFont
().
getFamily
(),
noms_cours
[
i
].
getFont
().
getStyle
()+
Font
.
BOLD
,
noms_cours
[
i
].
getFont
().
getSize
()+
10
));
noms_cours
[
i
].
setFont
(
new
Font
(
noms_cours
[
i
].
getFont
().
getFamily
(),
noms_cours
[
i
].
getFont
().
getStyle
()+
Font
.
BOLD
,
noms_cours
[
i
].
getFont
().
getSize
()+
10
));
duree
[
i
]
=
new
JLabel
(
" Durée : "
+
data
.
activityDuration
(
activities
[
week_activities
[
i
]])+
"h"
);
duree
[
i
]
=
new
JLabel
(
" Durée : "
+
data
.
activityDuration
(
activities
[
week_activities
[
i
]])+
"h"
);
profs
[
i
]
=
new
JLabel
(
" Professeur : "
+
nom_profs
);
profs
[
i
]
=
new
JLabel
(
" Professeur : "
+
nom_profs
);
salles
[
i
]
=
new
JLabel
(
" Salle : "
+
data
.
activityRoom
(
activities
[
week_activities
[
i
]]));
cours
.
add
(
noms_cours
[
i
]);
cours
.
add
(
noms_cours
[
i
]);
cours
.
add
(
duree
[
i
]);
cours
.
add
(
duree
[
i
]);
cours
.
add
(
profs
[
i
]);
cours
.
add
(
profs
[
i
]);
cours
.
add
(
salles
[
i
]);
}
}
spec
.
add
(
cours
);
spec
.
add
(
cours
);
spec
.
setSize
(
new
Dimension
(
3
0
0
,
100
*
nb_cours
));
spec
.
setSize
(
new
Dimension
(
3
5
0
,
100
*
nb_cours
));
spec
.
setVisible
(
true
);
spec
.
setVisible
(
true
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment