GUI: search action
authorNiki Roo <niki@nikiroo.be>
Mon, 15 Apr 2019 21:16:40 +0000 (23:16 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 15 Apr 2019 21:16:40 +0000 (23:16 +0200)
src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java [new file with mode: 0644]

diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java
new file mode 100644 (file)
index 0000000..dbce52f
--- /dev/null
@@ -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 --^
+       }
+}