This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test unit, fix search and replace layout issue, implemented side …
…tab for view
- Loading branch information
1 parent
8c672aa
commit c60263d
Showing
6 changed files
with
123 additions
and
113 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
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
150 changes: 95 additions & 55 deletions
150
zanata-war/src/main/java/org/zanata/webtrans/client/view/SearchResultsView.ui.xml
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 |
---|---|---|
@@ -1,59 +1,99 @@ | ||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> | ||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" | ||
xmlns:g="urn:import:com.google.gwt.user.client.ui" | ||
xmlns:f="urn:import:org.zanata.webtrans.client" | ||
xmlns:fui="urn:import:org.zanata.webtrans.client.ui" | ||
xmlns:c="urn:import:com.google.gwt.user.cellview.client"> | ||
|
||
<g:LayoutPanel> | ||
<g:layer top='0px' height='64px' left="0px" width="50%"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' width="100%" height="100%" styleName='projectWideSearchPanel' > | ||
<g:cell width="200px"> | ||
<g:TextBox ui:field='filterTextBox' styleName='projectWideSearchBox' /> | ||
</g:cell> | ||
<g:cell width="100px"> | ||
<g:Button ui:field='searchButton' styleName='projectWideSearchButton' ><ui:msg>Search</ui:msg></g:Button> | ||
</g:cell> | ||
<g:cell> | ||
<g:VerticalPanel> | ||
<g:CheckBox ui:field="caseSensitiveChk"><ui:msg>Case sensitive</ui:msg></g:CheckBox> | ||
<g:ListBox ui:field="searchFieldsSelect" selectedIndex="0"/> | ||
</g:VerticalPanel> | ||
</g:cell> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
|
||
|
||
|
||
<g:layer top='0px' height='64px' right="0px" width="50%"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' width="100%" height="100%" styleName='projectWideSearchPanel' > | ||
<g:cell horizontalAlignment="ALIGN_RIGHT"> | ||
<g:TextBox ui:field='replacementTextBox' styleName='projectWideReplacementBox' /> | ||
</g:cell> | ||
<g:cell horizontalAlignment="ALIGN_RIGHT" width="100px"> | ||
<g:Button ui:field='replaceAllButton' styleName='projectWideReplacementButton' > | ||
<ui:msg>Replace</ui:msg> | ||
</g:Button> | ||
</g:cell> | ||
<g:cell horizontalAlignment="ALIGN_RIGHT" width="120px"> | ||
<g:CheckBox ui:field="requirePreviewChk"><ui:msg>Require preview</ui:msg></g:CheckBox> | ||
</g:cell> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
|
||
|
||
<g:layer top='64px' height='32px' left="0px" right="0px"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' width="100%" height="100%" styleName='projectWideSearchPanel' > | ||
<g:CheckBox ui:field="selectAllChk" styleName='projectWideSearchSelectAllChk'><ui:msg>Select all</ui:msg></g:CheckBox> | ||
<g:InlineLabel ui:field="searchResponseLabel" styleName='projectWideSearchReportLabel' ></g:InlineLabel> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
<g:layer top='96px' bottom='0'> | ||
<g:ScrollPanel styleName='projectWideSearchResultsPanel' > | ||
<g:VerticalPanel ui:field='searchResultsPanel' width="100%" /> | ||
</g:ScrollPanel> | ||
</g:layer> | ||
|
||
</g:LayoutPanel> | ||
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:f="urn:import:org.zanata.webtrans.client" | ||
xmlns:fui="urn:import:org.zanata.webtrans.client.ui" xmlns:c="urn:import:com.google.gwt.user.cellview.client"> | ||
|
||
|
||
<ui:style> | ||
.projectWideSearchBox { | ||
padding: 3px; | ||
font-size: 20px; | ||
border: 2px solid #C5C5C5; | ||
border-radius: 3px; | ||
width: 95%; | ||
height: 28px; | ||
margin-right: 3px; | ||
} | ||
|
||
.projectWideSearchButton | ||
{ | ||
color: #444444; | ||
font-size: 1.3em; | ||
margin-right: 6px; | ||
padding: 3px 10px; | ||
} | ||
|
||
.projectWideSearchPanel | ||
{ | ||
color: #555555; | ||
background-color: #f3f2f2; | ||
border-bottom: 1px solid #d3d3d3; | ||
padding: 0px 15px; | ||
white-space: nowrap; | ||
} | ||
|
||
</ui:style> | ||
|
||
<g:LayoutPanel> | ||
<g:layer top='0px' height='64px' left="0px" width="50%"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' width="100%" height="100%" styleName="{style.projectWideSearchPanel}"> | ||
<g:cell> | ||
<g:TextBox ui:field='filterTextBox' styleName="{style.projectWideSearchBox}"/> | ||
</g:cell> | ||
<g:cell width="80px"> | ||
<g:Button ui:field='searchButton' styleName="{style.projectWideSearchButton}"> | ||
<ui:msg>Search</ui:msg> | ||
</g:Button> | ||
</g:cell> | ||
<g:cell> | ||
<g:VerticalPanel> | ||
<g:CheckBox ui:field="caseSensitiveChk"> | ||
<ui:msg>Case sensitive</ui:msg> | ||
</g:CheckBox> | ||
<g:ListBox ui:field="searchFieldsSelect" selectedIndex="0" /> | ||
</g:VerticalPanel> | ||
</g:cell> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
|
||
|
||
|
||
<g:layer top='0px' height='64px' right="0px" width="50%"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' width="100%" height="100%" styleName="{style.projectWideSearchPanel}"> | ||
<g:cell horizontalAlignment="ALIGN_LEFT"> | ||
<g:TextBox ui:field='replacementTextBox' styleName="{style.projectWideSearchBox}" /> | ||
</g:cell> | ||
<g:cell horizontalAlignment="ALIGN_LEFT" width="80px"> | ||
<g:Button ui:field='replaceAllButton' styleName="{style.projectWideSearchButton}"> | ||
<ui:msg>Replace</ui:msg> | ||
</g:Button> | ||
</g:cell> | ||
<g:cell horizontalAlignment="ALIGN_LEFT"> | ||
<g:CheckBox ui:field="requirePreviewChk"> | ||
<ui:msg>Require preview</ui:msg> | ||
</g:CheckBox> | ||
</g:cell> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
|
||
|
||
<g:layer top='64px' height='32px' left="0px" right="0px"> | ||
<g:HorizontalPanel verticalAlignment='ALIGN_MIDDLE' | ||
width="100%" height="100%" styleName="{style.projectWideSearchPanel}"> | ||
<g:CheckBox ui:field="selectAllChk" styleName='projectWideSearchSelectAllChk'> | ||
<ui:msg>Select all</ui:msg> | ||
</g:CheckBox> | ||
<g:InlineLabel ui:field="searchResponseLabel" | ||
styleName='projectWideSearchReportLabel'></g:InlineLabel> | ||
</g:HorizontalPanel> | ||
</g:layer> | ||
<g:layer top='96px' bottom='0'> | ||
<g:ScrollPanel styleName='projectWideSearchResultsPanel'> | ||
<g:VerticalPanel ui:field='searchResultsPanel' | ||
width="100%" /> | ||
</g:ScrollPanel> | ||
</g:layer> | ||
|
||
</g:LayoutPanel> | ||
|
||
</ui:UiBinder> |
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