Skip to content
Browse files

release 1

  • Loading branch information...
1 parent 53e4aea commit fe232fc3eeeeec3b29acaa54d10cde9f65353fc7 @sharadmv committed Jan 22, 2012
View
2 src/com/sharad/quizbowl/ui/client/HomeWidget.ui.xml
@@ -50,7 +50,7 @@
</g:tab>
<g:tab>
<g:header size='1.5'>
- Multiplayer Beta
+ Multiplayer
</g:header>
<g:DockLayoutPanel ui:field="multiReaderPanel">
<g:north size="60">
View
22 src/com/sharad/quizbowl/ui/client/widget/Chatroom.java
@@ -10,6 +10,7 @@
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ScrollPanel;
@@ -31,13 +32,26 @@
public VerticalPanel wrapper;
@UiField
public static Label users;
+ @UiField
+ public HTML help;
+ com.smartgwt.client.widgets.Window helpWindow = new com.smartgwt.client.widgets.Window();
+
private static ChatroomUiBinder uiBinder = GWT
.create(ChatroomUiBinder.class);
interface ChatroomUiBinder extends UiBinder<Widget, Chatroom> {
}
public Chatroom() {
+ helpWindow.addItem(new HelpBox());
+ helpWindow.setTitle("Commands");
+
+ // window.setAutoSize(true);
+ helpWindow.setWidth(400);
+ helpWindow.setHeight(250);
+ helpWindow.centerInPage();
+
+ helpWindow.setIsModal(true);
initWidget(uiBinder.createAndBindUi(this));
scrollPanel.setStyleName("scrollPanel");
chatPanel.setStyleName("chatPanel");
@@ -61,6 +75,14 @@ public void onKeyDown(KeyDownEvent event) {
});
wrapper.setStyleName("chatroomWrapper");
+ help.addClickHandler(new ClickHandler() {
+
+ @Override
+ public void onClick(ClickEvent event) {
+ helpWindow.show();
+ }
+
+ });
}
protected void sendMessage() {
View
1 src/com/sharad/quizbowl/ui/client/widget/Chatroom.ui.xml
@@ -13,5 +13,6 @@
<g:Button ui:field="sendButton">Send</g:Button>
</g:HorizontalPanel>
<g:Label ui:field="users" />
+ <g:HTML ui:field="help" styleName="helpLink"><a>Help</a></g:HTML>
</g:VerticalPanel>
</ui:UiBinder>

0 comments on commit fe232fc

Please sign in to comment.
Something went wrong with that request. Please try again.