comparison src/typedefs.h @ 318:b16b9b8979e5

Add a new struct ConfOptions to handle options. Changes were made among the code to use only one global var named "options" of type ConfOptions *. Initialization takes place in new init_options().
author zas_
date Fri, 11 Apr 2008 22:14:36 +0000
parents a955b7fd626b
children f9611a6cf0e2
comparison
equal deleted inserted replaced
317:46169c246c51 318:b16b9b8979e5
139 typedef struct _PixmapFolders PixmapFolders; 139 typedef struct _PixmapFolders PixmapFolders;
140 typedef struct _Histogram Histogram; 140 typedef struct _Histogram Histogram;
141 141
142 typedef struct _SecureSaveInfo SecureSaveInfo; 142 typedef struct _SecureSaveInfo SecureSaveInfo;
143 143
144 typedef struct _ConfOptions ConfOptions;
144 145
145 struct _ImageLoader 146 struct _ImageLoader
146 { 147 {
147 GdkPixbuf *pixbuf; 148 GdkPixbuf *pixbuf;
148 FileData *fd; 149 FileData *fd;
726 gint preserve_perms; /**< whether to preserve perms, TRUE by default */ 727 gint preserve_perms; /**< whether to preserve perms, TRUE by default */
727 gint preserve_mtime; /**< whether to preserve mtime, FALSE by default */ 728 gint preserve_mtime; /**< whether to preserve mtime, FALSE by default */
728 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ 729 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */
729 }; 730 };
730 731
732 struct _ConfOptions
733 {
734 gint main_window_w;
735 gint main_window_h;
736 gint main_window_x;
737 gint main_window_y;
738 gint main_window_maximized;
739
740 gint float_window_w;
741 gint float_window_h;
742 gint float_window_x;
743 gint float_window_y;
744 gint float_window_divider;
745
746 gint window_hdivider_pos;
747 gint window_vdivider_pos;
748
749 gint save_window_positions;
750 gint tools_float;
751 gint tools_hidden;
752 gint toolbar_hidden;
753 gint progressive_key_scrolling;
754
755 gint startup_path_enable;
756 gchar *startup_path;
757 gint confirm_delete;
758 gint enable_delete_key;
759 gint safe_delete_enable;
760 gchar *safe_delete_path;
761 gint safe_delete_size;
762 gint restore_tool;
763 gint zoom_mode;
764 gint two_pass_zoom;
765 gint scroll_reset_method;
766 gint fit_window;
767 gint limit_window_size;
768 gint zoom_to_fit_expands;
769 gint max_window_size;
770 gint limit_autofit_size;
771 gint max_autofit_size;
772 gint thumb_max_width;
773 gint thumb_max_height;
774 gint enable_thumb_caching;
775 gint enable_thumb_dirs;
776 gint thumbnail_fast;
777 gint use_xvpics_thumbnails;
778 gint thumbnail_spec_standard;
779 gint enable_metadata_dirs;
780 gint show_dot_files;
781 gint file_filter_disable;
782 gchar *editor_name[GQ_EDITOR_SLOTS];
783 gchar *editor_command[GQ_EDITOR_SLOTS];
784
785 gint thumbnails_enabled;
786 SortType file_sort_method;
787 gint file_sort_ascending;
788
789 gint slideshow_delay; /* in tenths of a second */
790 gint slideshow_random;
791 gint slideshow_repeat;
792
793 gint mousewheel_scrolls;
794 gint enable_in_place_rename;
795
796 gint user_specified_window_background;
797 GdkColor window_background_color;
798
799 gint fullscreen_screen;
800 gint fullscreen_clean_flip;
801 gint fullscreen_disable_saver;
802 gint fullscreen_above;
803 gint show_fullscreen_info;
804 gchar *fullscreen_info;
805
806 gint dupe_custom_threshold;
807
808 gint recent_list_max;
809
810 gint collection_rectangular_selection;
811
812 gint tile_cache_max; /* in megabytes */
813 gint thumbnail_quality;
814 gint zoom_quality;
815 gint dither_quality;
816
817 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
818
819 gint enable_read_ahead;
820
821 gint place_dialogs_under_mouse;
822 };
731 823
732 #endif 824 #endif
733 825
734 826