Skip to content

Commit

Permalink
Remove archive tab (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillChee123 committed Oct 26, 2019
1 parent ce54203 commit dfbd94f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 27 deletions.
4 changes: 0 additions & 4 deletions src/main/java/seedu/weme/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package seedu.weme.logic.parser;

import static java.util.Objects.requireNonNull;
import static seedu.weme.model.ModelContext.CONTEXT_ARCHIVE;
import static seedu.weme.model.ModelContext.CONTEXT_EXPORT;
import static seedu.weme.model.ModelContext.CONTEXT_IMPORT;
import static seedu.weme.model.ModelContext.CONTEXT_MEMES;
Expand Down Expand Up @@ -49,7 +48,6 @@ public static WemeParser forContext(ModelContext modelContext) {
case CONTEXT_EXPORT:
return EXPORT_PARSER;
case CONTEXT_TEMPLATES:
case CONTEXT_ARCHIVE:
case CONTEXT_STATISTICS:
// TODO: This is a temporary placeholder until all tabs have been implemented
return new WemeParser() {
Expand All @@ -70,8 +68,6 @@ public static ModelContext parseContext(String context) throws ParseException {
return CONTEXT_MEMES;
} else if (trimmedContext.equals(CONTEXT_TEMPLATES.getContextName())) {
return CONTEXT_TEMPLATES;
} else if (trimmedContext.equals(CONTEXT_ARCHIVE.getContextName())) {
return CONTEXT_ARCHIVE;
} else if (trimmedContext.equals(CONTEXT_STATISTICS.getContextName())) {
return CONTEXT_STATISTICS;
} else if (trimmedContext.equals(CONTEXT_EXPORT.getContextName())) {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/seedu/weme/model/ModelContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public enum ModelContext {
// List of all contexts in the application.
CONTEXT_MEMES("memes"),
CONTEXT_TEMPLATES("templates"),
CONTEXT_ARCHIVE("archive"),
CONTEXT_STATISTICS("statistics"),
CONTEXT_EXPORT("export"),
CONTEXT_IMPORT("import");
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/seedu/weme/ui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class MainWindow extends UiPart<Stage> {
// App content for different tabs
private StackPane memesPanel;
private StackPane templatesPanel;
private StackPane archivePanel;
private StackPane statisticsPanel;
private StackPane exportPanel;
private StackPane importPanel;
Expand Down Expand Up @@ -148,7 +147,6 @@ private void fillPeripherals() {
private void fillAppContent() {
memesPanel = new StackPane();
templatesPanel = new StackPane();
archivePanel = new StackPane();
statisticsPanel = new StackPane();
exportPanel = new StackPane();
importPanel = new StackPane();
Expand Down Expand Up @@ -193,9 +191,6 @@ private void setAppContent(ModelContext context) {
case CONTEXT_TEMPLATES:
appContentPlaceholder.getChildren().add(templatesPanel);
break;
case CONTEXT_ARCHIVE:
appContentPlaceholder.getChildren().add(archivePanel);
break;
case CONTEXT_STATISTICS:
appContentPlaceholder.getChildren().add(statisticsPanel);
break;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/seedu/weme/ui/TabBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public class TabBar extends UiPart<Region> {
@FXML
private VBox templatesTab;
@FXML
private VBox archiveTab;
@FXML
private VBox statisticsTab;
@FXML
private VBox exportTab;
Expand Down Expand Up @@ -58,8 +56,6 @@ private VBox getContextTab(ModelContext context) {
return memesTab;
case CONTEXT_TEMPLATES:
return templatesTab;
case CONTEXT_ARCHIVE:
return archiveTab;
case CONTEXT_STATISTICS:
return statisticsTab;
case CONTEXT_EXPORT:
Expand Down
Binary file removed src/main/resources/images/archive_tab.png
Binary file not shown.
13 changes: 0 additions & 13 deletions src/main/resources/view/TabBar.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@
</children>
</VBox>
<Region VBox.vgrow="ALWAYS"/>
<VBox fx:id="archiveTab" alignment="CENTER" styleClass="tab" VBox.vgrow="NEVER">
<padding>
<Insets top="5" right="5" bottom="5" left="5"/>
</padding>
<children>
<ImageView fitHeight="50" fitWidth="50" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/archive_tab.png"/>
</image>
</ImageView>
<Label text="Archive"/>
</children>
</VBox>
<Region VBox.vgrow="ALWAYS"/>
<VBox fx:id="statisticsTab" alignment="CENTER" styleClass="tab" VBox.vgrow="NEVER">
<padding>
Expand Down

0 comments on commit dfbd94f

Please sign in to comment.