Commit Graph

83 Commits

Author SHA1 Message Date
DieGurke 4b3fa65822 Implemented some suggestions made by @delvh 2020-07-12 13:07:46 +02:00
DieGurke 0b0b240fb1 When opening a chat holding unread messages, it scrolls to the first one 2020-07-11 14:57:15 +02:00
DieGurke 0cebaeacb5 Little Bug Fix 2020-07-11 14:46:13 +02:00
DieGurke ba4fdbe2f4 chats with most recent messages get moved to the top 2020-07-11 14:18:38 +02:00
DieGurke d6dca1efe0 Merge branch 'develop' into f/display_unread_messages 2020-07-11 10:59:23 +02:00
DieGurke 70da595a49 UnreadMessagesAmount gets displayed correctly now (despite refresh bug) 2020-07-10 23:25:55 +02:00
Kai S. K. Engelbart de136294af Fix Javadoc typo
Co-authored-by: delvh <dev.lh@web.de>
2020-07-10 21:05:57 +00:00
DieGurke 1f7e5e5a3a Added getUnreadAmount function and changed ContactListCellFac' constr. 2020-07-10 22:41:59 +02:00
delvh 63ea7a39c1 Added image preview when an image is used as attachment
additionally:
- added search icons
- solved problem of Scrollbars being shown too far from the right side
(all praise FX, Swing did not offer such a simple solution)
- relocated infoLabel into the highest row, is now located above the
messageList
2020-07-10 20:53:28 +02:00
delvh ee4f6e01f4 Added maximum size for displaying sent images
additionally:
- made selecting of bmp or gif images possible
- defined a DEFAULT_ICON_SIZE in which most icons are loaded
- displayed attachment button with attachment icon
2020-07-09 22:47:29 +02:00
Kai S. K. Engelbart e67665f0bd Add attachment creation support, display picture messages 2020-07-09 16:16:06 +02:00
delvh 7c5cc2f220 Merge pull request #180 from informatik-ag-ngl/f/context_menu
Added context menu in MessageControl
2020-07-08 22:08:53 +02:00
delvh 0cdaca1f54 Added context menu in MessageControl 2020-07-08 21:31:02 +02:00
DieGurke a8443e6a50 Applied suggestions from @delvh 2020-07-08 14:15:44 +02:00
delvh d88f31a300 Merge branch 'develop' into f/groupMessages 2020-07-08 09:04:51 +02:00
delvh 9d5c430fe0 Defined theme specific icon folders, renamed icon loading method 2020-07-07 17:02:39 +02:00
delvh 8a42e2f049 Added multiple (recording) icons and change them on recording 2020-07-06 22:35:06 +02:00
delvh a16f8966fb Updated and simplified IconUtil API 2020-07-06 22:33:04 +02:00
delvh 8abd895324 Added attachment icons and notified user if an attachment is present 2020-07-05 23:25:07 +02:00
delvh 95d411822b Merge branch 'develop' into f/groupMessages 2020-07-05 17:01:11 +02:00
Kai S. K. Engelbart da78d1cbb7 Merge pull request #172 from informatik-ag-ngl/f/voice_messages
Voice Messaging
2020-07-05 14:03:00 +00:00
DieGurke dd8e88d28c Implemented GroupChat as subclass of Chat and adjusted calls of such 2020-07-05 14:38:19 +02:00
Kai S. K. Engelbart 03a1596420 Add Exception Logging 2020-07-05 14:25:58 +02:00
DieGurke c5ab36d5ea Fixed bug regarding adding new Message to wrong chats 2020-07-05 13:28:17 +02:00
Kai S. K. Engelbart e4e5e6376c Cancel an active recording if the chat is switched 2020-07-05 12:21:07 +02:00
Kai S. K. Engelbart a90f58afe0 Add Audio Playback Capability
* Add envoy.client.data.audio package
* Move AudioRecorder to the audio package
* Add AudioPlayer class
* Add AudioControl class that acts as a small media player
* Display the audio control in message controls that contain voice
  messages
2020-07-05 12:08:29 +02:00
Kai S. K. Engelbart 483ab9e344 Merge branch 'develop' into f/groupMessages 2020-07-05 11:15:00 +02:00
Kai S. K. Engelbart 9883a5ddd3 Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
2020-07-04 14:00:09 +00:00
DieGurke 96fc06a8e5 Implemented GroupMessageStatusChangeProcessor and a Cache for those 2020-07-04 15:43:46 +02:00
delvh 74290051ff Added ability to execute code when a scene is restored 2020-07-04 15:26:12 +02:00
Kai S. K. Engelbart d9bf20b88e Add Voice Recording to ChatScene
The ChatScene layout has been adjusted to include a voice message
button. When pressed, a recording starts. To finish the recording, press
the button again. The recording will be saved as a pending attachment.

