From eb665fbd51f57c9ea0070bc345ba9827b250c8bb Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 15 Apr 2019 23:16:40 +0200 Subject: [PATCH] GUI: search action --- .../reader/ui/GuiReaderSearchAction.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java new file mode 100644 index 00000000..dbce52f1 --- /dev/null +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java @@ -0,0 +1,32 @@ +package be.nikiroo.fanfix.reader.ui; + +import java.awt.BorderLayout; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JPanel; + +import be.nikiroo.fanfix.library.BasicLibrary; + +public class GuiReaderSearchAction extends JFrame { + private static final long serialVersionUID = 1L; + + private GuiReaderBookInfo info; + + public GuiReaderSearchAction(BasicLibrary lib, GuiReaderBookInfo info) { + // TODO i18n + super("TODO: " + info.getMainInfo()); + this.setSize(800, 600); + this.info = info; + + setLayout(new BorderLayout()); + + JPanel props = new GuiReaderPropertiesPane(lib, info.getMeta()); + + add(props, BorderLayout.NORTH); + add(new GuiReaderViewerPanel(info.getMeta(), info.getMeta() + .isImageDocument()), BorderLayout.CENTER); + add(new JButton("TODO: Download"), BorderLayout.SOUTH); + // TODO --^ + } +} -- 2.27.0