From e9d43c7c0b9e159909ed9cdce4e907056fab8d9c Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 7 Mar 2019 07:50:53 +0100 Subject: [PATCH] wip --- .../fanfix/reader/tui/TuiReaderMainWindow.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/be/nikiroo/fanfix/reader/tui/TuiReaderMainWindow.java b/src/be/nikiroo/fanfix/reader/tui/TuiReaderMainWindow.java index 18a1223..bb2c80d 100644 --- a/src/be/nikiroo/fanfix/reader/tui/TuiReaderMainWindow.java +++ b/src/be/nikiroo/fanfix/reader/tui/TuiReaderMainWindow.java @@ -2,6 +2,7 @@ package be.nikiroo.fanfix.reader.tui; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import jexer.TAction; @@ -46,7 +47,22 @@ class TuiReaderMainWindow extends TWindow { listKeys = new ArrayList(); listItems = new ArrayList(); - list = addList(listItems, 0, 0, getWidth(), getHeight(), new TAction() { + + // TODO size + onResize + + addLabel("Sort by: ", 5, 1); + // -1 = no default index (0 means first,...) 1=height when visible, null + // = action + addComboBox(15, 1, 12, + Arrays.asList("(show all)", "Source", "Name", "Author"), 0, 1, + null); + + addLabel("Search: ", 5, 3); + addEditor("...", 15, 3, 12, 1); // TODO: cannot see where to type, ^H + // not working, TAB insert a TAB (cannot + // switch to next) + + list = addList(listItems, 0, 5, getWidth(), getHeight(), new TAction() { @Override public void DO() { MetaData meta = getSelectedMeta(); -- 2.27.0