dbce52f1b713fb995d29021f6209106ba85a7fb9
[fanfix.git] / src / be / nikiroo / fanfix / reader / ui / GuiReaderSearchAction.java
1 package be.nikiroo.fanfix.reader.ui;
2
3 import java.awt.BorderLayout;
4
5 import javax.swing.JButton;
6 import javax.swing.JFrame;
7 import javax.swing.JPanel;
8
9 import be.nikiroo.fanfix.library.BasicLibrary;
10
11 public class GuiReaderSearchAction extends JFrame {
12 private static final long serialVersionUID = 1L;
13
14 private GuiReaderBookInfo info;
15
16 public GuiReaderSearchAction(BasicLibrary lib, GuiReaderBookInfo info) {
17 // TODO i18n
18 super("TODO: " + info.getMainInfo());
19 this.setSize(800, 600);
20 this.info = info;
21
22 setLayout(new BorderLayout());
23
24 JPanel props = new GuiReaderPropertiesPane(lib, info.getMeta());
25
26 add(props, BorderLayout.NORTH);
27 add(new GuiReaderViewerPanel(info.getMeta(), info.getMeta()
28 .isImageDocument()), BorderLayout.CENTER);
29 add(new JButton("TODO: Download"), BorderLayout.SOUTH);
30 // TODO --^
31 }
32 }