The next message sent will include the attachment. When a pending
attachment is present, a message can be sent without text.

When the chat is switched, the pending attachment is discarded. This
does not stop active recordings, however.

The ChatScene layout handles large stages better now by ditching
percentage-wise row and column scaling in favor of absolute values for
all cells except the message list and text area.
2020-07-03 23:32:22 +02:00
DieGurke 289f2b7032 Implemented GroupMessage reading (sending the right event)
Note: changed a lambda expression in LocalDB and not 100% sure if it is correct
2020-07-03 13:47:40 +02:00
delvh 4f877d3d5b (IMPORTANT! read description) Merge pull request #166 from informatik-ag-ngl/f/clearable_textfield
Implemented ClearableTextField and redesigned UI.
TAKE CARE:
in order to use SceneBuilder further, you have to import the attached
JAR "CustomComponents.jar" into the SceneBuilder. If you don't do this,
Scenebuilder no longer can load FXML files that depend on a custom
component. If you are implementing another custom component, feel free
to add it to the jar.
Note however that SceneBuilder cannot load any components that rely on
libraries other than the standard Java library or the JavaFX standard.
Meaning that even if you are referencing another Envoy file, the
component will not be importable. Because of this, the
ClearableTextField is also present only in a slimmed down version, as
SceneBuilder additionally has problems when dealing with loading
resources.
2020-07-02 18:06:43 +02:00
delvh 74734777cd Moved former ListCell#updateItem methods into separate Control objects
Additionally fixed bug showing wrong color of infoLabel after switching
scenes
2020-07-01 19:35:15 +02:00
Kai S. K. Engelbart c54e7085ce Fix message insertion into empty list and from sender 2020-07-01 08:45:39 +02:00
Kai S. K. Engelbart 26a8650353 Fix message order with insertion method
Fixes #168
2020-07-01 08:36:21 +02:00
delvh 2b1debbad7 Added (currently useless) message-info menuItem
additionally:
 - moved MessageListCell and ContactListCell into
envoy.client.ui.listcell
 - edited editable property of ClearableTextField
2020-06-30 21:20:54 +02:00
delvh dee66458d9 Wrapped text in userList
(as suggested by @CyB3RC0nN0R)
It is nice to see that JavaFX is less prone to shittyness than Swing is.
2020-06-27 18:44:57 +02:00
Kai S. K. Engelbart 1361c29d4f Bind message list cell width to message list width
Fixes #156
2020-06-27 17:36:42 +02:00
Kai S. K. Engelbart e1e8315ace Merge branch 'develop' into f/groupMessages
Conflicts:
	src/main/java/envoy/client/ui/controller/ChatScene.java
2020-06-27 11:34:51 +02:00
delvh 3aace6d255 Merge branch 'develop' into f/notify_user_of_empty_IDGenerator 2020-06-27 11:25:49 +02:00
delvh 5c086630f6 Removed unnecessary IOException in IconUtil
This is a normal @CyB3RC0nN0R commit: Adding functionality by deleting
code.
2020-06-27 11:03:30 +02:00
delvh 78b560cddd Made postingPermanentlyDisabled further idiot-proof
Additionally deleted annoying alert notifying me that I'm offline.
2020-06-27 09:34:30 +02:00
delvh 90df627831 Implemented notification of user if he can no longer send messages
This only occurs when he is in offline mode and runs out of messageIDs
to use.
Additionally implemented:
- automatically disabled user of posting after that condition is reached
- an infoLabel used to commjunicate some events with the user
- (in parts) a new UI design
2020-06-26 23:16:03 +02:00
delvh f68412a752 Merge branch 'develop' into f/enhanced_UI 2020-06-26 20:18:00 +02:00
delvh d11b1363f9 Merge branch 'f/enhanced_UI' of git@github.com:informatik-ag-ngl/envoy-client.git into f/enhanced_UI 2020-06-26 17:33:49 +02:00
delvh 487cac77fb Added display of settings-icon for the settings button
additionally modified margin of elements in ChatScene
2020-06-26 17:33:32 +02:00
Kai S. K. Engelbart 66eddab143 Fix double status increment on cached message relay 2020-06-26 09:28:48 +02:00
Kai S. K. Engelbart 35f4ca2a1a Display correct contact status on startup
Fixes #152
2020-06-26 09:08:41 +02:00
delvh 36ea72954c Apply suggestions from code review
Co-authored-by: CyB3RC0nN0R <CyB3RC0nN0R@users.noreply.github.com>
2020-06-25 11:19:59 +02:00