-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored config, implemented Full MVP to General Settings, refactor…
…ed general settings records
- Loading branch information
Showing
26 changed files
with
174 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/com/stream_pi/server/config/record/ActionGridSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
public record ActionGridSettings(double actionGridActionSize, boolean actionGridUseSameActionSizeAsProfile, double actionGridActionGap, boolean actionGridUseSameActionGapAsProfile, double actionGridActionDisplayTextFontSize, boolean actionGridUseSameActionDisplayTextFontSizeAsProfile) | ||
{ | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stream_pi/server/config/record/ConnectionSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
public record ConnectionSettings(String serverName, int port, String IP) { | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/stream_pi/server/config/record/GeneralSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
// TODO: This should be moved to Config and not only just GeneralSettings | ||
/*public record GeneralSettings(String serverName, int port, double actionGridActionDisplayTextFontSize, | ||
String pluginsPath, String themesPath, | ||
double actionGridActionSize, | ||
boolean actionGridUseSameActionSizeAsProfile, boolean actionGridUseSameActionGapAsProfile, | ||
boolean actionGridUseSameActionDisplayTextFontSizeAsProfile, | ||
double actionGridActionGap, | ||
boolean minimiseToSystemTrayOnClose, boolean showAlertsPopup, boolean startOnBoot, | ||
boolean soundOnActionClickedStatus, String soundOnActionClickedFilePath, | ||
String IP, Locale currentLanguageLocale) | ||
{ | ||
}*/ | ||
|
||
public record GeneralSettings(ConnectionSettings connection, ActionGridSettings actionGrid, LocationsSettings locations, SoundOnActionClickedSettings soundOnActionClicked, OthersSettings others) | ||
{ | ||
|
||
} | ||
|
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stream_pi/server/config/record/LocationsSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
public record LocationsSettings(String pluginsPath, String themesPath) { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/stream_pi/server/config/record/OthersSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
import java.util.Locale; | ||
|
||
public record OthersSettings(Locale currentLanguageLocale, boolean minimiseToSystemTrayOnClose, boolean startOnBoot, boolean showAlertsPopup) { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/stream_pi/server/config/record/SoundOnActionClickedSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.stream_pi.server.config.record; | ||
|
||
public record SoundOnActionClickedSettings(String soundOnActionClickedFilePath, boolean soundOnActionClickedStatus) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...in/java/com/stream_pi/server/window/settings/general/GeneralSettingsActionGridRecord.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...in/java/com/stream_pi/server/window/settings/general/GeneralSettingsConnectionRecord.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ain/java/com/stream_pi/server/window/settings/general/GeneralSettingsLocationsRecord.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.