comparison src/typedefs.h @ 557:d8d61dc4ff52

Introduce ViewFileInfoList and ViewFileInfoIcon (not used yet).
author zas_
date Sat, 03 May 2008 11:58:41 +0000
parents fe675761d091
children 977b9bbd0e9b
comparison
equal deleted inserted replaced
556:fe675761d091 557:d8d61dc4ff52
153 typedef struct _ViewDirInfoTree ViewDirInfoTree; 153 typedef struct _ViewDirInfoTree ViewDirInfoTree;
154 154
155 typedef struct _ViewFile ViewFile; 155 typedef struct _ViewFile ViewFile;
156 typedef struct _ViewFileList ViewFileList; 156 typedef struct _ViewFileList ViewFileList;
157 typedef struct _ViewFileIcon ViewFileIcon; 157 typedef struct _ViewFileIcon ViewFileIcon;
158 typedef struct _ViewFileInfoList ViewFileInfoList;
159 typedef struct _ViewFileInfoIcon ViewFileInfoIcon;
158 160
159 typedef struct _SlideShowData SlideShowData; 161 typedef struct _SlideShowData SlideShowData;
160 typedef struct _FullScreenData FullScreenData; 162 typedef struct _FullScreenData FullScreenData;
161 163
162 typedef struct _PixmapFolders PixmapFolders; 164 typedef struct _PixmapFolders PixmapFolders;
621 LayoutWindow *layout; 623 LayoutWindow *layout;
622 624
623 GtkWidget *popup; 625 GtkWidget *popup;
624 }; 626 };
625 627
626 struct _ViewFileList 628 struct _ViewFileInfoList
627 { 629 {
628 GtkWidget *widget;
629 GtkWidget *listview;
630
631 gchar *path;
632 GList *list;
633
634 SortType sort_method;
635 gint sort_ascend;
636
637 FileData *click_fd; 630 FileData *click_fd;
638 FileData *select_fd; 631 FileData *select_fd;
639 632
640 gint thumbs_enabled; 633 gint thumbs_enabled;
641 gint marks_enabled; 634 gint marks_enabled;
645 gint thumbs_running; 638 gint thumbs_running;
646 gint thumbs_count; 639 gint thumbs_count;
647 ThumbLoader *thumbs_loader; 640 ThumbLoader *thumbs_loader;
648 FileData *thumbs_filedata; 641 FileData *thumbs_filedata;
649 642
643 gint select_idle_id;
644 };
645
646 struct _ViewFileList
647 {
648 GtkWidget *widget;
649 GtkWidget *listview;
650
651 gchar *path;
652 GList *list;
653
654 SortType sort_method;
655 gint sort_ascend;
656
657 FileData *click_fd;
658 FileData *select_fd;
659
660 gint thumbs_enabled;
661 gint marks_enabled;
662 gint active_mark;
663
664 /* thumb updates */
665 gint thumbs_running;
666 gint thumbs_count;
667 ThumbLoader *thumbs_loader;
668 FileData *thumbs_filedata;
669
650 /* func list */ 670 /* func list */
651 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data); 671 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data);
652 gpointer data_thumb_status; 672 gpointer data_thumb_status;
653 673
654 void (*func_status)(ViewFileList *vfl, gpointer data); 674 void (*func_status)(ViewFileList *vfl, gpointer data);
659 679
660 GtkWidget *popup; 680 GtkWidget *popup;
661 }; 681 };
662 682
663 struct _IconData; 683 struct _IconData;
684
685 struct _ViewFileInfoIcon
686 {
687 /* table stuff */
688 gint columns;
689 gint rows;
690
691 GList *selection;
692 struct _IconData *prev_selection;
693
694 GtkWidget *tip_window;
695 gint tip_delay_id;
696 struct _IconData *tip_id;
697
698 struct _IconData *click_id;
699
700 struct _IconData *focus_id;
701 gint focus_row;
702 gint focus_column;
703
704 gint show_text;
705
706 gint sync_idle_id;
707
708 /* thumbs */
709 gint thumbs_running;
710 GList *thumbs_list;
711 gint thumbs_count;
712 ThumbLoader *thumbs_loader;
713 FileData *thumbs_fd;
714 };
664 715
665 struct _ViewFileIcon 716 struct _ViewFileIcon
666 { 717 {
667 GtkWidget *widget; 718 GtkWidget *widget;
668 GtkWidget *listview; 719 GtkWidget *listview;