Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SmartTime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
SmartTime
Commits
15d329a5
Commit
15d329a5
authored
May 26, 2017
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
#8
- make resizeable
parent
e5497838
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/userInterface/Main.java
+4
-1
4 additions, 1 deletion
src/userInterface/Main.java
src/userInterface/UserInterfaceController.java
+4
-0
4 additions, 0 deletions
src/userInterface/UserInterfaceController.java
src/userInterface/userInterface.fxml
+59
-36
59 additions, 36 deletions
src/userInterface/userInterface.fxml
with
67 additions
and
37 deletions
src/userInterface/Main.java
+
4
−
1
View file @
15d329a5
...
@@ -31,7 +31,10 @@ public class Main extends Application
...
@@ -31,7 +31,10 @@ public class Main extends Application
Scene
scene
=
new
Scene
(
root
,
800
,
800
);
Scene
scene
=
new
Scene
(
root
,
800
,
800
);
stage
.
setResizable
(
false
);
stage
.
setMinHeight
(
500
);
stage
.
setMinWidth
(
700
);
stage
.
setResizable
(
true
);
stage
.
setTitle
(
"SmartTime"
);
stage
.
setTitle
(
"SmartTime"
);
stage
.
setScene
(
scene
);
stage
.
setScene
(
scene
);
...
...
This diff is collapsed.
Click to expand it.
src/userInterface/UserInterfaceController.java
+
4
−
0
View file @
15d329a5
...
@@ -75,6 +75,7 @@ public class UserInterfaceController
...
@@ -75,6 +75,7 @@ public class UserInterfaceController
@FXML
private
ToggleButton
startButton
;
@FXML
private
ToggleButton
startButton
;
@FXML
private
TableView
<
LogObject
>
table
;
@FXML
private
TableView
<
LogObject
>
table
;
@FXML
private
ScrollPane
scrollPane
;
@FXML
private
ScrollPane
scrollPane
;
@FXML
private
Label
labelSeparator
;
private
Stage
stage
;
private
Stage
stage
;
private
core
.
Counter
stoppUhr
;
private
core
.
Counter
stoppUhr
;
...
@@ -97,6 +98,9 @@ public class UserInterfaceController
...
@@ -97,6 +98,9 @@ public class UserInterfaceController
{
{
this
.
stage
=
stage
;
this
.
stage
=
stage
;
labelSeparator
.
setStyle
(
"-fx-background-color: #cdc6c6; -fx-font-size: 0.7"
);
// labelSeparator.setMaxHeight(1.5);
PathUtils
.
checkFolder
(
new
File
(
new
File
(
savePath
).
getParent
()));
PathUtils
.
checkFolder
(
new
File
(
new
File
(
savePath
).
getParent
()));
icon
=
new
Image
(
"/userInterface/icon.png"
);
icon
=
new
Image
(
"/userInterface/icon.png"
);
...
...
This diff is collapsed.
Click to expand it.
src/userInterface/userInterface.fxml
+
59
−
36
View file @
15d329a5
...
@@ -12,14 +12,13 @@
...
@@ -12,14 +12,13 @@
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.
Pane
?>
<?import javafx.scene.layout.
HBox
?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Font?>
<AnchorPane
prefHeight=
"800.0"
prefWidth=
"800.0"
xmlns=
"http://javafx.com/javafx/8.0.6
5
"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"userInterface.UserInterfaceController"
>
<AnchorPane
prefHeight=
"800.0"
prefWidth=
"800.0"
xmlns=
"http://javafx.com/javafx/8.0.6
0
"
xmlns:fx=
"http://javafx.com/fxml/1"
fx:controller=
"userInterface.UserInterfaceController"
>
<children>
<children>
<VBox
layoutX=
"143.0"
layoutY=
"69.0"
prefHeight=
"800.0"
prefWidth=
"650.0"
AnchorPane.bottomAnchor=
"0.0"
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
AnchorPane.topAnchor=
"0.0"
>
<VBox
alignment=
"TOP_CENTER"
layoutX=
"143.0"
layoutY=
"69.0"
prefHeight=
"800.0"
prefWidth=
"650.0"
AnchorPane.bottomAnchor=
"0.0"
AnchorPane.leftAnchor=
"0.0"
AnchorPane.rightAnchor=
"0.0"
AnchorPane.topAnchor=
"0.0"
>
<children>
<children>
<MenuBar>
<MenuBar>
<menus>
<menus>
...
@@ -48,60 +47,84 @@
...
@@ -48,60 +47,84 @@
</Menu>
</Menu>
</menus>
</menus>
</MenuBar>
</MenuBar>
<
Pane
prefHeight=
"121.0"
prefWidth=
"65
0.0"
>
<
HBox
alignment=
"CENTER"
spacing=
"3
0.0"
>
<children>
<children>
<Label
layoutX=
"48.0"
layoutY=
"25.0"
text=
"aktuelles Projekt:"
>
<VBox
spacing=
"30.0"
HBox.hgrow=
"ALWAYS"
>
<children>
<HBox
spacing=
"30.0"
>
<children>
<Label
text=
"aktuelles Projekt:"
>
<font>
<font>
<Font
name=
"System Bold"
size=
"18.0"
/>
<Font
name=
"System Bold"
size=
"18.0"
/>
</font>
</font>
</Label>
</Label>
<Label
layoutX=
"48.0"
layoutY=
"73.0"
text=
"aktuelle Aufgabe:
"
>
<Label
fx:id=
"aktuellesProjektAusgabe"
maxWidth=
"1.7976931348623157E308"
text=
" "
HBox.hgrow=
"ALWAYS
"
>
<font>
<font>
<Font
name=
"System Bold"
size=
"18.0"
/>
<Font
size=
"18.0"
/>
</font>
</font>
</Label>
</Label>
<Button
layoutX=
"613.0"
layoutY=
"67.0"
mnemonicParsing=
"false"
onAction=
"#openProjectGUI"
prefHeight=
"39.0"
prefWidth=
"107.0"
text=
"Ändern"
>
</children>
</HBox>
<HBox
spacing=
"30.0"
>
<children>
<Label
text=
"aktuelle Aufgabe:"
>
<font>
<font>
<Font
size=
"1
6
.0"
/>
<Font
name=
"System Bold"
size=
"1
8
.0"
/>
</font>
</font>
</Button
>
</Label
>
<Label
fx:id=
"aktuelle
sProjekt
Ausgabe"
layoutX=
"239.0"
layoutY=
"25.0"
text=
"
"
>
<Label
fx:id=
"aktuelle
rTask
Ausgabe"
maxWidth=
"1.7976931348623157E308"
text=
" "
HBox.hgrow=
"ALWAYS
"
>
<font>
<font>
<Font
size=
"18.0"
/>
<Font
size=
"18.0"
/>
</font>
</font>
</Label>
</Label>
<Label
fx:id=
"aktuellerTaskAusgabe"
layoutX=
"239.0"
layoutY=
"73.0"
text=
" "
>
</children>
</HBox>
</children>
</VBox>
<Button
minHeight=
"40.0"
mnemonicParsing=
"false"
onAction=
"#openProjectGUI"
prefHeight=
"40.0"
prefWidth=
"107.0"
text=
"Ändern"
>
<font>
<font>
<Font
size=
"1
8
.0"
/>
<Font
size=
"1
6
.0"
/>
</font>
</font>
</
Label
>
</
Button
>
</children>
</children>
</Pane>
<Line
endX=
"790.0"
fill=
"BLACK"
stroke=
"#cdc6c6"
strokeWidth=
"1.5"
translateX=
"5.0"
>
<VBox.margin>
<VBox.margin>
<Insets
top=
"
1
0.0"
/>
<Insets
bottom=
"30.0"
left=
"30.0"
right=
"30.0"
top=
"
3
0.0"
/>
</VBox.margin>
</VBox.margin>
</Line>
</HBox>
<Pane
prefHeight=
"100.0"
prefWidth=
"652.0"
>
<HBox>
<children>
<Label
fx:id=
"labelSeparator"
maxWidth=
"1.7976931348623157E308"
HBox.hgrow=
"ALWAYS"
/>
</children>
<padding>
<Insets
left=
"10.0"
right=
"10.0"
/>
</padding>
</HBox>
<HBox
alignment=
"CENTER"
spacing=
"50.0"
>
<children>
<children>
<ToggleButton
fx:id=
"startButton"
layoutX=
"49.0"
layoutY=
"23
.0"
mnemonicParsing=
"false"
prefHeight=
"4
9
.0"
prefWidth=
"116.0"
text=
"Start"
>
<ToggleButton
fx:id=
"startButton"
minHeight=
"40
.0"
mnemonicParsing=
"false"
prefHeight=
"4
0
.0"
prefWidth=
"116.0"
text=
"Start"
>
<font>
<font>
<Font
size=
"16.0"
/>
<Font
size=
"16.0"
/>
</font>
</font>
</ToggleButton>
</ToggleButton>
<Label
fx:id=
"labelTime"
layoutX=
"240.0"
layoutY=
"23.0
"
prefHeight=
"49.0"
prefWidth=
"326.0"
text
=
"
"
>
<Label
fx:id=
"labelTime"
alignment=
"CENTER"
contentDisplay=
"CENTER"
maxWidth=
"1.7976931348623157E308
"
prefHeight=
"49.0"
prefWidth=
"326.0"
text
Alignment=
"CENTER"
HBox.hgrow=
"ALWAYS
"
>
<font>
<font>
<Font
name=
"Arial"
size=
"28.0"
/>
<Font
name=
"Arial"
size=
"28.0"
/>
</font>
</font>
</Label>
</Label>
<Button
layoutX=
"614.0"
layoutY=
"3
0.0"
mnemonicParsing=
"false"
onAction=
"#charts"
prefHeight=
"40.0"
prefWidth=
"107.0"
text=
"Diagramme"
>
<Button
minHeight=
"4
0.0"
mnemonicParsing=
"false"
onAction=
"#charts"
prefHeight=
"40.0"
prefWidth=
"107.0"
text=
"Diagramme"
>
<font>
<font>
<Font
size=
"15.0"
/>
<Font
size=
"15.0"
/>
</font>
</font>
</Button>
</Button>
</children>
</children>
</Pane>
<VBox.margin>
<Accordion
fx:id=
"accordion"
prefHeight=
"516.0"
prefWidth=
"652.0"
>
<Insets
bottom=
"20.0"
top=
"20.0"
/>
</VBox.margin>
<padding>
<Insets
left=
"30.0"
right=
"30.0"
/>
</padding>
</HBox>
<Accordion
fx:id=
"accordion"
prefHeight=
"516.0"
prefWidth=
"652.0"
VBox.vgrow=
"ALWAYS"
>
<panes>
<panes>
<TitledPane
fx:id=
"Projekte"
animated=
"false"
minHeight=
"250.0"
prefHeight=
"283.0"
prefWidth=
"652.0"
text=
"Projekte gesamt"
>
<TitledPane
fx:id=
"Projekte"
animated=
"false"
minHeight=
"250.0"
prefHeight=
"283.0"
prefWidth=
"652.0"
text=
"Projekte gesamt"
>
<content>
<content>
...
...
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