#include "pan-view.h"
#include "typedefs.h"
+namespace
+{
+
+constexpr gint PAN_GROUP_MAX = 16;
+
+} // namespace
+
void pan_timeline_compute(PanWindow *pw, FileData *dir_fd, gint *width, gint *height)
{
GList *list;
struct FullScreenData;
struct ImageWindow;
+struct PanViewFilterUi;
+struct PanViewSearchUi;
struct ThumbLoader;
/* thumbnail sizes and spacing */
#define PAN_TEXT_COLOR 0, 0, 0
-#define PAN_GROUP_MAX 16
-
-
-
enum PanLayoutType {
PAN_LAYOUT_TIMELINE = 0,
PAN_LAYOUT_CALENDAR,
gboolean queued;
};
-struct PanViewSearchUi
-{
- GtkWidget *search_box;
- GtkWidget *search_entry;
- GtkWidget *search_label;
- GtkWidget *search_button;
- GtkWidget *search_button_arrow;
-};
-
-/**
- * @struct PanViewFilterUi
- * Defined in pan-view-filter.h
- */
-struct PanViewFilterUi;
-
struct PanWindow
{
GtkWidget *window;
gint idle_id;
};
-struct PanGrid {
- gint x;
- gint y;
- gint w;
- gint h;
- GList *list;
-};
-
struct PanCacheData {
FileData *fd;
CacheData *cd;
#include <glib.h>
#include <gtk/gtk.h>
-struct PanViewSearchUi;
struct PanWindow;
+struct PanViewSearchUi
+{
+ GtkWidget *search_box;
+ GtkWidget *search_entry;
+ GtkWidget *search_label;
+ GtkWidget *search_button;
+ GtkWidget *search_button_arrow;
+};
+
void pan_search_toggle_visible(PanWindow *pw, gboolean enable);
void pan_search_activate(PanWindow *pw);
void pan_search_activate_cb(const gchar *text, gpointer data);
namespace
{
+struct PanGrid {
+ gint x;
+ gint y;
+ gint w;
+ gint h;
+ GList *list;
+};
+
constexpr gint PAN_WINDOW_DEFAULT_WIDTH = 720;
constexpr gint PAN_WINDOW_DEFAULT_HEIGHT = 500;