Move pan-view components to their own subdir.
authorOmari Stephens <xsdg@google.com>
Sat, 24 Dec 2016 05:38:38 +0000 (05:38 +0000)
committerOmari Stephens <xsdg@google.com>
Sat, 24 Dec 2016 07:12:31 +0000 (07:12 +0000)
This makes it easier to modularize pan-view without cluttering the src dir
with extra files, and without worrying as much about exposing pan-view-internal
APIs to the rest of Geeqie.

20 files changed:
.gitignore
configure.in
src/Makefile.am
src/pan-view.h
src/pan-view/Makefile.am [new file with mode: 0644]
src/pan-view/pan-calendar.c [moved from src/pan-calendar.c with 100% similarity]
src/pan-view/pan-calendar.h [moved from src/pan-calendar.h with 94% similarity]
src/pan-view/pan-folder.c [moved from src/pan-folder.c with 100% similarity]
src/pan-view/pan-folder.h [moved from src/pan-folder.h with 94% similarity]
src/pan-view/pan-grid.c [moved from src/pan-grid.c with 100% similarity]
src/pan-view/pan-grid.h [moved from src/pan-grid.h with 94% similarity]
src/pan-view/pan-item.c [moved from src/pan-item.c with 100% similarity]
src/pan-view/pan-item.h [moved from src/pan-item.h with 98% similarity]
src/pan-view/pan-timeline.c [moved from src/pan-timeline.c with 100% similarity]
src/pan-view/pan-timeline.h [moved from src/pan-timeline.h with 93% similarity]
src/pan-view/pan-types.h [moved from src/pan-types.h with 98% similarity]
src/pan-view/pan-util.c [moved from src/pan-util.c with 100% similarity]
src/pan-view/pan-util.h [moved from src/pan-util.h with 96% similarity]
src/pan-view/pan-view.c [moved from src/pan-view.c with 100% similarity]
src/pan-view/pan-view.h [new file with mode: 0644]

index 014321e..4b906f6 100644 (file)
@@ -69,6 +69,10 @@ Makefile.in
 # /src/icons/
 /src/icons/icons_inline.h
 
+# /src/pan-view/
+/src/pan-view/.deps
+/src/pan-view/.dirstamp
+
 /build-stamp
 /debian/geeqie*
 /debian/files
