Skip to content

Commit 3255d3f

Browse files
committed
startConversation
1 parent f38f4ee commit 3255d3f

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -873,33 +873,42 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
873873

874874
__getAnnotationsSection: function() {
875875
const annotationsSection = new qx.ui.container.Composite(new qx.ui.layout.VBox(10));
876-
annotationsSection.add(new qx.ui.basic.Label(this.tr("Annotations")).set({
876+
annotationsSection.add(new qx.ui.basic.Label(this.tr("Add to Workbench")).set({
877877
font: "text-14"
878878
}));
879879

880-
const annotationsButtons = new qx.ui.container.Composite(new qx.ui.layout.HBox(5));
880+
const annotationsButtons = new qx.ui.container.Composite(new qx.ui.layout.Flow(5, 5));
881881
annotationsSection.add(annotationsButtons);
882882

883883
const buttonsHeight = 28;
884+
885+
const addConversationBtn = new qx.ui.form.Button().set({
886+
label: this.tr("Conversation"),
887+
icon: "@FontAwesome5Solid/comment/14",
888+
height: buttonsHeight
889+
});
890+
addConversationBtn.addListener("execute", () => this.__workbenchUI.startConversation(), this);
891+
annotationsButtons.add(addConversationBtn);
892+
884893
const addNoteBtn = new qx.ui.form.Button().set({
885894
label: this.tr("Note"),
886-
icon: "@FontAwesome5Solid/plus/14",
895+
icon: "@FontAwesome5Solid/sticky-note/14",
887896
height: buttonsHeight
888897
});
889898
addNoteBtn.addListener("execute", () => this.__workbenchUI.startAnnotationsNote(), this);
890899
annotationsButtons.add(addNoteBtn);
891900

892901
const addRectBtn = new qx.ui.form.Button().set({
893-
label: this.tr("Rectangle"),
894-
icon: "@FontAwesome5Solid/plus/14",
902+
label: this.tr("Box"),
903+
icon: "@FontAwesome5Regular/square/14",
895904
height: buttonsHeight
896905
});
897906
addRectBtn.addListener("execute", () => this.__workbenchUI.startAnnotationsRect(), this);
898907
annotationsButtons.add(addRectBtn);
899908

900909
const addTextBtn = new qx.ui.form.Button().set({
901910
label: this.tr("Text"),
902-
icon: "@FontAwesome5Solid/plus/14",
911+
icon: "@FontAwesome5Solid/font/14",
903912
height: buttonsHeight
904913
});
905914
addTextBtn.addListener("execute", () => this.__workbenchUI.startAnnotationsText(), this);

services/static-webserver/client/source/class/osparc/workbench/WorkbenchUI.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,10 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
16021602
this.setScale(closestDown);
16031603
},
16041604

1605+
startConversation: function() {
1606+
this.__toolHint.setValue(this.tr("Pick the position"));
1607+
},
1608+
16051609
startAnnotationsNote: function() {
16061610
this.__annotatingNote = true;
16071611
this.__annotatingRect = false;

0 commit comments

Comments
 (0)