NewViewerImages -> ViewerImages
authorNiki Roo <niki@nikiroo.be>
Sun, 3 May 2020 20:17:27 +0000 (22:17 +0200)
committerNiki Roo <niki@nikiroo.be>
Sun, 3 May 2020 20:17:27 +0000 (22:17 +0200)
src/be/nikiroo/fanfix_swing/Actions.java
src/be/nikiroo/fanfix_swing/gui/viewer/ViewerImages.java [moved from src/be/nikiroo/fanfix_swing/gui/viewer/NewViewerImages.java with 99% similarity]

index 5b8f0d3eb65baa8e4e2350a79e9dc47fef68a2b7..aebe309f5c04a905c79565520565d96b37b48d09 100644 (file)
@@ -26,7 +26,7 @@ import be.nikiroo.fanfix.library.LocalLibrary;
 import be.nikiroo.fanfix_swing.gui.book.BookInfo;
 import be.nikiroo.fanfix_swing.gui.utils.CoverImager;
 import be.nikiroo.fanfix_swing.gui.utils.UiHelper;
-import be.nikiroo.fanfix_swing.gui.viewer.NewViewerImages;
+import be.nikiroo.fanfix_swing.gui.viewer.ViewerImages;
 import be.nikiroo.fanfix_swing.gui.viewer.Viewer;
 import be.nikiroo.utils.Progress;
 import be.nikiroo.utils.StringUtils;
@@ -138,7 +138,7 @@ public class Actions {
         */
        static private void openInternal(Story story) {
                if (story.getMeta().isImageDocument()) {
-                       NewViewerImages viewer = new NewViewerImages(story);
+                       ViewerImages viewer = new ViewerImages(story);
                        viewer.setVisible(true);
                } else {
                        Viewer viewer = new Viewer(Instance.getInstance().getLibrary(),
similarity index 99%
rename from src/be/nikiroo/fanfix_swing/gui/viewer/NewViewerImages.java
rename to src/be/nikiroo/fanfix_swing/gui/viewer/ViewerImages.java
index e8b3d56092fbb6c8bdb7aadfaa66f4233c16a291..47de816b4d620634f7670884be804c3dcb4e6d4e 100644 (file)
@@ -54,7 +54,7 @@ import be.nikiroo.utils.ui.UIUtils;
  * 
  * @author niki
  */
-public class NewViewerImages extends JFrame {
+public class ViewerImages extends JFrame {
        private enum ZoomLevel {
                FIT_TO_WIDTH(-1, true), //
                FIT_TO_HEIGHT(-1, false), //
@@ -126,7 +126,7 @@ public class NewViewerImages extends JFrame {
         * @param story
         *            the {@link Story} to display
         */
-       public NewViewerImages(Story story) {
+       public ViewerImages(Story story) {
                setTitle(MainFrame.trans(StringIdGui.TITLE_STORY,
                                story.getMeta().getLuid(), story.getMeta().getTitle()));