index e349cfd..806817c 100644 (file)
@@ -21,7 +21,8 @@ AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short master), [
 AC_CONFIG_SRCDIR([src/main.c])
 
 AC_CONFIG_AUX_DIR(auxdir)
-AM_INIT_AUTOMAKE
+# Require Automake 1.14 for %reldir% support
+AM_INIT_AUTOMAKE([1.14.1 subdir-objects])
 
 AC_CONFIG_HEADER([config.h])
 
index b78e258..151c658 100644 (file)
@@ -80,10 +80,13 @@ CLEANFILES = $(noinst_DATA)
 extra_SLIK = \
        $(extra_ICONS)
 
+include $(srcdir)/pan-view/Makefile.am
+
 bin_PROGRAMS = geeqie
 
 geeqie_SOURCES = \
        $(module_SLIK)  \
+       $(module_pan_view)      \
        ClayRGB1998.icc \
        ClayRGB1998_icc.h \
        advanced_exif.c \
@@ -202,20 +205,6 @@ geeqie_SOURCES = \
        misc.h          \
        options.c       \
        options.h       \
-       pan-calendar.c  \
-       pan-calendar.h  \
-       pan-folder.c    \
-       pan-folder.h    \
-       pan-grid.c      \
-       pan-grid.h      \
-       pan-item.c      \
-       pan-item.h      \
-       pan-timeline.c  \
-       pan-timeline.h  \
-       pan-types.h     \
-       pan-util.c      \
-       pan-util.h      \
-       pan-view.c      \
        pan-view.h      \
        pixbuf-renderer.c       \
        pixbuf-renderer.h       \
index 2d8a6b8..791d4c3 100644 (file)
 #ifndef PAN_VIEW_H
 #define PAN_VIEW_H
 
-#include "main.h"
-#include "pan-types.h"
+#include "filedata.h"
 
 void pan_window_new(FileData *dir_fd);
 
-GList *pan_layout_intersect(PanWindow *pw, gint x, gint y, gint width, gint height);
-void pan_layout_resize(PanWindow *pw);
-
-void pan_cache_sync_date(PanWindow *pw, GList *list);
-
-GList *pan_cache_sort(GList *list, SortType method, gboolean ascend);
-
-
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
diff --git a/src/pan-view/Makefile.am b/src/pan-view/Makefile.am
new file mode 100644 (file)
index 0000000..70c9423
--- /dev/null
@@ -0,0 +1,16 @@
+module_pan_view = \
+       %D%/pan-calendar.c      \
+       %D%/pan-calendar.h      \
+       %D%/pan-folder.c        \
+       %D%/pan-folder.h        \
+       %D%/pan-grid.c  \
+       %D%/pan-grid.h  \
+       %D%/pan-item.c  \
+       %D%/pan-item.h  \
+       %D%/pan-timeline.c      \
+       %D%/pan-timeline.h      \
+       %D%/pan-types.h \
+       %D%/pan-util.c  \
+       %D%/pan-util.h  \
+       %D%/pan-view.c  \
+       %D%/pan-view.h
similarity index 94%
rename from src/pan-calendar.h
rename to src/pan-view/pan-calendar.h
index 5586376..cc5eb81 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_CALENDAR_H
-#define PAN_CALENDAR_H
+#ifndef PAN_VIEW_PAN_CALENDAR_H
+#define PAN_VIEW_PAN_CALENDAR_H
 
 //#include "main.h"
 #include "pan-item.h"
similarity index 100%
rename from src/pan-folder.c
rename to src/pan-view/pan-folder.c
similarity index 94%
rename from src/pan-folder.h
rename to src/pan-view/pan-folder.h
index 778fc17..e9cc261 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_FOLDER_H
-#define PAN_FOLDER_H
+#ifndef PAN_VIEW_PAN_FOLDER_H
+#define PAN_VIEW_PAN_FOLDER_H
 
 #include "main.h"
 #include "pan-types.h"
similarity index 100%
rename from src/pan-grid.c
rename to src/pan-view/pan-grid.c
similarity index 94%
rename from src/pan-grid.h
rename to src/pan-view/pan-grid.h
index 14aaffd..a898522 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_GRID_H
-#define PAN_GRID_H
+#ifndef PAN_VIEW_PAN_GRID_H
+#define PAN_VIEW_PAN_GRID_H
 
 #include "main.h"
 #include "pan-types.h"
similarity index 100%
rename from src/pan-item.c
rename to src/pan-view/pan-item.c
similarity index 98%
rename from src/pan-item.h
rename to src/pan-view/pan-item.h
index 7ed7335..2b72f0b 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_ITEM_H
-#define PAN_ITEM_H
+#ifndef PAN_VIEW_PAN_ITEM_H
+#define PAN_VIEW_PAN_ITEM_H
 
 #include "main.h"
 #include "pan-types.h"
similarity index 93%
rename from src/pan-timeline.h
rename to src/pan-view/pan-timeline.h
index 78bf78a..7cfba94 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_TIMELINE_H
-#define PAN_TIMELINE_H
+#ifndef PAN_VIEW_PAN_TIMELINE_H
+#define PAN_VIEW_PAN_TIMELINE_H
 
 #include "main.h"
 #include "pan-types.h"
similarity index 98%
rename from src/pan-types.h
rename to src/pan-view/pan-types.h
index 13931d0..5318b38 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_TYPES_H
-#define PAN_TYPES_H
+#ifndef PAN_VIEW_PAN_TYPES_H
+#define PAN_VIEW_PAN_TYPES_H
 
 #include "cache-loader.h"
 #include "filedata.h"
similarity index 100%
rename from src/pan-util.c
rename to src/pan-view/pan-util.c
similarity index 96%
rename from src/pan-util.h
rename to src/pan-view/pan-util.h
index 7fb5c14..b700c81 100644 (file)
@@ -19,8 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef PAN_UTIL_H
-#define PAN_UTIL_H
+#ifndef PAN_VIEW_PAN_UTIL_H
+#define PAN_VIEW_PAN_UTIL_H
 
 #include "main.h"
 #include "pan-types.h"
similarity index 100%
rename from src/pan-view.c
rename to src/pan-view/pan-view.c
diff --git a/src/pan-view/pan-view.h b/src/pan-view/pan-view.h
new file mode 100644 (file)
index 0000000..7a7ddc7
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
+ *
+ * Author: John Ellis
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef PAN_VIEW_PAN_VIEW_H
+#define PAN_VIEW_PAN_VIEW_H
+
+#include "main.h"
+#include "pan-types.h"
+
+GList *pan_layout_intersect(PanWindow *pw, gint x, gint y, gint width, gint height);
+void pan_layout_resize(PanWindow *pw);
+
+void pan_cache_sync_date(PanWindow *pw, GList *list);
+
+GList *pan_cache_sort(GList *list, SortType method, gboolean ascend);
+
+
+#endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */