Skip to content

Commit

Permalink
debugging and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Lingnau committed Jan 30, 2019
1 parent b8643e2 commit 7b69d34
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
7 changes: 3 additions & 4 deletions src/de/cses/client/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.google.gwt.event.logical.shared.CloseHandler;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ClientBundle.Source;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Label;
Expand Down Expand Up @@ -74,7 +73,7 @@ interface Resources extends ClientBundle {
}

// this footer will be shown at the bottom of the WebApp
private static final String FOOTER_TEXT = "\u00A9 2019 Sächsische Akademie der Wissenschaften zu Leipzig (Version 0.9.4)";
private static final String FOOTER_TEXT = "\u00A9 2019 Sächsische Akademie der Wissenschaften zu Leipzig (Version 1.0 RC1)";

private BorderLayoutContainer view = null;
private CaveSearchController caveSearchController;
Expand Down Expand Up @@ -222,8 +221,8 @@ public void onSelect(SelectEvent event) {
// ----------------------------------- assembling the menu bar ---------------------------------------------

selectorLayoutContainer = new HorizontalLayoutContainer();
selectorLayoutContainer.add(kuchaLogo, new HorizontalLayoutData(159, 91, new Margins(0)));
selectorLayoutContainer.add(caveSearchController, new HorizontalLayoutData(90, 90, new Margins(10)));
selectorLayoutContainer.add(kuchaLogo, new HorizontalLayoutData(159, 100, new Margins(5, 0, 5, 0)));
selectorLayoutContainer.add(caveSearchController, new HorizontalLayoutData(130, 90, new Margins(10, 10, 10, 50)));
selectorLayoutContainer.add(depictionSearchController, new HorizontalLayoutData(90, 90, new Margins(10)));
selectorLayoutContainer.add(ornamenticSearchController, new HorizontalLayoutData(90, 90, new Margins(10)));
selectorLayoutContainer.add(annotatedBiblographySearchController, new HorizontalLayoutData(90, 90, new Margins(10)));
Expand Down
20 changes: 10 additions & 10 deletions src/de/cses/client/ornamentic/OrnamentCaveRelationEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public void onClick(ClickEvent event) {
header = new FramedPanel();

HorizontalPanel selectedWallsHorizontalPanel = new HorizontalPanel();
header.setHeading("Walls");
header.setHeading("Position in Caves");
header.add(selectedWallsHorizontalPanel, new VerticalLayoutData(1.0, 1.0));
vlcCave.add(header, new VerticalLayoutData(0.5, .125));

Expand Down Expand Up @@ -465,7 +465,7 @@ public void onClick(ClickEvent event) {
header.setHeading("Select related ornaments");
header.add(relatedOrnamentsHorizontalPanel);

vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1.0, .4));
vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1.0, .5));

HorizontalLayoutContainer similarOrnamentsHorizontalPanel = new HorizontalLayoutContainer();
ListView<OrnamentEntry, String> ornamentListViewSimilar = new ListView<OrnamentEntry, String>(
Expand Down Expand Up @@ -499,17 +499,17 @@ public void onClick(ClickEvent event) {
groupOfOrnaments.setText(ornamentCaveRelationEntry.getGroup());
}
header.add(groupOfOrnaments);
vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1, .125));
vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1, .5));

final TextArea similarElementsofOtherCultures = new TextArea();

header = new FramedPanel();
if (ornamentCaveRelationEntry != null) {
similarElementsofOtherCultures.setText(ornamentCaveRelationEntry.getSimilarelementsOfOtherCultures());
}
header.setHeading("Similarities with elements of other cultural areas");
header.add(similarElementsofOtherCultures);
vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1, .3));
// header = new FramedPanel();
// if (ornamentCaveRelationEntry != null) {
// similarElementsofOtherCultures.setText(ornamentCaveRelationEntry.getSimilarelementsOfOtherCultures());
// }
// header.setHeading("Similarities with elements of other cultural areas");
// header.add(similarElementsofOtherCultures);
// vlcRelationToTherornaments1.add(header, new VerticalLayoutData(1, .3));

tabPanel.add(relationToOtherOrnamentsHLC, "Relations");

Expand Down
6 changes: 3 additions & 3 deletions src/de/cses/client/ornamentic/OrnamenticEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public SafeHtml render(OrnamentClassEntry item) {
});

