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
b0eba9b4
Commit
b0eba9b4
authored
1 year ago
by
CHEVALIER Noemy
Browse files
Options
Downloads
Patches
Plain Diff
Ajout des semestres
parent
c0f1e326
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shukan/ShukanController.java
+22
-23
22 additions, 23 deletions
shukan/ShukanController.java
with
22 additions
and
23 deletions
shukan/ShukanController.java
+
22
−
23
View file @
b0eba9b4
...
...
@@ -80,23 +80,6 @@ public class ShukanController
data
.
toggleLoad
(
1
);
canvas
.
repaint
();
}
break
;
case
KeyEvent
.
VK_UP
:
case
KeyEvent
.
VK_KP_UP
:
if
(
pressed
)
{
data
.
toggleCursus
(
false
);
canvas
.
repaint
();
}
break
;
case
KeyEvent
.
VK_DOWN
:
case
KeyEvent
.
VK_KP_DOWN
:
if
(
pressed
)
{
data
.
toggleCursus
(
true
);
canvas
.
repaint
();
}
break
;
case
KeyEvent
.
VK_X
:
if
(
pressed
&&
e
.
isControlDown
())
{
...
...
@@ -107,6 +90,8 @@ public class ShukanController
}
}
/** Invoked when a key has been typed.
* Implementation from KeyListener.
* @param e detected key event.
...
...
@@ -222,18 +207,32 @@ public class ShukanController
System
.
out
.
println
(
"plus"
);
else
if
(
e
.
getSource
()==
bar
.
buttons
[
3
])
System
.
out
.
println
(
"delete"
);
else
if
(
e
.
getSource
()==
bar
.
buttons
[
4
])
{
if
(
data
.
followLeft
())
canvas
.
repaint
();
}
else
if
(
e
.
getSource
()==
bar
.
buttons
[
5
])
{
if
(
data
.
followRight
())
canvas
.
repaint
();
}
else
if
(
e
.
getSource
()==
bar
.
buttons
[
6
])
new
ShukanTex
(
data
);
else
if
(
e
.
getSource
()==
bar
.
buttons
[
7
]){
else
if
(
e
.
getSource
()==
bar
.
buttons
[
4
])
System
.
out
.
println
(
"left"
);
//if (data.followLeft ()) canvas.repaint ();
else
if
(
e
.
getSource
()==
bar
.
buttons
[
5
])
System
.
out
.
println
(
"right"
);
else
if
(
e
.
getSource
()==
bar
.
buttons
[
6
])
{
data
.
toggleCursus
(
false
);
canvas
.
repaint
();
}
else
if
(
e
.
getSource
()
==
bar
.
buttons
[
7
])
{
data
.
toggleCursus
(
true
);
canvas
.
repaint
();
}
//if (data.followRight ()) canvas.repaint ();
else
if
(
e
.
getSource
()==
bar
.
buttons
[
8
])
new
ShukanTex
(
data
);
else
if
(
e
.
getSource
()==
bar
.
buttons
[
9
]){
EventQueue
.
invokeLater
(()
->
{
ShukanParameters
myParameters
=
new
ShukanParameters
(
"Changer de thème"
,
canvas
);
myParameters
.
setSize
(
300
,
300
);
myParameters
.
setVisible
(
true
);
});
}
canvas
.
requestFocusInWindow
();
}
}
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