header = new FramedPanel();
header.setHeading("Ornament Motif");
header.setHeading("Motif");
ornamentClassComboBox.setTriggerAction(TriggerAction.ALL);
header.add(ornamentClassComboBox);
panel.add(header, new VerticalLayoutData(1.0, .125));
Expand Down Expand Up @@ -439,7 +439,7 @@ public void onSuccess(OrnamentClassEntry result) {
remarks = new TextArea();
remarks.setAllowBlank(true);
header = new FramedPanel();
header.setHeading("Remarks");
header.setHeading("General Remarks");
header.add(remarks);
panel.add(header, new VerticalLayoutData(1.0, .3));
if (ornamentEntry != null) {
Expand Down Expand Up @@ -956,7 +956,7 @@ public void onSelect(SelectEvent event) {
horiPanel.setSize("650", "600");
backgroundPanel.add(horiPanel);
horiPanel.add(tabpanel);
backgroundPanel.setHeading("Ornamentic Editor");
backgroundPanel.setHeading("Ornamentation Editor");
backgroundPanel.addTool(saveButton);
backgroundPanel.addTool(closeButton);

Expand Down
2 changes: 1 addition & 1 deletion src/de/cses/client/ornamentic/OrnamenticFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ public SafeHtml render(OrnamentClassEntry item) {
});

ContentPanel headerOrnamentClass = new ContentPanel();
headerOrnamentClass.setHeading("Ornament Motif");
headerOrnamentClass.setHeading("Motif");
ornamentClassComboBox.setTriggerAction(TriggerAction.ALL);
headerOrnamentClass.add(ornamentClassComboBox);
headerOrnamentClass.getHeader().setStylePrimaryName("frame-header");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public SafeHtml render(OrnamentPositionEntry item) {
ornamentPositionComboBox.setTriggerAction(TriggerAction.ALL);

FramedPanel ornamentPositionFP = new FramedPanel();
ornamentPositionFP.setHeading("Select ornament position");
ornamentPositionFP.setHeading("Select position");
ornamentPositionFP.add(ornamentPositionComboBox);

ornamentfunctionComboBox = new ComboBox<OrnamentFunctionEntry>(ornamentFunctionEntryLS, ornamentFunctionProps.name(),
Expand All @@ -151,7 +151,7 @@ public SafeHtml render(OrnamentFunctionEntry item) {
ornamentfunctionComboBox.setEditable(false);
ornamentfunctionComboBox.setTriggerAction(TriggerAction.ALL);
FramedPanel ornamentFunctionFP = new FramedPanel();
ornamentFunctionFP.setHeading("Select the ornament function");
ornamentFunctionFP.setHeading("Select function");
ornamentFunctionFP.add(ornamentfunctionComboBox);

ValueChangeHandler<OrnamentPositionEntry> positionSelectionHandler = new ValueChangeHandler<OrnamentPositionEntry>() {
Expand Down Expand Up @@ -203,7 +203,7 @@ public void onSuccess(ArrayList<OrnamentFunctionEntry> result) {
wallRelationHLC.add(vlcWalls, new HorizontalLayoutData(.5, 1.0));

FramedPanel wallrelationFramedPanel = new FramedPanel();
wallrelationFramedPanel.setHeading("Select Walls");
wallrelationFramedPanel.setHeading("Add Position in Cave");
wallrelationFramedPanel.setSize("600px", "450px");
wallrelationFramedPanel.add(wallRelationHLC);

Expand Down
6 changes: 5 additions & 1 deletion src/de/cses/server/mysql/MysqlConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ public ArrayList<ImageEntry> searchImages(ImageSearchEntry searchEntry) {
if (where.startsWith("AccessLevel") && results.size() > 100) {
// when there is not filter option selected the where clause only deals with AccessLevel
// limiting the number of search results to avoid slowing down the system
return (ArrayList<ImageEntry>) results.subList(0, 100);
ArrayList<ImageEntry> subResultList = new ArrayList<ImageEntry>();
for (ImageEntry ie : results.subList(0, 100)) {
subResultList.add(ie);
}
return subResultList;
}
return results;
}
Expand Down

0 comments on commit 7b69d34

Please sign in to comment.